2006-02-23 16:26:10 +01:00
|
|
|
# Description: Stunnel wraps normal socket connections with SSL/TLS
|
|
|
|
# URL: http://www.stunnel.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2015-12-03 13:51:05 +01:00
|
|
|
# Depends on: openssl zlib
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=stunnel
|
2017-04-01 15:27:39 +02:00
|
|
|
version=5.41
|
2015-12-03 18:24:48 +01:00
|
|
|
release=1
|
2015-03-20 13:47:19 +01:00
|
|
|
source=(https://www.stunnel.org/downloads/$name-$version.tar.gz \
|
2015-04-18 09:47:39 +02:00
|
|
|
$name.conf $name)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2008-04-09 09:45:31 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-ssl=/usr \
|
2013-03-23 19:06:47 +01:00
|
|
|
--disable-fips \
|
2010-03-25 10:41:00 +01:00
|
|
|
--enable-ipv6
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
2008-04-09 09:45:31 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
install -D -m 0755 src/stunnel $PKG/usr/sbin/stunnel
|
2015-12-03 13:51:05 +01:00
|
|
|
install -D -m 0644 doc/stunnel.8 $PKG/usr/share/man/man8/stunnel.8
|
2006-03-12 13:35:51 +01:00
|
|
|
install -D -m 0755 $SRC/stunnel $PKG/etc/rc.d/stunnel
|
2015-04-18 09:47:39 +02:00
|
|
|
install -D -m 0644 $SRC/stunnel.conf $PKG/etc/stunnel.conf
|
2014-03-07 11:16:28 +01:00
|
|
|
|
2015-04-18 09:47:39 +02:00
|
|
|
install -d $PKG/var/run
|
2011-06-18 15:59:54 +02:00
|
|
|
install -d -m 770 -o stunnel -g stunnel $PKG/var/run/stunnel
|
2015-04-18 09:47:39 +02:00
|
|
|
|
|
|
|
install -d $PKG/etc/ssl/{certs,keys}
|
2006-03-12 13:35:51 +01:00
|
|
|
touch $PKG/etc/ssl/{certs/stunnel.crt,keys/stunnel.key}
|
|
|
|
chmod 0600 $PKG/etc/ssl/keys/stunnel.key
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|