summaryrefslogtreecommitdiff
path: root/community/stunnel/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/stunnel/PKGBUILD')
-rw-r--r--community/stunnel/PKGBUILD18
1 files changed, 13 insertions, 5 deletions
diff --git a/community/stunnel/PKGBUILD b/community/stunnel/PKGBUILD
index 6f228be5b..e4bb96b47 100644
--- a/community/stunnel/PKGBUILD
+++ b/community/stunnel/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 60289 2011-12-08 23:55:42Z lfleischer $
+# $Id: PKGBUILD 61258 2011-12-26 17:36:12Z dreisner $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Kevin Piche <kevin@archlinux.org>
pkgname=stunnel
pkgver=4.50
-pkgrel=1
+pkgrel=3
pkgdesc="A program that allows you to encrypt arbitrary TCP connections inside SSL"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.stunnel.org"
@@ -15,11 +15,14 @@ install=$pkgname.install
options=('!libtool')
source=("ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz"{,.asc}
'Makefile.patch'
- 'stunnel.rc.d')
+ 'stunnel.rc.d'
+ 'stunnel.tmpfiles.conf')
+
md5sums=('d68b4565294496a8bdf23c728a679f53'
'ea9e85daef0cc96ce21649901b3514f7'
'f15398497e10e080c2406d2fc541660c'
- 'cb647c71ff4cb1e035b6e515d5f13ebf')
+ 'cb647c71ff4cb1e035b6e515d5f13ebf'
+ '2e065a39998e57727ee79887bbd1751e')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -46,9 +49,14 @@ package() {
install -Dm644 tools/stunnel.cnf "$pkgdir/etc/stunnel/stunnel.cnf"
install -Dm755 "$srcdir/stunnel.rc.d" "$pkgdir/etc/rc.d/stunnel"
+ install -Dm644 "$srcdir/stunnel.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/stunnel.conf"
+
+ # move systemd service into place
+ install -dm755 "$pkgdir/lib/systemd/system"
+ mv "tools/stunnel.service" "$pkgdir/lib/systemd/system/"
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" \
+ -e "s:no\(body\|group\):stunnel:g" \
-i "$pkgdir/etc/stunnel/stunnel.conf-sample"
}