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

Lukas Fleischer lfleischer at archlinux.org
Sat Feb 25 15:43:04 UTC 2017


    Date: Saturday, February 25, 2017 @ 15:43:03
  Author: lfleischer
Revision: 213787

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

Added:
  stunnel/repos/community-staging-i686/
  stunnel/repos/community-staging-i686/Makefile.patch
    (from rev 213786, stunnel/trunk/Makefile.patch)
  stunnel/repos/community-staging-i686/PKGBUILD
    (from rev 213786, stunnel/trunk/PKGBUILD)
  stunnel/repos/community-staging-i686/stunnel.install
    (from rev 213786, stunnel/trunk/stunnel.install)
  stunnel/repos/community-staging-i686/stunnel.tmpfiles.conf
    (from rev 213786, stunnel/trunk/stunnel.tmpfiles.conf)
  stunnel/repos/community-staging-x86_64/
  stunnel/repos/community-staging-x86_64/Makefile.patch
    (from rev 213786, stunnel/trunk/Makefile.patch)
  stunnel/repos/community-staging-x86_64/PKGBUILD
    (from rev 213786, stunnel/trunk/PKGBUILD)
  stunnel/repos/community-staging-x86_64/stunnel.install
    (from rev 213786, stunnel/trunk/stunnel.install)
  stunnel/repos/community-staging-x86_64/stunnel.tmpfiles.conf
    (from rev 213786, stunnel/trunk/stunnel.tmpfiles.conf)

------------------------------------------------+
 community-staging-i686/Makefile.patch          |   12 +++++
 community-staging-i686/PKGBUILD                |   52 +++++++++++++++++++++++
 community-staging-i686/stunnel.install         |   20 ++++++++
 community-staging-i686/stunnel.tmpfiles.conf   |    1 
 community-staging-x86_64/Makefile.patch        |   12 +++++
 community-staging-x86_64/PKGBUILD              |   52 +++++++++++++++++++++++
 community-staging-x86_64/stunnel.install       |   20 ++++++++
 community-staging-x86_64/stunnel.tmpfiles.conf |    1 
 8 files changed, 170 insertions(+)

Copied: stunnel/repos/community-staging-i686/Makefile.patch (from rev 213786, stunnel/trunk/Makefile.patch)
===================================================================
--- community-staging-i686/Makefile.patch	                        (rev 0)
+++ community-staging-i686/Makefile.patch	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1,12 @@
+--- 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
+ 

Copied: stunnel/repos/community-staging-i686/PKGBUILD (from rev 213786, stunnel/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1,52 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Kevin Piche <kevin at archlinux.org>
+
+pkgname=stunnel
+pkgver=5.40
+pkgrel=2
+pkgdesc="A program that allows you to encrypt arbitrary TCP connections inside SSL"
+arch=('i686' 'x86_64')
+url="https://www.stunnel.org/"
+license=('GPL')
+depends=('openssl')
+makedepends=('systemd')
+install=$pkgname.install
+source=("https://www.stunnel.org/downloads/archive/5.x/$pkgname-$pkgver.tar.gz"{,.asc}
+        'Makefile.patch'
+        'stunnel.tmpfiles.conf')
+md5sums=('4125b7c7f0f8c46266b4fa245ee8cda6'
+         'SKIP'
+         '579f198ecb90a42fcbfd8a4e48006264'
+         '2e065a39998e57727ee79887bbd1751e')
+validpgpkeys=('AC915EA30645D9D3D4DAE4FEB1048932DD3AAAA3') # Michał Trojnara
+
+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
+
+  install -Dm644 tools/stunnel.service "$pkgdir/usr/lib/systemd/system/stunnel.service"
+  install -Dm644 "$srcdir/stunnel.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/stunnel.conf"
+
+  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-staging-i686/stunnel.install (from rev 213786, stunnel/trunk/stunnel.install)
===================================================================
--- community-staging-i686/stunnel.install	                        (rev 0)
+++ community-staging-i686/stunnel.install	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1,20 @@
+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 "$@"
+}

Copied: stunnel/repos/community-staging-i686/stunnel.tmpfiles.conf (from rev 213786, stunnel/trunk/stunnel.tmpfiles.conf)
===================================================================
--- community-staging-i686/stunnel.tmpfiles.conf	                        (rev 0)
+++ community-staging-i686/stunnel.tmpfiles.conf	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1 @@
+d /var/run/stunnel 0770 stunnel stunnel -

Copied: stunnel/repos/community-staging-x86_64/Makefile.patch (from rev 213786, stunnel/trunk/Makefile.patch)
===================================================================
--- community-staging-x86_64/Makefile.patch	                        (rev 0)
+++ community-staging-x86_64/Makefile.patch	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1,12 @@
+--- 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
+ 

Copied: stunnel/repos/community-staging-x86_64/PKGBUILD (from rev 213786, stunnel/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1,52 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Kevin Piche <kevin at archlinux.org>
+
+pkgname=stunnel
+pkgver=5.40
+pkgrel=2
+pkgdesc="A program that allows you to encrypt arbitrary TCP connections inside SSL"
+arch=('i686' 'x86_64')
+url="https://www.stunnel.org/"
+license=('GPL')
+depends=('openssl')
+makedepends=('systemd')
+install=$pkgname.install
+source=("https://www.stunnel.org/downloads/archive/5.x/$pkgname-$pkgver.tar.gz"{,.asc}
+        'Makefile.patch'
+        'stunnel.tmpfiles.conf')
+md5sums=('4125b7c7f0f8c46266b4fa245ee8cda6'
+         'SKIP'
+         '579f198ecb90a42fcbfd8a4e48006264'
+         '2e065a39998e57727ee79887bbd1751e')
+validpgpkeys=('AC915EA30645D9D3D4DAE4FEB1048932DD3AAAA3') # Michał Trojnara
+
+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
+
+  install -Dm644 tools/stunnel.service "$pkgdir/usr/lib/systemd/system/stunnel.service"
+  install -Dm644 "$srcdir/stunnel.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/stunnel.conf"
+
+  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-staging-x86_64/stunnel.install (from rev 213786, stunnel/trunk/stunnel.install)
===================================================================
--- community-staging-x86_64/stunnel.install	                        (rev 0)
+++ community-staging-x86_64/stunnel.install	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1,20 @@
+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 "$@"
+}

Copied: stunnel/repos/community-staging-x86_64/stunnel.tmpfiles.conf (from rev 213786, stunnel/trunk/stunnel.tmpfiles.conf)
===================================================================
--- community-staging-x86_64/stunnel.tmpfiles.conf	                        (rev 0)
+++ community-staging-x86_64/stunnel.tmpfiles.conf	2017-02-25 15:43:03 UTC (rev 213787)
@@ -0,0 +1 @@
+d /var/run/stunnel 0770 stunnel stunnel -



More information about the arch-commits mailing list