From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- network/stunnel/stunnel-4.56-config.patch.xz | Bin 0 -> 764 bytes network/stunnel/stunnel-4.56-genkey.patch.xz | Bin 0 -> 360 bytes network/stunnel/stunnel-4.56-nopemgen.patch.xz | Bin 0 -> 404 bytes network/stunnel/stunnel-4.56-tmpfilesd.patch.xz | Bin 0 -> 212 bytes network/stunnel/stunnel.build | 121 ++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 network/stunnel/stunnel-4.56-config.patch.xz create mode 100644 network/stunnel/stunnel-4.56-genkey.patch.xz create mode 100644 network/stunnel/stunnel-4.56-nopemgen.patch.xz create mode 100644 network/stunnel/stunnel-4.56-tmpfilesd.patch.xz create mode 100755 network/stunnel/stunnel.build (limited to 'network/stunnel') diff --git a/network/stunnel/stunnel-4.56-config.patch.xz b/network/stunnel/stunnel-4.56-config.patch.xz new file mode 100644 index 0000000..ddca7e7 Binary files /dev/null and b/network/stunnel/stunnel-4.56-config.patch.xz differ diff --git a/network/stunnel/stunnel-4.56-genkey.patch.xz b/network/stunnel/stunnel-4.56-genkey.patch.xz new file mode 100644 index 0000000..d886b4d Binary files /dev/null and b/network/stunnel/stunnel-4.56-genkey.patch.xz differ diff --git a/network/stunnel/stunnel-4.56-nopemgen.patch.xz b/network/stunnel/stunnel-4.56-nopemgen.patch.xz new file mode 100644 index 0000000..3ed6c80 Binary files /dev/null and b/network/stunnel/stunnel-4.56-nopemgen.patch.xz differ diff --git a/network/stunnel/stunnel-4.56-tmpfilesd.patch.xz b/network/stunnel/stunnel-4.56-tmpfilesd.patch.xz new file mode 100644 index 0000000..e104f5b Binary files /dev/null and b/network/stunnel/stunnel-4.56-tmpfilesd.patch.xz differ diff --git a/network/stunnel/stunnel.build b/network/stunnel/stunnel.build new file mode 100755 index 0000000..f799894 --- /dev/null +++ b/network/stunnel/stunnel.build @@ -0,0 +1,121 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=stunnel +VERSION=4.56 +BUILD=1 +DEPENDS=('tcpip >= 20130209-1' 'openssl >= 1.0.1e-1') +OPTDEPENDS=('perl >= 5.12.3-1') + +# Description + +cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh <> etc/group +fi + +if ! grep -q "^stunnel:" etc/passwd ; then + echo "stunnel:x:34:34:stunnel:/run/stunnel:/bin/false" >> etc/passwd +fi + +if ! grep -q "^stunnel:" etc/shadow ; then + echo "stunnel:*:9797:0:::::" >> etc/shadow +fi + +# Create chroot dir if it doesn't exist + +if [ ! -d run/stunnel ]; then + install -d -m 0770 -o stunnel -g stunnel run/stunnel +fi + +config etc/stunnel/stunnel.cnf.new +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://www.usenix.org.uk/mirrors/stunnel/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz + +build0() +{ +sed -i 's|$(libdir)/@PACKAGE@|$(libdir)/plugins/@PACKAGE@|g' src/Makefile.{am,in} +sed -i 's|$(localstatedir)/run/stunnel|/run/stunnel|g' src/Makefile.{am,in} +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --enable-static=no \ + --enable-shared=yes \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --disable-libwrap \ + --enable-ipv6 +#NOTE: don't erase the libtool file ? +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS CREDITS +changelog ChangeLog +license COPYING +install.dir ${PKG}${SYS_DIR[etc]}/{stunnel,tmpfiles.d} +install.cfg tools/stunnel.cnf ${PKG}${SYS_DIR[etc]}/stunnel/stunnel.cnf.new +install.bin generate-stunnel-key.sh ${PKG}${SYS_DIR[etc]}/stunnel +install.dat stunnel.conf.tmpfiles ${PKG}${SYS_DIR[etc]}/tmpfiles.d/stunnel.conf +install.dir ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.dat tools/stunnel.service ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.dir ${PKG}${SYS_DIR[man]}/{pl,fr}/man8 +mv \ + ${PKG}${SYS_DIR[man]}/man8/stunnel.pl.8 \ + ${PKG}${SYS_DIR[man]}/pl/man8/stunnel.8 +mv \ + ${PKG}${SYS_DIR[man]}/man8/stunnel.fr.8 \ + ${PKG}${SYS_DIR[man]}/fr/man8/stunnel.8 +rm -rf \ + ${PKG}${SYS_DIR[doc]}/stunnel \ + ${PKG}${SYS_DIR[var]} +} -- cgit v1.2.3-70-g09d2