2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: Stunnel wraps normal socket connections with SSL/TLS
|
|
|
|
|
# URL: http://www.stunnel.org
|
2006-02-25 15:42:56 +00:00
|
|
|
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
2006-03-12 12:35:51 +00:00
|
|
|
|
# Depends on: openssl, zlib, tcp_wrappers
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
name=stunnel
|
2006-09-02 08:53:15 +00:00
|
|
|
|
version=4.16
|
2006-02-23 15:26:10 +00:00
|
|
|
|
release=1
|
|
|
|
|
source=(http://www.stunnel.org/download/stunnel/src/$name-$version.tar.gz \
|
2006-03-12 12:35:51 +00:00
|
|
|
|
$name-config.patch $name)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build () {
|
|
|
|
|
cd $name-$version
|
2006-03-12 12:35:51 +00:00
|
|
|
|
patch -p1 < $SRC/$name-config.patch
|
2006-02-23 15:26:10 +00:00
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--localstatedir=/var \
|
|
|
|
|
--with-ssl=/usr \
|
|
|
|
|
--with-tcp-wrappers \
|
|
|
|
|
--enable-ipv6 \
|
|
|
|
|
--enable-static=yes \
|
|
|
|
|
--enable-shared=no
|
|
|
|
|
make
|
|
|
|
|
install -D -m 0755 src/stunnel $PKG/usr/sbin/stunnel
|
|
|
|
|
install -D -m 0644 doc/stunnel.8 $PKG/usr/man/man8/stunnel.8
|
2006-03-12 12:35:51 +00:00
|
|
|
|
install -D -m 0755 $SRC/stunnel $PKG/etc/rc.d/stunnel
|
2006-02-23 15:26:10 +00:00
|
|
|
|
install -m 0644 tools/stunnel.conf-sample $PKG/etc/stunnel.conf
|
|
|
|
|
install -d $PKG/{var/run,etc/ssl/{certs,keys}}
|
2006-03-12 12:35:51 +00:00
|
|
|
|
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
|
2006-02-23 15:26:10 +00:00
|
|
|
|
}
|