opt/stunnel/Pkgfile

33 lines
1.1 KiB
Plaintext

# Description: Stunnel wraps normal socket connections with SSL/TLS
# URL: http://www.stunnel.org
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
# Depends on: openssl, zlib
name=stunnel
version=4.28
release=1
source=(http://www.stunnel.org/download/stunnel/src/$name-$version.tar.gz \
$name-config.patch $name)
build () {
cd $name-$version
patch -p1 -i $SRC/$name-config.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-ssl=/usr \
--enable-ipv6
make
install -D -m 0755 src/stunnel $PKG/usr/sbin/stunnel
install -D -m 0644 doc/stunnel.8 $PKG/usr/man/man8/stunnel.8
install -D -m 0755 $SRC/stunnel $PKG/etc/rc.d/stunnel
install -m 0644 tools/stunnel.conf-sample $PKG/etc/stunnel.conf
install -d $PKG/{var/run,etc/ssl/{certs,keys}}
install -d -m 770 -o nobody -g nobody $PKG/var/run/stunnel
touch $PKG/etc/ssl/{certs/stunnel.crt,keys/stunnel.key}
chmod 0600 $PKG/etc/ssl/keys/stunnel.key
}