aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stunnel/APKBUILD
blob: 91d0a0204506026c41ab3ef78946a53f3c8bc3a3 (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
# Contributor: Dean Takemori <deant@hawaii.rr.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=stunnel
pkgver=5.22
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="$pkgname.pre-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
}

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
	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="b988f714bbc5f9f848f880a59e73baad  stunnel-5.22.tar.gz
d01c6571ff4c1fdc7b9a489a084a6894  stunnel.initd
9193cc027bed086a3852dc7189602f0b  stunnel.conf"
sha256sums="8ad628a6948153cdb2044283f6988384a30585ea7e14778c2ee616a6678cb83f  stunnel-5.22.tar.gz
76cbaa1c4fed680d502f1953c3057c5f40737c30ba6d82d1d539b5d7943e2331  stunnel.initd
be8deb0e051f594e14c898c2ec8a4a6879adcd48a56286093653346d12c3f105  stunnel.conf"
sha512sums="edf48fda7d431eee79feb72b6901c02d667ae25f85db9850e12776b57cc68ccacdf069deb3858106939b5c3c53b682a785083f5e7241221a350e06f4307e74f5  stunnel-5.22.tar.gz
ec0922fdea646fec2a31b4a0ffc4d5f6efefb1ee2411e0a9bed5b431e997c50a8cfb09e990ac14adaac73cfba9ee19a161e4bd1fd396969acc8ef80cdee00903  stunnel.initd
bbdd8d88f7dbadb7de1ebfc85e936e12b70ea5aae27c204e005b998246d834c367742f2d2b85de7e100cf245260f65acd17e1b6cb7a383651401e6304fc05a84  stunnel.conf"