summaryrefslogtreecommitdiff
path: root/community/stunnel/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/stunnel/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/stunnel/PKGBUILD')
-rw-r--r--community/stunnel/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/stunnel/PKGBUILD b/community/stunnel/PKGBUILD
new file mode 100644
index 000000000..f617a4f3e
--- /dev/null
+++ b/community/stunnel/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 43034 2011-03-23 21:42:21Z kchen $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: Kevin Piche <kevin@archlinux.org>
+
+pkgname=stunnel
+pkgver=4.35
+pkgrel=1
+pkgdesc="A program that allows you to encrypt arbitrary TCP connections inside SSL"
+arch=('i686' 'x86_64')
+url="http://www.stunnel.org"
+license=('GPL')
+depends=('openssl' 'tcp_wrappers')
+install=stunnel.install
+options=('!libtool')
+source=("ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz"
+ 'Makefile.patch' 'stunnel.rc.d')
+md5sums=('2c8e153caee9d954fb7d00980968b50d'
+ 'f15398497e10e080c2406d2fc541660c'
+ 'cb647c71ff4cb1e035b6e515d5f13ebf')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # don't create a certificate...
+ patch -p0 < $srcdir/Makefile.patch
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-ipv6
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR=$pkgdir install
+
+ for i in ca.pl importCA.sh; do
+ install -Dm755 tools/$i $pkgdir/usr/share/stunnel/$i
+ done
+ install -Dm755 $srcdir/stunnel.rc.d $pkgdir/etc/rc.d/stunnel
+ sed -e "s:/usr/var/lib/stunnel/:/var/run/stunnel:g" \
+ -e "s:/usr/etc/stunnel/:/etc/stunnel/:g" \
+ -e "s:nobody:stunnel:g" -e "s:nogroup:stunnel:g" \
+ -i ${pkgdir}/etc/stunnel/stunnel.conf-sample
+ install -Dm644 tools/stunnel.cnf $pkgdir/etc/stunnel/stunnel.cnf
+}