summaryrefslogtreecommitdiff
path: root/stunnel/Pkgfile
blob: 8cf696b4df23ffd703573b948248bdd7a70830b1 (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 zlib
    5 
    6 name=stunnel
    7 version=5.45
    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/share/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 }

Generated by cgit