* sync inetutils with main arch
This commit is contained in:
parent
7b869e8dd7
commit
10c3a00333
@ -3,24 +3,24 @@
|
||||
|
||||
pkgname=inetutils
|
||||
pkgver=1.9.4
|
||||
pkgrel=7
|
||||
pkgrel=8
|
||||
pkgdesc="A collection of common network programs"
|
||||
arch=('x86_64' 'powerpc64le')
|
||||
url="http://www.gnu.org/software/inetutils/"
|
||||
arch=(x86_64 powerpc64le)
|
||||
url="https://www.gnu.org/software/inetutils/"
|
||||
license=('GPL3')
|
||||
groups=('base')
|
||||
depends=('pam' 'libcap')
|
||||
#makedepends=('help2man')
|
||||
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"
|
||||
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'
|
||||
|
12
inetutils/ftpd.service
Normal file
12
inetutils/ftpd.service
Normal file
@ -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
|
9
inetutils/inetutils.install
Normal file
9
inetutils/inetutils.install
Normal file
@ -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
|
||||
}
|
13
inetutils/rlogin.pam
Normal file
13
inetutils/rlogin.pam
Normal file
@ -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
|
9
inetutils/rlogin.socket
Normal file
9
inetutils/rlogin.socket
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Remote Login Facilities Activation Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=513
|
||||
Accept=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
10
inetutils/rlogin.xinetd
Normal file
10
inetutils/rlogin.xinetd
Normal file
@ -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
|
||||
}
|
7
inetutils/rlogin@.service
Normal file
7
inetutils/rlogin@.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Remote Login Facilities Server
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
ExecStart=-/usr/bin/rlogind
|
||||
StandardInput=socket
|
11
inetutils/rsh.pam
Normal file
11
inetutils/rsh.pam
Normal file
@ -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
|
9
inetutils/rsh.socket
Normal file
9
inetutils/rsh.socket
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Remote Shell Facilities Activation Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=514
|
||||
Accept=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
10
inetutils/rsh.xinetd
Normal file
10
inetutils/rsh.xinetd
Normal file
@ -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
|
||||
}
|
7
inetutils/rsh@.service
Normal file
7
inetutils/rsh@.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Remote Shell Facilities Server
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
ExecStart=-/usr/bin/rshd
|
||||
StandardInput=socket
|
12
inetutils/talk.service
Normal file
12
inetutils/talk.service
Normal file
@ -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
|
9
inetutils/talk.socket
Normal file
9
inetutils/talk.socket
Normal file
@ -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
|
10
inetutils/talk.xinetd
Normal file
10
inetutils/talk.xinetd
Normal file
@ -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
|
||||
}
|
10
inetutils/telnet.socket
Normal file
10
inetutils/telnet.socket
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Telnet Server Activation Socket
|
||||
Documentation=man:telnetd(8)
|
||||
|
||||
[Socket]
|
||||
ListenStream=23
|
||||
Accept=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
10
inetutils/telnet.xinetd
Normal file
10
inetutils/telnet.xinetd
Normal file
@ -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
|
||||
}
|
7
inetutils/telnet@.service
Normal file
7
inetutils/telnet@.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Telnet Server
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
ExecStart=-/usr/bin/telnetd
|
||||
StandardInput=socket
|
Loading…
x
Reference in New Issue
Block a user