blob: 4f61d10313248127f8520b02253eab73fadad569 (
plain)
1 # Description: Stunnel wraps normal socket connections with SSL/TLS
2 # URL: http://www.stunnel.org
3 # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: openssl, zlib, tcp_wrappers
5
6 name=stunnel
7 version=4.20
8 release=1
9 source=(ftp://stunnel.mirt.net/stunnel/$name-$version.tar.gz \
10 $name-config.patch $name)
11
12 build () {
13 cd $name-$version
14 patch -p1 < $SRC/$name-config.patch
15 ./configure --prefix=/usr \
16 --sysconfdir=/etc \
17 --localstatedir=/var \
18 --with-ssl=/usr \
19 --with-tcp-wrappers \
20 --enable-ipv6 \
21 --enable-static=yes \
22 --enable-shared=no
23 make
24 install -D -m 0755 src/stunnel $PKG/usr/sbin/stunnel
25 install -D -m 0644 doc/stunnel.8 $PKG/usr/man/man8/stunnel.8
26 install -D -m 0755 $SRC/stunnel $PKG/etc/rc.d/stunnel
27 install -m 0644 tools/stunnel.conf-sample $PKG/etc/stunnel.conf
28 install -d $PKG/{var/run,etc/ssl/{certs,keys}}
29 install -d -m 770 -o nobody -g nobody $PKG/var/run/stunnel
30 touch $PKG/etc/ssl/{certs/stunnel.crt,keys/stunnel.key}
31 chmod 0600 $PKG/etc/ssl/keys/stunnel.key
32 }
|