summaryrefslogtreecommitdiffstats
path: root/testing/stunnel/APKBUILD
blob: 9f124c760e2594ba1c062cf3469bc308ebb90bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Contributor: Dean Takemori <deant@hawaii.rr.com>
# Maintainer:
pkgname=stunnel
pkgver=5.01
pkgrel=0
pkgdesc="SSL encryption wrapper between network client and server."
url="http://www.stunnel.org/"
arch="all"
license="GPL2+ with OpenSSL exception"
depends="openssl"
depends_dev="openssl-dev"
makedepends="$depends_dev"
subpackages="$pkgname-doc"
install=""
source="ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz
	stunnel.initd
	stunnel.conf
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-fips \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m644 tools/stunnel.license \
		"$pkgdir"/usr/share/doc/$pkgname/ || return 1
	rm -f "$pkgdir"/usr/lib/stunnel/*.la
	install -Dm755 "$srcdir"/stunnel.initd "$pkgdir"/etc/init.d/stunnel \
		|| return 1
	install -m644 "$srcdir"/stunnel.conf \
		"$pkgdir"/etc/stunnel/stunnel.conf || return 1
}

md5sums="7b63266b6fa05da696729e245100da65  stunnel-5.01.tar.gz
326a99213c0859f066f0527291d8a94a  stunnel.initd
9193cc027bed086a3852dc7189602f0b  stunnel.conf"
sha256sums="2565bf58ffe8a612304c64df621105b2e42d6e389e815ed4205dbeec4f3f886b  stunnel-5.01.tar.gz
65297430933a971e4c96b62666c478b6f37dfd1be5422d1b42fbfa117f445ae9  stunnel.initd
be8deb0e051f594e14c898c2ec8a4a6879adcd48a56286093653346d12c3f105  stunnel.conf"
sha512sums="6855ae37ef0cf7736a05dbbbe130b28c44e0bedb8e55b6cda8ed6149af1c94cd1c9dc27a78a48cabfdc30dda2c31ae98a4216e04efdc4051315138c2573db444  stunnel-5.01.tar.gz
413c6be816bd4e27cdc573a89968362cddcc77d211f745c8e9e3cb86e6a8d44ed54ddf191fda1857e5f99331412a215b80437f52edb4f8029dd05090659cae81  stunnel.initd
bbdd8d88f7dbadb7de1ebfc85e936e12b70ea5aae27c204e005b998246d834c367742f2d2b85de7e100cf245260f65acd17e1b6cb7a383651401e6304fc05a84  stunnel.conf"