path fixes for x86_64 [release 1.9.2-5mamba;Mon Jan 19 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 23:54:41 +01:00
parent 9da1f2b5f6
commit 491c8b2f07
8 changed files with 42 additions and 36 deletions

View File

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=forking
PIDFile=/run/ftpd.pid
ExecStart=/usr/libexec/ftpd -D
ExecStart=@libexecdir@/ftpd -D
ExecStopPost=/bin/rm -f /run/ftpd.pid
[Install]

View File

@ -1,6 +1,6 @@
Name: inetutils
Version: 1.9.2
Release: 4mamba
Release: 5mamba
Summary: A collection of common network programs
Group: Applications/Networking
Vendor: openmamba
@ -18,16 +18,16 @@ Source7: talk.service
Source8: talk.socket
Source9: telnet.socket
Source10: telnet@.service
Source11: tftpd@.service
Source11: tftpd.service
Source12: tftpd.socket
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libpam-devel
BuildRequires: libreadline-devel
BuildRequires: libtermcap-devel
BuildRequires: libwrap-devel
BuildRequires: pam-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
Provides: ftp
@ -117,17 +117,19 @@ rm -f %{buildroot}%{_mandir}/man1/logger.1*
mkdir -p %{buildroot}/var/lib/tftpboot
install -D -m0644 %{SOURCE2} %{buildroot}/lib/systemd/system/ftpd.service
install -D -m0644 %{SOURCE3} %{buildroot}/lib/systemd/system/rlogin.socket
install -D -m0644 %{SOURCE4} %{buildroot}/lib/systemd/system/rlogin.service
install -D -m0644 %{SOURCE5} %{buildroot}/lib/systemd/system/rsh.socket
install -D -m0644 %{SOURCE6} %{buildroot}/lib/systemd/system/rsh@.service
install -D -m0644 %{SOURCE7} %{buildroot}/lib/systemd/system/talk.service
install -D -m0644 %{SOURCE8} %{buildroot}/lib/systemd/system/talk.socket
install -D -m0644 %{SOURCE9} %{buildroot}/lib/systemd/system/telnet.socket
install -D -m0644 %{SOURCE10} %{buildroot}/lib/systemd/system/telnet@.service
install -D -m0644 %{SOURCE11} %{buildroot}/lib/systemd/system/tftpd@.service
install -D -m0644 %{SOURCE12} %{buildroot}/lib/systemd/system/tftpd.socket
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/ftpd.service
install -D -m0644 %{SOURCE3} %{buildroot}%{_unitdir}/rlogin.socket
install -D -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/rlogin.service
install -D -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/rsh.socket
install -D -m0644 %{SOURCE6} %{buildroot}%{_unitdir}/rsh@.service
install -D -m0644 %{SOURCE7} %{buildroot}%{_unitdir}/talk.service
install -D -m0644 %{SOURCE8} %{buildroot}%{_unitdir}/talk.socket
install -D -m0644 %{SOURCE9} %{buildroot}%{_unitdir}/telnet.socket
install -D -m0644 %{SOURCE10} %{buildroot}%{_unitdir}/telnet@.service
install -D -m0644 %{SOURCE11} %{buildroot}%{_unitdir}/tftpd.service
install -D -m0644 %{SOURCE12} %{buildroot}%{_unitdir}/tftpd.socket
sed -i "s|@libexecdir@|%{_libexecdir}|" %{buildroot}%{_unitdir}/*.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -211,15 +213,15 @@ fi
%{_libexecdir}/talkd
%{_libexecdir}/telnetd
%{_libexecdir}/uucpd
/lib/systemd/system/ftpd.service
/lib/systemd/system/rlogin.service
/lib/systemd/system/rlogin.socket
/lib/systemd/system/rsh.socket
/lib/systemd/system/rsh@.service
/lib/systemd/system/talk.service
/lib/systemd/system/talk.socket
/lib/systemd/system/telnet.socket
/lib/systemd/system/telnet@.service
%{_unitdir}/ftpd.service
%{_unitdir}/rlogin.service
%{_unitdir}/rlogin.socket
%{_unitdir}/rsh.socket
%{_unitdir}/rsh@.service
%{_unitdir}/talk.service
%{_unitdir}/talk.socket
%{_unitdir}/telnet.socket
%{_unitdir}/telnet@.service
%{_mandir}/man8/ftpd.8*
%{_mandir}/man8/inetd.8*
%{_mandir}/man8/rexecd.8*
@ -233,11 +235,14 @@ fi
%defattr(-,root,root)
%{_libexecdir}/tftpd
/lib/systemd/system/tftpd.socket
/lib/systemd/system/tftpd@.service
/lib/systemd/system/tftpd.service
%{_mandir}/man8/tftpd.8*
%dir %attr(0750,root,root) %{_localstatedir}/lib/tftpboot
%changelog
* Mon Jan 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.2-5mamba
- path fixes for x86_64
* Sat Jun 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.2-4mamba
- disable traceroute and require better external package

View File

@ -3,5 +3,5 @@ Description=Remote Login Facilities Server
After=local-fs.target
[Service]
ExecStart=-/usr/libexec/rlogind
ExecStart=-@libexecdir@/rlogind
StandardInput=socket

View File

@ -5,7 +5,7 @@ Documentation=man:talkd(8) man:talk(1)
[Service]
User=nobody
Group=tty
ExecStart=/usr/libexec/talkd
ExecStart=@libexecdir@/talkd
StandardInput=socket
[Install]

View File

@ -3,5 +3,5 @@ Description=Telnet Server
After=local-fs.target
[Service]
ExecStart=-/usr/libexec/telnetd
ExecStart=-@libexecdir@/telnetd
StandardInput=socket

9
tftpd.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Trivial FTP Server
After=local-fs.target
[Service]
ExecStart=-@libexecdir@/tftpd /var/lib/tftpboot
StandardInput=socket
StandardOutput=inherit
StandardError=journal

View File

@ -3,7 +3,6 @@ Description=Trivial FTP Daemon (tftp) Activation Socket
[Socket]
ListenDatagram=69
Accept=true
[Install]
WantedBy=sockets.target

View File

@ -1,7 +0,0 @@
[Unit]
Description=Trivial FTP Server
After=local-fs.target
[Service]
ExecStart=-/usr/libexec/tftpd /var/lib/tftpboot
StandardInput=socket