blob: 2f70f73c3676f1d98f2cd62e1ab384ce52bd8d6c (
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.20
8 release=1
9 source=(https://www.stunnel.org/downloads/$name-$version.tar.gz \
10 $name.conf $name)
11
12 build () {
13 cd $name-$version
14
15 ./configure --prefix=/usr \
16 --sysconfdir=/etc \
17 --localstatedir=/var \
18 --with-ssl=/usr \
19 --disable-fips \
20 --enable-ipv6
21 make
22
23 install -D -m 0755 src/stunnel $PKG/usr/sbin/stunnel
24 install -D -m 0644 doc/stunnel.8 $PKG/usr/man/man8/stunnel.8
25 install -D -m 0755 $SRC/stunnel $PKG/etc/rc.d/stunnel
26 install -D -m 0644 $SRC/stunnel.conf $PKG/etc/stunnel.conf
27
28 install -d $PKG/var/run
29 install -d -m 770 -o stunnel -g stunnel $PKG/var/run/stunnel
30
31 install -d $PKG/etc/ssl/{certs,keys}
32 touch $PKG/etc/ssl/{certs/stunnel.crt,keys/stunnel.key}
33 chmod 0600 $PKG/etc/ssl/keys/stunnel.key
34 }
|