blob: 4b4a207a278258c701c1da3ccf0b91c1876c25f2 (
plain)
1 # Description: Stunnel wraps normal socket connections with SSL/TLS
2 # URL: http://www.stunnel.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: openssl tcp_wrappers zlib
5
6 name=stunnel
7 version=5.00
8 release=1
9 source=(http://stunnel.cybermirror.org/archive/5.x/$name-$version.tar.gz \
10 $name-config.patch $name)
11
12 build () {
13 cd $name-$version
14
15 patch -p1 -i $SRC/$name-config.patch
16
17 ./configure --prefix=/usr \
18 --sysconfdir=/etc \
19 --localstatedir=/var \
20 --with-ssl=/usr \
21 --disable-fips \
22 --enable-ipv6
23 make
24
25 install -D -m 0755 src/stunnel $PKG/usr/sbin/stunnel
26 install -D -m 0644 doc/stunnel.8 $PKG/usr/man/man8/stunnel.8
27 install -D -m 0755 $SRC/stunnel $PKG/etc/rc.d/stunnel
28 install -m 0644 tools/stunnel.conf-sample $PKG/etc/stunnel.conf
29
30 install -d $PKG/{var/run,etc/ssl/{certs,keys}}
31 install -d -m 770 -o stunnel -g stunnel $PKG/var/run/stunnel
32 touch $PKG/etc/ssl/{certs/stunnel.crt,keys/stunnel.key}
33 chmod 0600 $PKG/etc/ssl/keys/stunnel.key
34 }
|