aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stunnel/APKBUILD
blob: 12f8c94d05d21bc03c2ae8bab28d13be289fa304 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Dean Takemori <deant@hawaii.rr.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=stunnel
pkgver=5.33
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"
makedepends="openssl-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
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 -Dm644 "$pkgdir"/etc/stunnel/stunnel.conf-sample \
		"$pkgdir"/usr/share/doc/$pkgname/examples/stunnel.conf || 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="39f9da50d5d02c88f58ba3e372f1db29  stunnel-5.33.tar.gz
d01c6571ff4c1fdc7b9a489a084a6894  stunnel.initd
9193cc027bed086a3852dc7189602f0b  stunnel.conf"
sha256sums="7f54636d1e00864fd4d6bdda0bef60b8aaf24350cf02f89dfd2ac7967c052c73  stunnel-5.33.tar.gz
76cbaa1c4fed680d502f1953c3057c5f40737c30ba6d82d1d539b5d7943e2331  stunnel.initd
be8deb0e051f594e14c898c2ec8a4a6879adcd48a56286093653346d12c3f105  stunnel.conf"
sha512sums="e773904b3003e214104750024c385cef7ea4ca9f1df69a300725f54da3f9230f7f59d205d5cb15b27373024335f408db2245a48fbb92b20b87e44341dba1c5e6  stunnel-5.33.tar.gz
ec0922fdea646fec2a31b4a0ffc4d5f6efefb1ee2411e0a9bed5b431e997c50a8cfb09e990ac14adaac73cfba9ee19a161e4bd1fd396969acc8ef80cdee00903  stunnel.initd
bbdd8d88f7dbadb7de1ebfc85e936e12b70ea5aae27c204e005b998246d834c367742f2d2b85de7e100cf245260f65acd17e1b6cb7a383651401e6304fc05a84  stunnel.conf"