blob: 4e81fcd11cb95023ef245d3fd170a7b01b5b3e22 (
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
|
# 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.29
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 -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="bf4c13ea9705156adbd04f1d766093ea stunnel-5.29.tar.gz
d01c6571ff4c1fdc7b9a489a084a6894 stunnel.initd
9193cc027bed086a3852dc7189602f0b stunnel.conf"
sha256sums="43909625403ea634fa7cb8399d58faf8e7f11c1b7b29097491469951f56df551 stunnel-5.29.tar.gz
76cbaa1c4fed680d502f1953c3057c5f40737c30ba6d82d1d539b5d7943e2331 stunnel.initd
be8deb0e051f594e14c898c2ec8a4a6879adcd48a56286093653346d12c3f105 stunnel.conf"
sha512sums="1a7017921e29416dfb934d258c89b9b47db9922e6af1a29bd53895cb153d7de3908fd4cfd6e65e6aa8992cb26670dbfeab366c0f7ce0317d9045a67d1e30a934 stunnel-5.29.tar.gz
ec0922fdea646fec2a31b4a0ffc4d5f6efefb1ee2411e0a9bed5b431e997c50a8cfb09e990ac14adaac73cfba9ee19a161e4bd1fd396969acc8ef80cdee00903 stunnel.initd
bbdd8d88f7dbadb7de1ebfc85e936e12b70ea5aae27c204e005b998246d834c367742f2d2b85de7e100cf245260f65acd17e1b6cb7a383651401e6304fc05a84 stunnel.conf"
|