blob: 66b375e8b8e55ce5940155b0525a2f2c847583b5 (
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=4.56
8 release=1
9 source=(ftp://ftp.stunnel.org/stunnel/archive/4.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 install -d $PKG/{var/run,etc/ssl/{certs,keys}}
30 install -d -m 770 -o stunnel -g stunnel $PKG/var/run/stunnel
31 touch $PKG/etc/ssl/{certs/stunnel.crt,keys/stunnel.key}
32 chmod 0600 $PKG/etc/ssl/keys/stunnel.key
33 }
|