[arch-commits] Commit in stunnel/repos (18 files)

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


    Date: Friday, May 31, 2013 @ 04:33:12
  Author: seblu
Revision: 92065

archrelease: copy trunk to community-i686, community-x86_64

Added:
  stunnel/repos/community-i686/Makefile.patch
    (from rev 92064, stunnel/trunk/Makefile.patch)
  stunnel/repos/community-i686/PKGBUILD
    (from rev 92064, stunnel/trunk/PKGBUILD)
  stunnel/repos/community-i686/stunnel.install
    (from rev 92064, stunnel/trunk/stunnel.install)
  stunnel/repos/community-i686/stunnel.tmpfiles.conf
    (from rev 92064, stunnel/trunk/stunnel.tmpfiles.conf)
  stunnel/repos/community-x86_64/Makefile.patch
    (from rev 92064, stunnel/trunk/Makefile.patch)
  stunnel/repos/community-x86_64/PKGBUILD
    (from rev 92064, stunnel/trunk/PKGBUILD)
  stunnel/repos/community-x86_64/stunnel.install
    (from rev 92064, stunnel/trunk/stunnel.install)
  stunnel/repos/community-x86_64/stunnel.tmpfiles.conf
    (from rev 92064, stunnel/trunk/stunnel.tmpfiles.conf)
Deleted:
  stunnel/repos/community-i686/Makefile.patch
  stunnel/repos/community-i686/PKGBUILD
  stunnel/repos/community-i686/stunnel.install
  stunnel/repos/community-i686/stunnel.rc.d
  stunnel/repos/community-i686/stunnel.tmpfiles.conf
  stunnel/repos/community-x86_64/Makefile.patch
  stunnel/repos/community-x86_64/PKGBUILD
  stunnel/repos/community-x86_64/stunnel.install
  stunnel/repos/community-x86_64/stunnel.rc.d
  stunnel/repos/community-x86_64/stunnel.tmpfiles.conf

----------------------------------------+
 /Makefile.patch                        |   42 +++++++++++
 /PKGBUILD                              |  118 +++++++++++++++++++++++++++++++
 /stunnel.install                       |   62 ++++++++++++++++
 /stunnel.tmpfiles.conf                 |    2 
 community-i686/Makefile.patch          |   21 -----
 community-i686/PKGBUILD                |   62 ----------------
 community-i686/stunnel.install         |   31 --------
 community-i686/stunnel.rc.d            |   44 -----------
 community-i686/stunnel.tmpfiles.conf   |    1 
 community-x86_64/Makefile.patch        |   21 -----
 community-x86_64/PKGBUILD              |   62 ----------------
 community-x86_64/stunnel.install       |   31 --------
 community-x86_64/stunnel.rc.d          |   44 -----------
 community-x86_64/stunnel.tmpfiles.conf |    1 
 14 files changed, 224 insertions(+), 318 deletions(-)

Deleted: community-i686/Makefile.patch
===================================================================
--- community-i686/Makefile.patch	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-i686/Makefile.patch	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1,21 +0,0 @@
---- tools/Makefile.in	2010-03-31 04:45:09.000000000 -0500
-+++ tools/Makefile.in	2010-04-11 17:17:41.000000000 -0500
-@@ -334,8 +334,7 @@
- 
- info-am:
- 
--install-data-am: install-confDATA install-data-local \
--	install-examplesDATA
-+install-data-am: install-confDATA install-examplesDATA
- 
- install-dvi: install-dvi-am
- 
-@@ -377,7 +376,7 @@
- 	clean-local distclean distclean-generic distclean-libtool \
- 	distdir dvi dvi-am html html-am info info-am install \
- 	install-am install-confDATA install-data install-data-am \
--	install-data-local install-dvi install-dvi-am \
-+	install-dvi install-dvi-am \
- 	install-examplesDATA install-exec install-exec-am install-html \
- 	install-html-am install-info install-info-am install-man \
- 	install-pdf install-pdf-am install-ps install-ps-am \

Copied: stunnel/repos/community-i686/Makefile.patch (from rev 92064, stunnel/trunk/Makefile.patch)
===================================================================
--- community-i686/Makefile.patch	                        (rev 0)
+++ community-i686/Makefile.patch	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1,21 @@
+--- tools/Makefile.in	2010-03-31 04:45:09.000000000 -0500
++++ tools/Makefile.in	2010-04-11 17:17:41.000000000 -0500
+@@ -334,8 +334,7 @@
+ 
+ info-am:
+ 
+-install-data-am: install-confDATA install-data-local \
+-	install-examplesDATA
++install-data-am: install-confDATA install-examplesDATA
+ 
+ install-dvi: install-dvi-am
+ 
+@@ -377,7 +376,7 @@
+ 	clean-local distclean distclean-generic distclean-libtool \
+ 	distdir dvi dvi-am html html-am info info-am install \
+ 	install-am install-confDATA install-data install-data-am \
+-	install-data-local install-dvi install-dvi-am \
++	install-dvi install-dvi-am \
+ 	install-examplesDATA install-exec install-exec-am install-html \
+ 	install-html-am install-info install-info-am install-man \
+ 	install-pdf install-pdf-am install-ps install-ps-am \

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-i686/PKGBUILD	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1,62 +0,0 @@
-# $Id$
-# Maintainer: Kaiting Chen <kaitocracy at gmail.com>
-# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
-# Contributor: Kevin Piche <kevin at archlinux.org>
-
-pkgname=stunnel
-pkgver=4.56
-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')
-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() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  # don't create a certificate...
-  patch -p0 < "$srcdir/Makefile.patch"
-
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --enable-ipv6 \
-    --disable-libwrap
-
-  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 -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/usr/lib/systemd/system"
-  mv "tools/stunnel.service" "$pkgdir/usr/lib/systemd/system/"
-
-  sed -e "s:/usr/var/lib/stunnel/:/var/run/stunnel:g" \
-      -e "s:/usr/etc/stunnel/:/etc/stunnel/:g" \
-      -e "s:no\(body\|group\):stunnel:g" \
-      -i "$pkgdir/etc/stunnel/stunnel.conf-sample"
-}

Copied: stunnel/repos/community-i686/PKGBUILD (from rev 92064, stunnel/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Kevin Piche <kevin at archlinux.org>
+
+pkgname=stunnel
+pkgver=4.56
+pkgrel=2
+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')
+install=$pkgname.install
+options=('!libtool')
+source=("ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz"{,.asc}
+        'Makefile.patch'
+        'stunnel.tmpfiles.conf')
+
+md5sums=('ac4c4a30bd7a55b6687cbd62d864054c'
+         'd68c7dd65d515c678cdde15bbf0ce344'
+         'f15398497e10e080c2406d2fc541660c'
+         '2e065a39998e57727ee79887bbd1751e')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # don't create a certificate...
+  patch -p0 < "$srcdir/Makefile.patch"
+
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --enable-ipv6 \
+    --disable-libwrap
+
+  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 -Dm644 tools/stunnel.cnf "$pkgdir/etc/stunnel/stunnel.cnf"
+  install -Dm644 "$srcdir/stunnel.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/stunnel.conf"
+
+  # move systemd service into place
+  install -dm755 "$pkgdir/usr/lib/systemd/system"
+  mv "tools/stunnel.service" "$pkgdir/usr/lib/systemd/system/"
+
+  sed -e "s:/usr/var/lib/stunnel/:/var/run/stunnel:g" \
+      -e "s:/usr/etc/stunnel/:/etc/stunnel/:g" \
+      -e "s:no\(body\|group\):stunnel:g" \
+      -i "$pkgdir/etc/stunnel/stunnel.conf-sample"
+}

Deleted: community-i686/stunnel.install
===================================================================
--- community-i686/stunnel.install	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-i686/stunnel.install	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1,31 +0,0 @@
-post_install() {
-  # add stunnel group
-  if ! getent group stunnel >/dev/null 2>&1; then
-    groupadd -g 16 stunnel
-  fi
-
-  # add stunnel user
-  if ! getent passwd stunnel >/dev/null 2>&1; then
-    useradd -u 16 -g stunnel -d /var/run/stunnel -s /bin/false stunnel
-  fi
-
-  # create chroot dir if necessary.
-  if [ ! -d /var/run/stunnel ]; then
-    install -dm770 -o stunnel -g stunnel /var/run/stunnel
-  fi
-}
-
-post_upgrade() {
-  post_install "$@"
-}
-
-pre_remove() {
-  # remove users & groups
-  if getent passwd stunnel >/dev/null 2>&1; then
-    userdel stunnel
-  fi
-
-  if getent group stunnel >/dev/null 2>&1; then
-    groupdel stunnel
-  fi
-}

Copied: stunnel/repos/community-i686/stunnel.install (from rev 92064, stunnel/trunk/stunnel.install)
===================================================================
--- community-i686/stunnel.install	                        (rev 0)
+++ community-i686/stunnel.install	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1,31 @@
+post_install() {
+  # add stunnel group
+  if ! getent group stunnel >/dev/null 2>&1; then
+    groupadd -g 16 stunnel
+  fi
+
+  # add stunnel user
+  if ! getent passwd stunnel >/dev/null 2>&1; then
+    useradd -u 16 -g stunnel -d /var/run/stunnel -s /bin/false stunnel
+  fi
+
+  # create chroot dir if necessary.
+  if [ ! -d /var/run/stunnel ]; then
+    install -dm770 -o stunnel -g stunnel /var/run/stunnel
+  fi
+}
+
+post_upgrade() {
+  post_install "$@"
+}
+
+pre_remove() {
+  # remove users & groups
+  if getent passwd stunnel >/dev/null 2>&1; then
+    userdel stunnel
+  fi
+
+  if getent group stunnel >/dev/null 2>&1; then
+    groupdel stunnel
+  fi
+}

Deleted: community-i686/stunnel.rc.d
===================================================================
--- community-i686/stunnel.rc.d	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-i686/stunnel.rc.d	2013-05-31 02:33:12 UTC (rev 92065)
@@ -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

Deleted: community-i686/stunnel.tmpfiles.conf
===================================================================
--- community-i686/stunnel.tmpfiles.conf	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-i686/stunnel.tmpfiles.conf	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1 +0,0 @@
-d /var/run/stunnel 0770 stunnel stunnel -

Copied: stunnel/repos/community-i686/stunnel.tmpfiles.conf (from rev 92064, stunnel/trunk/stunnel.tmpfiles.conf)
===================================================================
--- community-i686/stunnel.tmpfiles.conf	                        (rev 0)
+++ community-i686/stunnel.tmpfiles.conf	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1 @@
+d /var/run/stunnel 0770 stunnel stunnel -

Deleted: community-x86_64/Makefile.patch
===================================================================
--- community-x86_64/Makefile.patch	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-x86_64/Makefile.patch	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1,21 +0,0 @@
---- tools/Makefile.in	2010-03-31 04:45:09.000000000 -0500
-+++ tools/Makefile.in	2010-04-11 17:17:41.000000000 -0500
-@@ -334,8 +334,7 @@
- 
- info-am:
- 
--install-data-am: install-confDATA install-data-local \
--	install-examplesDATA
-+install-data-am: install-confDATA install-examplesDATA
- 
- install-dvi: install-dvi-am
- 
-@@ -377,7 +376,7 @@
- 	clean-local distclean distclean-generic distclean-libtool \
- 	distdir dvi dvi-am html html-am info info-am install \
- 	install-am install-confDATA install-data install-data-am \
--	install-data-local install-dvi install-dvi-am \
-+	install-dvi install-dvi-am \
- 	install-examplesDATA install-exec install-exec-am install-html \
- 	install-html-am install-info install-info-am install-man \
- 	install-pdf install-pdf-am install-ps install-ps-am \

Copied: stunnel/repos/community-x86_64/Makefile.patch (from rev 92064, stunnel/trunk/Makefile.patch)
===================================================================
--- community-x86_64/Makefile.patch	                        (rev 0)
+++ community-x86_64/Makefile.patch	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1,21 @@
+--- tools/Makefile.in	2010-03-31 04:45:09.000000000 -0500
++++ tools/Makefile.in	2010-04-11 17:17:41.000000000 -0500
+@@ -334,8 +334,7 @@
+ 
+ info-am:
+ 
+-install-data-am: install-confDATA install-data-local \
+-	install-examplesDATA
++install-data-am: install-confDATA install-examplesDATA
+ 
+ install-dvi: install-dvi-am
+ 
+@@ -377,7 +376,7 @@
+ 	clean-local distclean distclean-generic distclean-libtool \
+ 	distdir dvi dvi-am html html-am info info-am install \
+ 	install-am install-confDATA install-data install-data-am \
+-	install-data-local install-dvi install-dvi-am \
++	install-dvi install-dvi-am \
+ 	install-examplesDATA install-exec install-exec-am install-html \
+ 	install-html-am install-info install-info-am install-man \
+ 	install-pdf install-pdf-am install-ps install-ps-am \

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-x86_64/PKGBUILD	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1,62 +0,0 @@
-# $Id$
-# Maintainer: Kaiting Chen <kaitocracy at gmail.com>
-# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
-# Contributor: Kevin Piche <kevin at archlinux.org>
-
-pkgname=stunnel
-pkgver=4.56
-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')
-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() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  # don't create a certificate...
-  patch -p0 < "$srcdir/Makefile.patch"
-
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --enable-ipv6 \
-    --disable-libwrap
-
-  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 -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/usr/lib/systemd/system"
-  mv "tools/stunnel.service" "$pkgdir/usr/lib/systemd/system/"
-
-  sed -e "s:/usr/var/lib/stunnel/:/var/run/stunnel:g" \
-      -e "s:/usr/etc/stunnel/:/etc/stunnel/:g" \
-      -e "s:no\(body\|group\):stunnel:g" \
-      -i "$pkgdir/etc/stunnel/stunnel.conf-sample"
-}

Copied: stunnel/repos/community-x86_64/PKGBUILD (from rev 92064, stunnel/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Kevin Piche <kevin at archlinux.org>
+
+pkgname=stunnel
+pkgver=4.56
+pkgrel=2
+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')
+install=$pkgname.install
+options=('!libtool')
+source=("ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz"{,.asc}
+        'Makefile.patch'
+        'stunnel.tmpfiles.conf')
+
+md5sums=('ac4c4a30bd7a55b6687cbd62d864054c'
+         'd68c7dd65d515c678cdde15bbf0ce344'
+         'f15398497e10e080c2406d2fc541660c'
+         '2e065a39998e57727ee79887bbd1751e')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  # don't create a certificate...
+  patch -p0 < "$srcdir/Makefile.patch"
+
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --enable-ipv6 \
+    --disable-libwrap
+
+  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 -Dm644 tools/stunnel.cnf "$pkgdir/etc/stunnel/stunnel.cnf"
+  install -Dm644 "$srcdir/stunnel.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/stunnel.conf"
+
+  # move systemd service into place
+  install -dm755 "$pkgdir/usr/lib/systemd/system"
+  mv "tools/stunnel.service" "$pkgdir/usr/lib/systemd/system/"
+
+  sed -e "s:/usr/var/lib/stunnel/:/var/run/stunnel:g" \
+      -e "s:/usr/etc/stunnel/:/etc/stunnel/:g" \
+      -e "s:no\(body\|group\):stunnel:g" \
+      -i "$pkgdir/etc/stunnel/stunnel.conf-sample"
+}

Deleted: community-x86_64/stunnel.install
===================================================================
--- community-x86_64/stunnel.install	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-x86_64/stunnel.install	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1,31 +0,0 @@
-post_install() {
-  # add stunnel group
-  if ! getent group stunnel >/dev/null 2>&1; then
-    groupadd -g 16 stunnel
-  fi
-
-  # add stunnel user
-  if ! getent passwd stunnel >/dev/null 2>&1; then
-    useradd -u 16 -g stunnel -d /var/run/stunnel -s /bin/false stunnel
-  fi
-
-  # create chroot dir if necessary.
-  if [ ! -d /var/run/stunnel ]; then
-    install -dm770 -o stunnel -g stunnel /var/run/stunnel
-  fi
-}
-
-post_upgrade() {
-  post_install "$@"
-}
-
-pre_remove() {
-  # remove users & groups
-  if getent passwd stunnel >/dev/null 2>&1; then
-    userdel stunnel
-  fi
-
-  if getent group stunnel >/dev/null 2>&1; then
-    groupdel stunnel
-  fi
-}

Copied: stunnel/repos/community-x86_64/stunnel.install (from rev 92064, stunnel/trunk/stunnel.install)
===================================================================
--- community-x86_64/stunnel.install	                        (rev 0)
+++ community-x86_64/stunnel.install	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1,31 @@
+post_install() {
+  # add stunnel group
+  if ! getent group stunnel >/dev/null 2>&1; then
+    groupadd -g 16 stunnel
+  fi
+
+  # add stunnel user
+  if ! getent passwd stunnel >/dev/null 2>&1; then
+    useradd -u 16 -g stunnel -d /var/run/stunnel -s /bin/false stunnel
+  fi
+
+  # create chroot dir if necessary.
+  if [ ! -d /var/run/stunnel ]; then
+    install -dm770 -o stunnel -g stunnel /var/run/stunnel
+  fi
+}
+
+post_upgrade() {
+  post_install "$@"
+}
+
+pre_remove() {
+  # remove users & groups
+  if getent passwd stunnel >/dev/null 2>&1; then
+    userdel stunnel
+  fi
+
+  if getent group stunnel >/dev/null 2>&1; then
+    groupdel stunnel
+  fi
+}

Deleted: community-x86_64/stunnel.rc.d
===================================================================
--- community-x86_64/stunnel.rc.d	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-x86_64/stunnel.rc.d	2013-05-31 02:33:12 UTC (rev 92065)
@@ -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

Deleted: community-x86_64/stunnel.tmpfiles.conf
===================================================================
--- community-x86_64/stunnel.tmpfiles.conf	2013-05-31 02:33:00 UTC (rev 92064)
+++ community-x86_64/stunnel.tmpfiles.conf	2013-05-31 02:33:12 UTC (rev 92065)
@@ -1 +0,0 @@
-d /var/run/stunnel 0770 stunnel stunnel -

Copied: stunnel/repos/community-x86_64/stunnel.tmpfiles.conf (from rev 92064, stunnel/trunk/stunnel.tmpfiles.conf)
===================================================================
--- community-x86_64/stunnel.tmpfiles.conf	                        (rev 0)
+++ community-x86_64/stunnel.tmpfiles.conf	2013-05-31 02:33:12 UTC (rev 92065)
@@ -0,0 +1 @@
+d /var/run/stunnel 0770 stunnel stunnel -



More information about the arch-commits mailing list