[arch-commits] Commit in xinetd/repos (14 files)

Tobias Powalowski tpowa at archlinux.org
Thu May 10 14:07:20 UTC 2012


    Date: Thursday, May 10, 2012 @ 10:07:20
  Author: tpowa
Revision: 158805

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

Added:
  xinetd/repos/testing-i686/
  xinetd/repos/testing-i686/PKGBUILD
    (from rev 158804, xinetd/trunk/PKGBUILD)
  xinetd/repos/testing-i686/servers
    (from rev 158804, xinetd/trunk/servers)
  xinetd/repos/testing-i686/services
    (from rev 158804, xinetd/trunk/services)
  xinetd/repos/testing-i686/xinetd
    (from rev 158804, xinetd/trunk/xinetd)
  xinetd/repos/testing-i686/xinetd.conf
    (from rev 158804, xinetd/trunk/xinetd.conf)
  xinetd/repos/testing-i686/xinetd.service
    (from rev 158804, xinetd/trunk/xinetd.service)
  xinetd/repos/testing-x86_64/
  xinetd/repos/testing-x86_64/PKGBUILD
    (from rev 158804, xinetd/trunk/PKGBUILD)
  xinetd/repos/testing-x86_64/servers
    (from rev 158804, xinetd/trunk/servers)
  xinetd/repos/testing-x86_64/services
    (from rev 158804, xinetd/trunk/services)
  xinetd/repos/testing-x86_64/xinetd
    (from rev 158804, xinetd/trunk/xinetd)
  xinetd/repos/testing-x86_64/xinetd.conf
    (from rev 158804, xinetd/trunk/xinetd.conf)
  xinetd/repos/testing-x86_64/xinetd.service
    (from rev 158804, xinetd/trunk/xinetd.service)

-------------------------------+
 testing-i686/PKGBUILD         |   47 ++++++++++++++++++++++++++++++++++++++++
 testing-i686/servers          |   10 ++++++++
 testing-i686/services         |   10 ++++++++
 testing-i686/xinetd           |   38 ++++++++++++++++++++++++++++++++
 testing-i686/xinetd.conf      |   14 +++++++++++
 testing-i686/xinetd.service   |   10 ++++++++
 testing-x86_64/PKGBUILD       |   47 ++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/servers        |   10 ++++++++
 testing-x86_64/services       |   10 ++++++++
 testing-x86_64/xinetd         |   38 ++++++++++++++++++++++++++++++++
 testing-x86_64/xinetd.conf    |   14 +++++++++++
 testing-x86_64/xinetd.service |   10 ++++++++
 12 files changed, 258 insertions(+)

Copied: xinetd/repos/testing-i686/PKGBUILD (from rev 158804, xinetd/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer:
+# Contributor: Judd <jvinet at zeroflux.org>
+
+pkgname=xinetd
+pkgver=2.3.15
+pkgrel=1
+pkgdesc="A secure replacement for inetd"
+arch=('i686' 'x86_64')
+url="http://www.xinetd.org/"
+license=('custom')
+optdepends=('perl: for xconv.pl script')
+backup=('etc/xinetd.conf' 'etc/xinetd.d/servers' 'etc/xinetd.d/services')
+source=(http://www.xinetd.org/xinetd-$pkgver.tar.gz
+        xinetd.conf
+        xinetd
+        servers
+        services
+        xinetd.service)
+md5sums=('77358478fd58efa6366accae99b8b04c'
+         'f109f699a07bc8cfb5791060f5e87f9e'
+         'ea37a2794f202e6b953d9b6956dad16a'
+         '21f47b4aa20921cfaddddd9f9a407f81'
+         '9fa2061dc7dd738c8424251deb86f81e'
+         '4473d8b2b6c984626d9f73a0b89711ee')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  sed -i "s#${prefix}/man#${prefix}/share/man#" configure
+  ./configure --prefix=/usr --without-libwrap
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make prefix=$pkgdir/usr install
+  
+  install -Dm755 $srcdir/xinetd $pkgdir/etc/rc.d/xinetd
+  install -Dm644 $srcdir/xinetd.conf $pkgdir/etc/xinetd.conf
+  install -Dm644 $srcdir/servers $pkgdir/etc/xinetd.d/servers
+  install -Dm644 $srcdir/services $pkgdir/etc/xinetd.d/services
+
+  # install systemd files
+  install -Dm644 $srcdir/xinetd.service $pkgdir/usr/lib/systemd/system/xinetd.service
+  # install license
+  install -Dm644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
+}

Copied: xinetd/repos/testing-i686/servers (from rev 158804, xinetd/trunk/servers)
===================================================================
--- testing-i686/servers	                        (rev 0)
+++ testing-i686/servers	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,10 @@
+service servers
+{
+        type            = INTERNAL UNLISTED
+        port            = 9099
+        socket_type     = stream
+        protocol        = tcp
+        wait            = no
+        disable         = yes
+        only_from       = 127.0.0.1
+}

Copied: xinetd/repos/testing-i686/services (from rev 158804, xinetd/trunk/services)
===================================================================
--- testing-i686/services	                        (rev 0)
+++ testing-i686/services	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,10 @@
+service services
+{
+        type            = INTERNAL UNLISTED
+        port            = 9098
+        socket_type     = stream
+        protocol        = tcp
+        wait            = no
+        disable         = yes
+        only_from       = 127.0.0.1
+}

Copied: xinetd/repos/testing-i686/xinetd (from rev 158804, xinetd/trunk/xinetd)
===================================================================
--- testing-i686/xinetd	                        (rev 0)
+++ testing-i686/xinetd	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/xinetd`
+case "$1" in
+  start)
+    stat_busy "Starting xinetd"
+    [ -z "$PID" ] && /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      echo $PID > /var/run/xinetd.pid
+      add_daemon xinetd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping xinetd"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm -f /var/run/xinetd.pid
+      rm_daemon xinetd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: xinetd/repos/testing-i686/xinetd.conf (from rev 158804, xinetd/trunk/xinetd.conf)
===================================================================
--- testing-i686/xinetd.conf	                        (rev 0)
+++ testing-i686/xinetd.conf	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,14 @@
+#
+# /etc/xinetd.conf
+#
+
+defaults
+{
+        instances               = 60
+        log_type                = SYSLOG authpriv
+        log_on_success          = HOST PID
+        log_on_failure          = HOST
+        cps                     = 25 30
+}
+
+includedir /etc/xinetd.d

Copied: xinetd/repos/testing-i686/xinetd.service (from rev 158804, xinetd/trunk/xinetd.service)
===================================================================
--- testing-i686/xinetd.service	                        (rev 0)
+++ testing-i686/xinetd.service	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,10 @@
+[Unit]
+Description=A secure replacement for inetd
+After=network.service
+
+[Service]
+ExecStart=/usr/sbin/xinetd -dontfork
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: xinetd/repos/testing-x86_64/PKGBUILD (from rev 158804, xinetd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer:
+# Contributor: Judd <jvinet at zeroflux.org>
+
+pkgname=xinetd
+pkgver=2.3.15
+pkgrel=1
+pkgdesc="A secure replacement for inetd"
+arch=('i686' 'x86_64')
+url="http://www.xinetd.org/"
+license=('custom')
+optdepends=('perl: for xconv.pl script')
+backup=('etc/xinetd.conf' 'etc/xinetd.d/servers' 'etc/xinetd.d/services')
+source=(http://www.xinetd.org/xinetd-$pkgver.tar.gz
+        xinetd.conf
+        xinetd
+        servers
+        services
+        xinetd.service)
+md5sums=('77358478fd58efa6366accae99b8b04c'
+         'f109f699a07bc8cfb5791060f5e87f9e'
+         'ea37a2794f202e6b953d9b6956dad16a'
+         '21f47b4aa20921cfaddddd9f9a407f81'
+         '9fa2061dc7dd738c8424251deb86f81e'
+         '4473d8b2b6c984626d9f73a0b89711ee')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  sed -i "s#${prefix}/man#${prefix}/share/man#" configure
+  ./configure --prefix=/usr --without-libwrap
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make prefix=$pkgdir/usr install
+  
+  install -Dm755 $srcdir/xinetd $pkgdir/etc/rc.d/xinetd
+  install -Dm644 $srcdir/xinetd.conf $pkgdir/etc/xinetd.conf
+  install -Dm644 $srcdir/servers $pkgdir/etc/xinetd.d/servers
+  install -Dm644 $srcdir/services $pkgdir/etc/xinetd.d/services
+
+  # install systemd files
+  install -Dm644 $srcdir/xinetd.service $pkgdir/usr/lib/systemd/system/xinetd.service
+  # install license
+  install -Dm644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
+}

Copied: xinetd/repos/testing-x86_64/servers (from rev 158804, xinetd/trunk/servers)
===================================================================
--- testing-x86_64/servers	                        (rev 0)
+++ testing-x86_64/servers	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,10 @@
+service servers
+{
+        type            = INTERNAL UNLISTED
+        port            = 9099
+        socket_type     = stream
+        protocol        = tcp
+        wait            = no
+        disable         = yes
+        only_from       = 127.0.0.1
+}

Copied: xinetd/repos/testing-x86_64/services (from rev 158804, xinetd/trunk/services)
===================================================================
--- testing-x86_64/services	                        (rev 0)
+++ testing-x86_64/services	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,10 @@
+service services
+{
+        type            = INTERNAL UNLISTED
+        port            = 9098
+        socket_type     = stream
+        protocol        = tcp
+        wait            = no
+        disable         = yes
+        only_from       = 127.0.0.1
+}

Copied: xinetd/repos/testing-x86_64/xinetd (from rev 158804, xinetd/trunk/xinetd)
===================================================================
--- testing-x86_64/xinetd	                        (rev 0)
+++ testing-x86_64/xinetd	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/xinetd`
+case "$1" in
+  start)
+    stat_busy "Starting xinetd"
+    [ -z "$PID" ] && /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      echo $PID > /var/run/xinetd.pid
+      add_daemon xinetd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping xinetd"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm -f /var/run/xinetd.pid
+      rm_daemon xinetd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Copied: xinetd/repos/testing-x86_64/xinetd.conf (from rev 158804, xinetd/trunk/xinetd.conf)
===================================================================
--- testing-x86_64/xinetd.conf	                        (rev 0)
+++ testing-x86_64/xinetd.conf	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,14 @@
+#
+# /etc/xinetd.conf
+#
+
+defaults
+{
+        instances               = 60
+        log_type                = SYSLOG authpriv
+        log_on_success          = HOST PID
+        log_on_failure          = HOST
+        cps                     = 25 30
+}
+
+includedir /etc/xinetd.d

Copied: xinetd/repos/testing-x86_64/xinetd.service (from rev 158804, xinetd/trunk/xinetd.service)
===================================================================
--- testing-x86_64/xinetd.service	                        (rev 0)
+++ testing-x86_64/xinetd.service	2012-05-10 14:07:20 UTC (rev 158805)
@@ -0,0 +1,10 @@
+[Unit]
+Description=A secure replacement for inetd
+After=network.service
+
+[Service]
+ExecStart=/usr/sbin/xinetd -dontfork
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list