summaryrefslogtreecommitdiff
path: root/community/stunnel
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-31 06:21:03 -0700
committerroot <root@rshg054.dnsready.net>2013-05-31 06:21:03 -0700
commit7e7561a9640d0e1f54288a391239feb6bd691b56 (patch)
treed3b51b006a1133ace68d149692d9bd9fb3f981a9 /community/stunnel
parent94a3b302f520438e919ef8706ce9cf42ad7c2e11 (diff)
Fri May 31 06:21:01 PDT 2013
Diffstat (limited to 'community/stunnel')
-rw-r--r--community/stunnel/PKGBUILD7
-rw-r--r--community/stunnel/stunnel.rc.d44
2 files changed, 2 insertions, 49 deletions
diff --git a/community/stunnel/PKGBUILD b/community/stunnel/PKGBUILD
index dfc28ebb7..2b6c55e35 100644
--- a/community/stunnel/PKGBUILD
+++ b/community/stunnel/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 87349 2013-03-30 09:40:31Z lfleischer $
+# $Id: PKGBUILD 92065 2013-05-31 02:33:12Z seblu $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Kevin Piche <kevin@archlinux.org>
pkgname=stunnel
pkgver=4.56
-pkgrel=1
+pkgrel=2
pkgdesc="A program that allows you to encrypt arbitrary TCP connections inside SSL"
arch=('i686' 'x86_64')
url="http://www.stunnel.org"
@@ -15,13 +15,11 @@ install=$pkgname.install
options=('!libtool')
source=("ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz"{,.asc}
'Makefile.patch'
- 'stunnel.rc.d'
'stunnel.tmpfiles.conf')
md5sums=('ac4c4a30bd7a55b6687cbd62d864054c'
'd68c7dd65d515c678cdde15bbf0ce344'
'f15398497e10e080c2406d2fc541660c'
- '4c7e3634a9d4dc040102f5d4160fb123'
'2e065a39998e57727ee79887bbd1751e')
build() {
@@ -48,7 +46,6 @@ package() {
done
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
diff --git a/community/stunnel/stunnel.rc.d b/community/stunnel/stunnel.rc.d
deleted file mode 100644
index 76f7b796a..000000000
--- a/community/stunnel/stunnel.rc.d
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-pidfile=/var/run/stunnel/stunnel.pid
-if [[ -r $pidfile ]]; then
- read -r PID < "$pidfile"
- if [[ $PID && ! -d /proc/$PID ]]; then
- # stale pidfile
- unset PID
- rm -f "$pidfile"
- fi
-fi
-
-case "$1" in
- start)
- stat_busy "Starting stunnel"
- if [[ -z $PID ]] && /usr/bin/stunnel; then
- add_daemon stunnel
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- stop)
- stat_busy "Stopping stunnel"
- if [[ $PID ]] && kill $PID &>/dev/null; then
- rm_daemon stunnel
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac