[arch-commits] Commit in stunnel/trunk (PKGBUILD stunnel.rc.d)

Sébastien Luttringer seblu at nymeria.archlinux.org
Thu May 30 22:33:00 EDT 2013


    Date: Friday, May 31, 2013 @ 04:33:00
  Author: seblu
Revision: 92064

upgpkg: stunnel 4.56-2

- remove rc.d

Modified:
  stunnel/trunk/PKGBUILD
Deleted:
  stunnel/trunk/stunnel.rc.d

--------------+
 PKGBUILD     |    5 +----
 stunnel.rc.d |   44 --------------------------------------------
 2 files changed, 1 insertion(+), 48 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-31 02:32:07 UTC (rev 92063)
+++ PKGBUILD	2013-05-31 02:33:00 UTC (rev 92064)
@@ -5,7 +5,7 @@
 
 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 @@
 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 @@
   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

Deleted: stunnel.rc.d
===================================================================
--- stunnel.rc.d	2013-05-31 02:32:07 UTC (rev 92063)
+++ stunnel.rc.d	2013-05-31 02:33:00 UTC (rev 92064)
@@ -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



More information about the arch-commits mailing list