[arch-commits] Commit in tcp-wrappers/trunk (PKGBUILD hosts.allow hosts.deny)

Maxime Gauduin alucryd at archlinux.org
Sun Oct 2 13:26:35 UTC 2016


    Date: Sunday, October 2, 2016 @ 13:26:34
  Author: alucryd
Revision: 191205

upgpkg: tcp-wrappers 7.6.24-1

Split tcp-wrappers and libwrap

Added:
  tcp-wrappers/trunk/hosts.allow
  tcp-wrappers/trunk/hosts.deny
Modified:
  tcp-wrappers/trunk/PKGBUILD

-------------+
 PKGBUILD    |   40 ++++++++++++++++++++++++++++++++--------
 hosts.allow |    5 +++++
 hosts.deny  |    7 +++++++
 3 files changed, 44 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-02 13:01:56 UTC (rev 191204)
+++ PKGBUILD	2016-10-02 13:26:34 UTC (rev 191205)
@@ -1,10 +1,15 @@
 # $Id$
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Manuel Hüsers <manuel.huesers at uni-ol.de>
+# Contributor: vigo <vigo.the.unholy.carpathian at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: judd <jvinet at zeroflux.org>
 
-pkgname=tcp-wrappers
+pkgbase=tcp-wrappers
+pkgname=('libwrap' 'tcp-wrappers')
 pkgver=7.6.24
 pkgrel=1
-pkgdesc="Wietse Venema's network logger"
+pkgdesc='Monitors and Controls incoming TCP connections'
 arch=('i686' 'x86_64')
 url='ftp://ftp.porcupine.org/pub/security/index.html'
 license=('BSD')
@@ -13,11 +18,15 @@
 source=("ftp://ftp.porcupine.org/pub/security/tcp_wrappers_${pkgver%.*}.tar.gz"
         "http://http.debian.net/debian/pool/main/t/tcp-wrappers/tcp-wrappers_${pkgver%.*}.q-${pkgver##*.}.debian.tar.xz"
         'tcp-wrappers-headers.patch'
-        'tcp-wrappers-redhat-bug11881.patch')
+        'tcp-wrappers-redhat-bug11881.patch'
+        'hosts.allow'
+        'hosts.deny')
 sha256sums=('9543d7adedf78a6de0b221ccbbd1952e08b5138717f4ade814039bb489a4315d'
             '672ad0d3f70579815cd8f15c29054c49f6fd9902863be42cc2452a9ecbe8eacd'
             'caf0719fdac5c0c8874420af63bddf3b970c40d464f0553a9822a53d372854d8'
-            '2e527e54c1ea208de10a206c667f751e54651eb77c973271d213e3459d690403')
+            '2e527e54c1ea208de10a206c667f751e54651eb77c973271d213e3459d690403'
+            'c1b19035a14ba552e8795ec3d7171e688592c9317f2eb14373320315435565e3'
+            '969414f0a161e95fbe4cfe32df7c657a2793734d09416c00fa1116c5c0a9924f')
 
 prepare() {
   cd tcp_wrappers_${pkgver%.*}
@@ -36,22 +45,37 @@
     COPTS="$CFLAGS" \
     LDOPTS="$LDFLAGS" \
     REAL_DAEMON_DIR='/usr/bin' \
+    STYLE='-DPROCESS_OPTIONS' \
     linux
 }
 
-package() {
+package_libwrap() {
   cd tcp_wrappers_${pkgver%.*}
 
-  install -Dm 755 safe_finger tcpd tcpdchk tcpdmatch try-from -t "${pkgdir}"/usr/bin/
-  install -Dm 644 tcpd.h -t "${pkgdir}"/usr/include/
   install -Dm 644 shared/libwrap.so.0.${pkgver%.*} -t "${pkgdir}"/usr/lib/
   ln -s libwrap.so.0.${pkgver%.*} "${pkgdir}"/usr/lib/libwrap.so.0
   ln -s libwrap.so.0 "${pkgdir}"/usr/lib/libwrap.so
+
+  install -Dm 644 DISCLAIMER -t "${pkgdir}"/usr/share/licenses/libwrap/
+}
+
+package_tcp-wrappers() {
+  depends=('libwrap')
+  backup=('etc/hosts.allow'
+          'etc/hosts.deny')
+
+  cd tcp_wrappers_${pkgver%.*}
+
+  install -Dm 755 safe_finger tcpd tcpdchk tcpdmatch try-from -t "${pkgdir}"/usr/bin/
+  install -Dm 644 tcpd.h -t "${pkgdir}"/usr/include/
   install -Dm 644 *.3 -t "${pkgdir}"/usr/share/man/man3/
   install -Dm 644 *.5 -t "${pkgdir}"/usr/share/man/man5/
   install -Dm 644 *.8 -t "${pkgdir}"/usr/share/man/man8/
+  install -Dm 644 ../hosts.{allow,deny} -t "${pkgdir}"/etc/
   install -Dm 644 README -t "${pkgdir}"/usr/share/doc/tcp-wrappers/
-  install -Dm 644 DISCLAIMER -t "${pkgdir}"/usr/share/licenses/tcp-wrappers/
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses
+  ln -s libwrap "${pkgdir}"/usr/share/licenses/tcp-wrappers
 }
 
 # vim: ts=2 sw=2 et:

Added: hosts.allow
===================================================================
--- hosts.allow	                        (rev 0)
+++ hosts.allow	2016-10-02 13:26:34 UTC (rev 191205)
@@ -0,0 +1,5 @@
+#
+# /etc/hosts.allow
+#
+
+# End of file

Added: hosts.deny
===================================================================
--- hosts.deny	                        (rev 0)
+++ hosts.deny	2016-10-02 13:26:34 UTC (rev 191205)
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.deny
+#
+
+ALL: ALL
+
+# End of file



More information about the arch-commits mailing list