[arch-commits] Commit in xinetd/repos (7 files)
Tobias Powalowski
tpowa at archlinux.org
Mon Aug 17 12:48:59 UTC 2020
Date: Monday, August 17, 2020 @ 12:48:59
Author: tpowa
Revision: 394342
archrelease: copy trunk to testing-x86_64
Added:
xinetd/repos/testing-x86_64/
xinetd/repos/testing-x86_64/PKGBUILD
(from rev 394341, xinetd/trunk/PKGBUILD)
xinetd/repos/testing-x86_64/servers
(from rev 394341, xinetd/trunk/servers)
xinetd/repos/testing-x86_64/services
(from rev 394341, xinetd/trunk/services)
xinetd/repos/testing-x86_64/xinetd
(from rev 394341, xinetd/trunk/xinetd)
xinetd/repos/testing-x86_64/xinetd.conf
(from rev 394341, xinetd/trunk/xinetd.conf)
xinetd/repos/testing-x86_64/xinetd.service
(from rev 394341, xinetd/trunk/xinetd.service)
----------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
servers | 10 ++++++++++
services | 10 ++++++++++
xinetd | 38 ++++++++++++++++++++++++++++++++++++++
xinetd.conf | 14 ++++++++++++++
xinetd.service | 10 ++++++++++
6 files changed, 125 insertions(+)
Copied: xinetd/repos/testing-x86_64/PKGBUILD (from rev 394341, xinetd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-08-17 12:48:59 UTC (rev 394342)
@@ -0,0 +1,43 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Judd <jvinet at zeroflux.org>
+
+pkgname=xinetd
+pkgver=2.3.15.4
+pkgrel=1
+pkgdesc="A secure replacement for inetd"
+arch=('x86_64')
+url="https://github.com/openSUSE/xinetd"
+license=('custom')
+depends=('libtirpc')
+optdepends=('perl: for xconv.pl script')
+backup=('etc/xinetd.conf' 'etc/xinetd.d/servers' 'etc/xinetd.d/services')
+source=("https://github.com/openSUSE/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"
+ xinetd.conf
+ servers
+ services
+ xinetd.service)
+sha256sums=('2baa581010bc70361abdfa37f121e92aeb9c5ce67f9a71913cebd69359cc9654'
+ '389a043503b287a1d096444b7da90c5187388a886687129c125135090bc2c86e'
+ '707a89ec32822f6d146b6ed3d43a38fee909b33d973f6ab7e9742ca8bc9f55f6'
+ '7f709257b08cb19f0a7066d1de6996bfe7c8c510546d11106512a19a76ccf540'
+ 'fa9ffd5ecf71e2dbd6e8cf57eb040ff6ea349420707a7f3c7850974774f7a18d')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --without-libwrap
+ CFLAGS+=' -I/usr/include/tirpc' LDFLAGS+=' -ltirpc' make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make prefix="$pkgdir/usr" sbindir="$pkgdir/usr/bin" sysconfdir="$pkgdir/etc" install
+
+ 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 394341, xinetd/trunk/servers)
===================================================================
--- testing-x86_64/servers (rev 0)
+++ testing-x86_64/servers 2020-08-17 12:48:59 UTC (rev 394342)
@@ -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 394341, xinetd/trunk/services)
===================================================================
--- testing-x86_64/services (rev 0)
+++ testing-x86_64/services 2020-08-17 12:48:59 UTC (rev 394342)
@@ -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 394341, xinetd/trunk/xinetd)
===================================================================
--- testing-x86_64/xinetd (rev 0)
+++ testing-x86_64/xinetd 2020-08-17 12:48:59 UTC (rev 394342)
@@ -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 394341, xinetd/trunk/xinetd.conf)
===================================================================
--- testing-x86_64/xinetd.conf (rev 0)
+++ testing-x86_64/xinetd.conf 2020-08-17 12:48:59 UTC (rev 394342)
@@ -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 394341, xinetd/trunk/xinetd.service)
===================================================================
--- testing-x86_64/xinetd.service (rev 0)
+++ testing-x86_64/xinetd.service 2020-08-17 12:48:59 UTC (rev 394342)
@@ -0,0 +1,10 @@
+[Unit]
+Description=A secure replacement for inetd
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/xinetd -dontfork
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list