diff options
author | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-01 01:51:03 +0200 |
---|---|---|
committer | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-01 01:51:03 +0200 |
commit | 56f955aca6231693fe797de4793f77ed58ab116e (patch) | |
tree | 17daeabce98174f288bab94b47961dc9e9931e66 /libre-testing/inetutils | |
parent | 75ff40baa049bae7e9270d20ef86a88b733006ab (diff) | |
download | abslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.gz abslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.bz2 abslibre-56f955aca6231693fe797de4793f77ed58ab116e.zip |
Add some base packages for ppc64le
Diffstat (limited to 'libre-testing/inetutils')
-rw-r--r-- | libre-testing/inetutils/PKGBUILD | 89 | ||||
-rw-r--r-- | libre-testing/inetutils/ftpd.service | 12 | ||||
-rw-r--r-- | libre-testing/inetutils/inetutils.install | 9 | ||||
-rw-r--r-- | libre-testing/inetutils/rlogin.pam | 13 | ||||
-rw-r--r-- | libre-testing/inetutils/rlogin.socket | 9 | ||||
-rw-r--r-- | libre-testing/inetutils/rlogin.xinetd | 10 | ||||
-rw-r--r-- | libre-testing/inetutils/rlogin@.service | 7 | ||||
-rw-r--r-- | libre-testing/inetutils/rsh.pam | 11 | ||||
-rw-r--r-- | libre-testing/inetutils/rsh.socket | 9 | ||||
-rw-r--r-- | libre-testing/inetutils/rsh.xinetd | 10 | ||||
-rw-r--r-- | libre-testing/inetutils/rsh@.service | 7 | ||||
-rw-r--r-- | libre-testing/inetutils/talk.service | 12 | ||||
-rw-r--r-- | libre-testing/inetutils/talk.socket | 9 | ||||
-rw-r--r-- | libre-testing/inetutils/talk.xinetd | 10 | ||||
-rw-r--r-- | libre-testing/inetutils/telnet.socket | 10 | ||||
-rw-r--r-- | libre-testing/inetutils/telnet.xinetd | 10 | ||||
-rw-r--r-- | libre-testing/inetutils/telnet@.service | 7 |
17 files changed, 244 insertions, 0 deletions
diff --git a/libre-testing/inetutils/PKGBUILD b/libre-testing/inetutils/PKGBUILD new file mode 100644 index 000000000..a6d2bd59d --- /dev/null +++ b/libre-testing/inetutils/PKGBUILD @@ -0,0 +1,89 @@ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=inetutils +pkgver=1.9.4 +pkgrel=5 +pkgdesc="A collection of common network programs" +arch=(x86_64 ppc64le) +url="http://www.gnu.org/software/inetutils/" +license=('GPL3') +groups=('base') +depends=('pam' 'libcap') +makedepends=('help2man') +backup=('etc/xinetd.d/telnet' 'etc/xinetd.d/talk' + 'etc/xinetd.d/rlogin' 'etc/xinetd.d/rsh' + 'etc/pam.d/rlogin' 'etc/pam.d/rsh') +options=('!emptydirs') +install=inetutils.install +source=("https://ftp.gnu.org/gnu/inetutils/${pkgname}-${pkgver}.tar.xz"{,.sig} + 'ftpd.service' 'rlogin.pam' 'rlogin@.service' 'rlogin.socket' 'rlogin.xinetd' + 'rsh.pam' 'rsh@.service' 'rsh.socket' 'rsh.xinetd' 'talk.service' 'talk.socket' + 'talk.xinetd' 'telnet@.service' 'telnet.socket' 'telnet.xinetd') +sha1sums=('5e515cc9da142cb73bb1beda137b4c2dcf2b528c' + 'SKIP' + '026181500b71f0c09ef5c262450be718651e5658' + '387b371cbaa3611b95d30f806c0dd08b621a584a' + '6f9a304391610a17b8ae3ad35b742c78c86aee16' + '0455126fa18d2a9422469d79b9e73dd928b15652' + 'd9b8f8aab094ecb779d0f16f21b4683ab327516f' + '556b5372cbab8794e931e110b896fa8a61628bb1' + '828da7bce49ffc4e9645288759b275a98a2fbc40' + '7071da32d42a133ead039197ed891b518bb0f773' + '26763ae31b8a5be256666a0ba55746941d75d6ee' + '4486c966d28736897bce1280d85d139bd10a5689' + 'd1813d42c5c9d2c60f03ebe33961de357a4b8b43' + 'b15ab4faa9d97652e182c98c1e3a3b3cbbf6383c' + '0917dc6b5a80d914bf550065b1733b7da2c776f3' + 'a7ac7bbe917ff80fd8cd4357fbc62fab50595c34' + '2b2dd71eb3233e5090f4c2df8abe9b4924d323f3') +validpgpkeys=('4FBD67621082C4C502448E3B180551BAD95A3C35') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --libexec=/usr/bin \ + --localstatedir=/var --sysconfdir=/etc \ + --without-wrap --with-pam \ + --enable-ftp --enable-ftpd \ + --enable-telnet --enable-telnetd \ + --enable-talk --enable-talkd \ + --enable-rlogin --enable-rlogind \ + --enable-rsh --enable-rshd \ + --enable-rcp --enable-hostname --enable-dnsdomainname \ + --disable-rexec --disable-rexecd \ + --disable-tftp --disable-tftpd \ + --disable-ping --disable-ping6 \ + --disable-logger --disable-syslogd \ + --disable-inetd --disable-whois \ + --disable-uucpd --disable-ifconfig --disable-traceroute + make +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + chmod -s "${pkgdir}"/usr/bin/{rcp,rlogin,rsh} + + install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet" + install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk" + install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin" + install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh" + + install -D -m644 "${srcdir}/rlogin.pam" "${pkgdir}/etc/pam.d/rlogin" + install -D -m644 "${srcdir}/rsh.pam" "${pkgdir}/etc/pam.d/rsh" + + install -D -m644 "${srcdir}/ftpd.service" "${pkgdir}/usr/lib/systemd/system/ftpd.service" + install -D -m644 "${srcdir}/rlogin@.service" "${pkgdir}/usr/lib/systemd/system/rlogin@.service" + install -D -m644 "${srcdir}/rlogin.socket" "${pkgdir}/usr/lib/systemd/system/rlogin.socket" + install -D -m644 "${srcdir}/rsh@.service" "${pkgdir}/usr/lib/systemd/system/rsh@.service" + install -D -m644 "${srcdir}/rsh.socket" "${pkgdir}/usr/lib/systemd/system/rsh.socket" + install -D -m644 "${srcdir}/talk.service" "${pkgdir}/usr/lib/systemd/system/talk.service" + install -D -m644 "${srcdir}/talk.socket" "${pkgdir}/usr/lib/systemd/system/talk.socket" + install -D -m644 "${srcdir}/telnet@.service" "${pkgdir}/usr/lib/systemd/system/telnet@.service" + install -D -m644 "${srcdir}/telnet.socket" "${pkgdir}/usr/lib/systemd/system/telnet.socket" +} diff --git a/libre-testing/inetutils/ftpd.service b/libre-testing/inetutils/ftpd.service new file mode 100644 index 000000000..c1deb0d52 --- /dev/null +++ b/libre-testing/inetutils/ftpd.service @@ -0,0 +1,12 @@ +[Unit] +Description=FTPD Daemon +After=network.target + +[Service] +Type=forking +PIDFile=/run/ftpd.pid +ExecStart=/usr/bin/ftpd -D +ExecStopPost=/usr/bin/rm -f /run/ftpd.pid + +[Install] +WantedBy=multi-user.target diff --git a/libre-testing/inetutils/inetutils.install b/libre-testing/inetutils/inetutils.install new file mode 100644 index 000000000..4776e7e04 --- /dev/null +++ b/libre-testing/inetutils/inetutils.install @@ -0,0 +1,9 @@ +post_install() { + setcap cap_net_bind_service=+ep usr/bin/rcp 2>/dev/null || chmod +s usr/bin/rcp + setcap cap_net_bind_service=+ep usr/bin/rlogin 2>/dev/null || chmod +s usr/bin/rlogin + setcap cap_net_bind_service=+ep usr/bin/rsh 2>/dev/null || chmod +s usr/bin/rsh +} + +post_upgrade() { + post_install +} diff --git a/libre-testing/inetutils/rlogin.pam b/libre-testing/inetutils/rlogin.pam new file mode 100644 index 000000000..d92a5da40 --- /dev/null +++ b/libre-testing/inetutils/rlogin.pam @@ -0,0 +1,13 @@ +#%PAM-1.0 +# For root login to succeed here with pam_securetty, "rlogin" must be +# listed in /etc/securetty. +auth required pam_nologin.so +auth required pam_securetty.so +auth required pam_env.so +auth sufficient pam_rhosts.so +auth include system-auth +account include system-auth +password include system-auth +session optional pam_keyinit.so force revoke +session required pam_loginuid.so +session include system-auth diff --git a/libre-testing/inetutils/rlogin.socket b/libre-testing/inetutils/rlogin.socket new file mode 100644 index 000000000..c8c276c59 --- /dev/null +++ b/libre-testing/inetutils/rlogin.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Remote Login Facilities Activation Socket + +[Socket] +ListenStream=513 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/libre-testing/inetutils/rlogin.xinetd b/libre-testing/inetutils/rlogin.xinetd new file mode 100644 index 000000000..bffdb9011 --- /dev/null +++ b/libre-testing/inetutils/rlogin.xinetd @@ -0,0 +1,10 @@ +service login +{ + flags = REUSE + socket_type = stream + wait = no + user = root + server = /usr/bin/rlogind + log_on_failure += USERID + disable = yes +} diff --git a/libre-testing/inetutils/rlogin@.service b/libre-testing/inetutils/rlogin@.service new file mode 100644 index 000000000..77c18caa9 --- /dev/null +++ b/libre-testing/inetutils/rlogin@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Remote Login Facilities Server +After=local-fs.target + +[Service] +ExecStart=-/usr/bin/rlogind +StandardInput=socket diff --git a/libre-testing/inetutils/rsh.pam b/libre-testing/inetutils/rsh.pam new file mode 100644 index 000000000..3c04bc7d6 --- /dev/null +++ b/libre-testing/inetutils/rsh.pam @@ -0,0 +1,11 @@ +#%PAM-1.0 +# For root login to succeed here with pam_securetty, "rsh" must be +# listed in /etc/securetty. +auth required pam_nologin.so +auth required pam_securetty.so +auth required pam_env.so +auth required pam_rhosts.so +account include system-auth +session optional pam_keyinit.so force revoke +session required pam_loginuid.so +session include system-auth diff --git a/libre-testing/inetutils/rsh.socket b/libre-testing/inetutils/rsh.socket new file mode 100644 index 000000000..4d44b99eb --- /dev/null +++ b/libre-testing/inetutils/rsh.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Remote Shell Facilities Activation Socket + +[Socket] +ListenStream=514 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/libre-testing/inetutils/rsh.xinetd b/libre-testing/inetutils/rsh.xinetd new file mode 100644 index 000000000..c8848ce7f --- /dev/null +++ b/libre-testing/inetutils/rsh.xinetd @@ -0,0 +1,10 @@ +service shell +{ + flags = REUSE + socket_type = stream + wait = no + user = root + server = /usr/bin/rshd + log_on_failure += USERID + disable = yes +} diff --git a/libre-testing/inetutils/rsh@.service b/libre-testing/inetutils/rsh@.service new file mode 100644 index 000000000..403754a9f --- /dev/null +++ b/libre-testing/inetutils/rsh@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Remote Shell Facilities Server +After=local-fs.target + +[Service] +ExecStart=-/usr/bin/rshd +StandardInput=socket diff --git a/libre-testing/inetutils/talk.service b/libre-testing/inetutils/talk.service new file mode 100644 index 000000000..25eb6732d --- /dev/null +++ b/libre-testing/inetutils/talk.service @@ -0,0 +1,12 @@ +[Unit] +Description=Talk Server +Documentation=man:talkd(8) man:talk(1) + +[Service] +User=nobody +Group=tty +ExecStart=/usr/bin/talkd +StandardInput=socket + +[Install] +Also=talk.socket diff --git a/libre-testing/inetutils/talk.socket b/libre-testing/inetutils/talk.socket new file mode 100644 index 000000000..b09e07cbb --- /dev/null +++ b/libre-testing/inetutils/talk.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Talk Server Activation Socket +Documentation=man:talkd(8) man:talk(1) + +[Socket] +ListenDatagram=0.0.0.0:518 + +[Install] +WantedBy=sockets.target diff --git a/libre-testing/inetutils/talk.xinetd b/libre-testing/inetutils/talk.xinetd new file mode 100644 index 000000000..b62e56310 --- /dev/null +++ b/libre-testing/inetutils/talk.xinetd @@ -0,0 +1,10 @@ +service ntalk +{ + flags = REUSE + socket_type = dgram + wait = yes + user = root + server = /usr/bin/talkd + log_on_failure += USERID + disable = yes +} diff --git a/libre-testing/inetutils/telnet.socket b/libre-testing/inetutils/telnet.socket new file mode 100644 index 000000000..811b6725f --- /dev/null +++ b/libre-testing/inetutils/telnet.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Telnet Server Activation Socket +Documentation=man:telnetd(8) + +[Socket] +ListenStream=23 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/libre-testing/inetutils/telnet.xinetd b/libre-testing/inetutils/telnet.xinetd new file mode 100644 index 000000000..c56f33985 --- /dev/null +++ b/libre-testing/inetutils/telnet.xinetd @@ -0,0 +1,10 @@ +service telnet +{ + flags = REUSE + socket_type = stream + wait = no + user = root + server = /usr/bin/telnetd + log_on_failure += USERID + disable = yes +} diff --git a/libre-testing/inetutils/telnet@.service b/libre-testing/inetutils/telnet@.service new file mode 100644 index 000000000..d92af371b --- /dev/null +++ b/libre-testing/inetutils/telnet@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Telnet Server +After=local-fs.target + +[Service] +ExecStart=-/usr/bin/telnetd +StandardInput=socket |