rebuilt to fix ftp missing link to libncurses/libtermcap [release 1.9.2-3mamba;Wed Apr 09 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 23:54:40 +01:00
parent d0128a2f49
commit e5502a8484
13 changed files with 383 additions and 0 deletions

View File

@ -1,2 +1,13 @@
# inetutils
Inetutils is a collection of common network programs. It includes:
* An ftp client
* A telnet client
* An rsh client
* An rlogin client
* A tftp client
* And much more...
Most of them are improved versions of programs originally from BSD. Some others are original versions, written from scratch.

12
ftpd.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=FTPD Daemon
After=network.target
[Service]
Type=forking
PIDFile=/run/ftpd.pid
ExecStart=/usr/libexec/ftpd -D
ExecStopPost=/bin/rm -f /run/ftpd.pid
[Install]
WantedBy=multi-user.target

273
inetutils.spec Normal file
View File

@ -0,0 +1,273 @@
Name: inetutils
Version: 1.9.2
Release: 3mamba
Summary: A collection of common network programs
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnu.org/software/inetutils/inetutils.html
Source: ftp://ftp.gnu.org/gnu/inetutils/inetutils-%{version}.tar.gz
#Source1: inetutils-tftpd-xinetd
Source2: ftpd.service
Source3: rlogin.socket
Source4: rlogin.service
Source5: rsh.socket
Source6: rsh@.service
Source7: talk.service
Source8: talk.socket
Source9: telnet.socket
Source10: telnet@.service
Source11: tftpd@.service
Source12: tftpd.socket
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libreadline-devel
BuildRequires: libtermcap-devel
BuildRequires: libwrap-devel
BuildRequires: pam-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
Provides: ftp
Obsoletes: ftp
Provides: telnet
Obsoletes: telnet
Provides: traceroute
Obsoletes: traceroute
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Conflicts: tftp
%description
Inetutils is a collection of common network programs. It includes:
* An ftp client
* A telnet client
* An rsh client
* An rlogin client
* A tftp client
* And much more...
Most of them are improved versions of programs originally from BSD. Some others are original versions, written from scratch.
%package servers
Group: System/Servers
Summary: A collection of various servers such as telnet, ftpd, rlogin
Conflicts: ftp
%description servers
A collection of common network servers. It includes:
* An ftp server
* A telnet server
* An rsh server
* An rlogin server
* And much more...
%package ping
Group: Applications/Networking
Summary: The ping and ping6 commands from GNU inetutils package
Conflicts: iputils
%description ping
The ping and ping6 commands from GNU inetutils package.
%package tftpd
Group: System/Servers
Summary: A tftp server
Conflicts: tftp-server
%description tftpd
A tftp server.
%prep
%setup -q
%build
sed -i -e '/gets is a/d' lib/stdio.in.h
%configure \
--bindir=/bin \
--with-wrap \
--with-pam \
--disable-logger \
--disable-syslogd \
--disable-ifconfig \
--disable-hostname \
--disable-whois \
--disable-dnsdomainname
# --with-krb5 \
# --with-krb4=no \
# CFLAGS="-I%{_includedir}/et/"
%make \
%if "%{_host}" != "%{_build}"
PATHDEF_PROCNET_DEV='-DPATH_PROCNET_DEV=\"/proc/net/dev\"'
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}/bin/logger
rm -f %{buildroot}%{_mandir}/man1/logger.1*
#install -d %{buildroot}%{_sysconfdir}/xinetd.d
#cp %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/tftpd
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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%install_info inetutils.info
exit 0
%preun
%uninstall_info inetutils.info
exit 0
%post servers
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
fi
:
%postun servers
if [ $1 -eq 0 ]; then
systemctl -q daemon-reload
fi
:
%post tftpd
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
fi
:
%postun tftpd
if [ $1 -eq 0 ]; then
systemctl -q daemon-reload
fi
:
%files
%defattr(-,root,root)
/bin/ftp
#/bin/hostname
#/bin/ifconfig
%attr(4755,root,root) /bin/rcp
/bin/rexec
%attr(4755,root,root) /bin/rlogin
%attr(4755,root,root) /bin/rsh
/bin/talk
/bin/telnet
/bin/tftp
%attr(4755,root,root) /bin/traceroute
#/bin/whois
%{_infodir}/inetutils.info*
%{_mandir}/man1/ftp.1*
#%{_mandir}/man1/hostname.1.gz
#%{_mandir}/man1/ifconfig.1.gz
%{_mandir}/man1/rcp.1*
%{_mandir}/man1/rexec.1*
%{_mandir}/man1/rlogin.1*
%{_mandir}/man1/rsh.1*
#%{_mandir}/man1/syslogd.1.gz
%{_mandir}/man1/talk.1*
%{_mandir}/man1/telnet.1*
%{_mandir}/man1/tftp.1*
%{_mandir}/man1/traceroute.1*
#%{_mandir}/man1/whois.1.gz
%doc AUTHORS COPYING THANKS
#%doc ChangeLog ChangeLog.0 NEWS README README-alpha TODO
%files ping
%defattr(-,root,root)
%attr(4755,root,root) /bin/ping
%attr(4755,root,root) /bin/ping6
%{_mandir}/man1/ping.1*
%{_mandir}/man1/ping6.1*
%files servers
%defattr(-,root,root)
%{_libexecdir}/ftpd
%{_libexecdir}/inetd
%{_libexecdir}/rexecd
%{_libexecdir}/rlogind
%{_libexecdir}/rshd
#%{_libexecdir}/syslogd
%{_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
%{_mandir}/man8/ftpd.8*
%{_mandir}/man8/inetd.8*
%{_mandir}/man8/rexecd.8*
%{_mandir}/man8/rlogind.8*
%{_mandir}/man8/rshd.8*
%{_mandir}/man8/talkd.8*
%{_mandir}/man8/telnetd.8*
%{_mandir}/man8/uucpd.8*
%files tftpd
%defattr(-,root,root)
%{_libexecdir}/tftpd
/lib/systemd/system/tftpd.socket
/lib/systemd/system/tftpd@.service
%{_mandir}/man8/tftpd.8*
%dir %attr(0750,root,root) %{_localstatedir}/lib/tftpboot
%changelog
* Wed Apr 09 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.2-3mamba
- rebuilt to fix ftp missing link to libncurses/libtermcap
* Fri Jan 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.2-2mamba
- disable dnsdomainname (use the one provided by net-tools)
* Thu Jan 23 2014 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
- automatic version update by autodist
* Tue Dec 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.1-3mamba
- disable whois provided by its own more up-to-date package
- move servers to -servers package
- add support for systemd
* Sat Nov 03 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.1-2mamba
- add subpackage inetutils-tftpd and provide xinetd configuration
* Wed Jun 13 2012 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Thu Apr 21 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-4mamba
- rebuilt with --disable-ifconfig and --disable-hostname to use better tools from net-tools
* Fri Jul 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-3mamba
- added inetutils-ping package to switch back to iputils ping and ping6
* Wed Jul 14 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-2mamba
- added conflict with tftp package
* Mon Jul 12 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-1mamba
- package created by autospec

7
rlogin.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Remote Login Facilities Server
After=local-fs.target
[Service]
ExecStart=-/usr/libexec/rlogind
StandardInput=socket

9
rlogin.socket Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Remote Login Facilities Activation Socket
[Socket]
ListenStream=513
Accept=true
[Install]
WantedBy=sockets.target

9
rsh.socket Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Remote Shell Facilities Activation Socket
[Socket]
ListenStream=514
Accept=true
[Install]
WantedBy=sockets.target

7
rsh@.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Remote Shell Facilities Server
After=local-fs.target
[Service]
ExecStart=-/usr/libexec/rshd
StandardInput=socket

12
talk.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Talk Server
Documentation=man:talkd(8) man:talk(1)
[Service]
User=nobody
Group=tty
ExecStart=/usr/libexec/talkd
StandardInput=socket
[Install]
Also=talk.socket

9
talk.socket Normal file
View 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

11
telnet.socket Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Telnet Server Activation Socket
Documentation=man:telnetd(8)
[Socket]
ListenStream=23
Accept=true
[Install]
WantedBy=sockets.target

7
telnet@.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Telnet Server
After=local-fs.target
[Service]
ExecStart=-/usr/libexec/telnetd
StandardInput=socket

9
tftpd.socket Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Trivial FTP Daemon (tftp) Activation Socket
[Socket]
ListenDatagram=69
Accept=true
[Install]
WantedBy=sockets.target

7
tftpd@.service Normal file
View File

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