aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stunnel/APKBUILD
blob: 36aebb651b00a0fcb6ec0b4a0647921a3b832547 (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
# Contributor: Dean Takemori <deant@hawaii.rr.com>
# Maintainer:
pkgname=stunnel
pkgver=4.55
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"

_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 \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| 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
}

md5sums="ebe6670368d30c6a01ca33b9c50cb239  stunnel-4.55.tar.gz"
sha256sums="5a4acecfabd454415c727435acdfca7dc46aa542998fb278293f494a6d36d37a  stunnel-4.55.tar.gz"
sha512sums="47e6a707975395e4d3106927595b3a0627246f565687e3a0d56dc6620c1ba828755d4482d0e45b9a09300cc7855b76360056534b22b42f58d5041ea159aab7a1  stunnel-4.55.tar.gz"