2 # - kerberos (--with-krb5 for MIT or --with-shishi; heimdal is not supported)
3 # - rc-scripts for: ftpd,telnetd(?),rlogind,uucpd
4 # - rc-inetd for: ftpd, telnetd,tftpd,rexecd,rlogind,talkd,uucpd
5 # - default configs for: ???
6 # - inetd and standalone subpackages (where possible): ftpd,telnetd(?),rlogind,uucpd
7 # - collect Obsoletes for: rexecd,rlogin,rsh,rshd,rlogind,uucpd
9 # - put configs for ftpd into /etc/ftpd, not /etc
10 # - rc-inetd files for inetd
11 # - remove logger conflict with util-linux
12 # - collect triggers for upgrade: telnetd
13 Summary: Common networking utilities and servers
14 Summary(pl.UTF-8): Popularne narzędzia i serwery sieciowe
19 Group: Networking/Utilities
20 Source0: https://ftp.gnu.org/gnu/inetutils/%{name}-%{version}.tar.xz
21 # Source0-md5: 319d65bb5a6f1847c4810651f3b4ba74
23 Source1: %{name}-syslog.conf
24 Source2: %{name}-syslog.init
25 Source3: %{name}-syslog.logrotate
26 Source4: %{name}-syslog.sysconfig
28 Source10: %{name}-telnet.desktop
29 Source11: %{name}-telnet.png
30 Source12: %{name}-telnetd.inetd
32 Source15: %{name}-ftp.desktop
33 Source16: %{name}-ftp.png
35 Patch0: %{name}-info.patch
36 Patch2: %{name}-tinfo.patch
37 URL: http://www.gnu.org/software/inetutils/
38 BuildRequires: autoconf >= 2.64
39 BuildRequires: automake >= 1:1.11.1
41 BuildRequires: gettext-tools
42 BuildRequires: help2man
43 BuildRequires: libidn2-devel
44 BuildRequires: libwrap-devel
45 BuildRequires: pam-devel
46 BuildRequires: readline-devel
47 BuildRequires: rpmbuild(macros) >= 1.268
48 BuildRequires: tar >= 1:1.22
49 BuildRequires: texinfo
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 %define _libexecdir %{_sbindir}
56 This is a distribution of common networking utilities and servers.
57 Main package currently contains only some common documentation, all
58 utilities are in their own packages.
60 %description -l pl.UTF-8
61 To jest dystrybucja popularnych narzędzi i serwerów sieciowych. Główny
62 pakiet zawiera tylko wspólną dokumentację, natomiast wszystkie
63 narzędzia są w osobnych pakietach.
66 Summary: FTP client from GNU inetutils package
67 Summary(pl.UTF-8): Klient FTP z pakietu GNU inetutils
68 Group: Applications/Networking
69 Requires: %{name} = %{version}-%{release}
76 FTP client from GNU inetutils package.
78 %description ftp -l pl.UTF-8
79 Klient FTP z pakietu GNU inetutils.
82 Summary: FTP server from GNU inetutils package
83 Summary(pl.UTF-8): Serwer FTP z pakietu GNU inetutils
85 Requires: %{name} = %{version}-%{release}
91 FTP server from GNU inetutils package.
93 %description ftpd -l pl.UTF-8
94 Serwer FTP z pakietu GNU inetutils.
97 Summary: Showing or setting the system's host name
98 Summary(pl.UTF-8): Pokazanie lub ustawienie nazwy hosta
99 Group: Applications/Networking
100 Requires: %{name} = %{version}-%{release}
104 %description hostname
105 Hostname is the program that is used to either set or display the
106 current host, domain or node name of the system. These names are used
107 by many of the networking programs to identify the machine. The domain
108 name is also used by NIS/YP.
110 %description hostname -l pl.UTF-8
111 Hostname jest programem służącym do nadawania nowych lub podawania
112 aktualnych nazw hosta, domeny lub węzła systemu. Nazwy te są używane
113 przez wiele programów sieciowych do identyfikacji maszyny. Nazwa
114 domeny wykorzystywana jest też przez NIS/YP.
117 Summary: Network interfaces configuration program from GNU inetutils
118 Summary(pl.UTF-8): Program do konfiguracji interfejsów sieciowych z pakietu GNU inetutils
119 Group: Applications/Networking
120 Requires: %{name} = %{version}-%{release}
122 %description ifconfig
123 Network interfaces configuration program from GNU inetutils.
125 %description ifconfig -l pl.UTF-8
126 Program do konfiguracji interfejsów sieciowych, pochodzący z pakietu
130 Summary: inetd server from GNU inetutils package
131 Summary(pl.UTF-8): Serwer inetd z pakietu GNU inetutils
132 Group: Networking/Daemons
133 Requires: %{name} = %{version}-%{release}
136 Obsoletes: inetdaemon
139 inetd server from GNU inetutils package.
141 %description inetd -l pl.UTF-8
142 Serwer inetd z pakietu GNU inetutils.
145 Summary: logger utility from GNU inetutils package
146 Summary(pl.UTF-8): Narzędzie logger z pakietu GNU inetutils
147 Group: Applications/System
148 Requires: %{name} = %{version}-%{release}
151 Obsoletes: util-linux-logger
153 Conflicts: util-linux
156 logger utility from GNU inetutils package.
158 %description logger -l pl.UTF-8
159 Narzędzie logger z pakietu GNU inetutils.
162 Summary: ping utility from GNU inetutils package
163 Summary(pl.UTF-8): Narzędzie ping z pakietu GNU inetutils
164 Group: Networking/Utilities
165 Requires: %{name} = %{version}-%{release}
167 Obsoletes: iputils-ping
171 ping utility from GNU inetutils package.
173 %description ping -l pl.UTF-8
174 Narzędzie ping z pakietu GNU inetutils.
177 Summary: rexec client from GNU inetutils package
178 Summary(pl.UTF-8): Klient rexec z pakietu GNU inetutils
179 Group: Networking/Daemons
180 Requires: %{name} = %{version}-%{release}
186 rexec client from GNU inetutils package.
188 %description rexec -l pl.UTF-8
189 Klient rexec z pakietu GNU inetutils.
192 Summary: rexec server from GNU inetutils package
193 Summary(pl.UTF-8): Serwer rexec z pakietu GNU inetutils
194 Group: Networking/Daemons
195 Requires: %{name} = %{version}-%{release}
201 rexec server from GNU inetutils package.
203 %description rexecd -l pl.UTF-8
204 Serwer rexec z pakietu GNU inetutils.
207 Summary: rlogin client from GNU inetutils package
208 Summary(pl.UTF-8): Klient rlogin z pakietu GNU inetutils
209 Group: Networking/Utilities
210 Requires: %{name} = %{version}-%{release}
215 rlogin client from GNU inetutils package.
217 %description rlogin -l pl.UTF-8
218 Klient rlogin z pakietu GNU inetutils.
221 Summary: rlogin server from GNU inetutils package
222 Summary(pl.UTF-8): Serwer rlogin z pakietu GNU inetutils
223 Group: Networking/Daemons
224 Requires: %{name} = %{version}-%{release}
227 # inetd or standalone
230 rlogin server from GNU inetutils package.
232 %description rlogind -l pl.UTF-8
233 Serwer rlogin z pakietu GNU inetutils.
236 Summary: rsh and rcp clients from GNU inetutils package
237 Summary(pl.UTF-8): Programy klienckie rsh i rcp z pakietu GNU inetutils
238 Group: Networking/Utilities
239 Requires: %{name} = %{version}-%{release}
244 rsh and rcp clients from GNU inetutils package.
246 %description rsh -l pl.UTF-8
247 Programy klienckie rsh i rcp z pakietu GNU inetutils.
250 Summary: rsh server from GNU inetutils package
251 Summary(pl.UTF-8): Serwer rsh z pakietu GNU inetutils
252 Group: Networking/Daemons
253 Requires: %{name} = %{version}-%{release}
259 rsh server from GNU inetutils package.
261 %description rshd -l pl.UTF-8
262 Serwer rsh z pakietu GNU inetutils.
265 Summary: syslog daemon from GNU inetutils package
266 Summary(pl.UTF-8): Demon sysloga z pakietu GNU inetutils
268 Requires(post): fileutils
269 Requires(post,preun): /sbin/chkconfig
270 Requires: %{name} = %{version}-%{release}
271 Requires: logrotate >= 3.2-3
274 Provides: syslogdaemon
281 syslog daemon from GNU inetutils package.
283 %description syslogd -l pl.UTF-8
284 Demon sysloga z pakietu GNU inetutils.
287 Summary: talk client from GNU inetutils package
288 Summary(pl.UTF-8): Klient talk z pakiety GNU inetutils
289 Group: Applications/Networking
290 Requires: %{name} = %{version}-%{release}
293 Obsoletes: ntalk-client
297 talk client from GNU inetutils package.
299 %description talk -l pl.UTF-8
300 Klient talk z pakiety GNU inetutils.
303 Summary: talk server from GNU inetutils package
304 Summary(pl.UTF-8): Serwer talk z pakiety GNU inetutils
305 Group: Networking/Daemons
306 Requires: %{name} = %{version}-%{release}
313 talk server from GNU inetutils package.
315 %description talkd -l pl.UTF-8
316 Serwer talk z pakiety GNU inetutils.
319 Summary: telnet client from GNU inetutils package
320 Summary(pl.UTF-8): Klient telneta z pakietu GNU inetutils
321 Group: Networking/Utilities
322 Requires: %{name} = %{version}-%{release}
324 Obsoletes: heimdal-telnet
325 Obsoletes: krb5-telnet
329 telnet client from GNU inetutils package.
331 %description telnet -l pl.UTF-8
332 Klient telneta z pakietu GNU inetutils.
335 Summary: telnet server from GNU inetutils package
336 Summary(pl.UTF-8): Serwer telneta z pakietu GNU inetutils
337 Group: Networking/Daemons
338 Requires: %{name} = %{version}-%{release}
346 telnet server from GNU inetutils package.
348 %description telnetd -l pl.UTF-8
349 Serwer telneta z pakietu GNU inetutils.
352 Summary: Traces the route taken by packets over a TCP/IP network
353 Summary(pl.UTF-8): Program do śledzenia trasy pakietów przez sieć TCP/IP
354 Group: Applications/Networking
355 Requires: %{name} = %{version}-%{release}
357 %description traceroute
358 traceroute displays the route used by IP packets on their way to
361 %description traceroute -l pl.UTF-8
362 traceroute wyświetla trasę pakietów do podanego komputera.
365 Summary: TFTP client from GNU inetutils package
366 Summary(pl.UTF-8): Klient TFTP z pakietu GNU inetutils
367 Group: Applications/Networking
368 Requires: %{name} = %{version}-%{release}
374 TFTP client from GNU inetutils package.
376 %description tftp -l pl.UTF-8
377 Klient TFTP z pakietu GNU inetutils.
380 Summary: TFTP server from GNU inetutils package
381 Summary(pl.UTF-8): Serwer TFTP z pakietu GNU inetutils
383 Requires: %{name} = %{version}-%{release}
387 Obsoletes: tftp-server
389 Obsoletes: tftpdaemon
393 TFTP server from GNU inetutils package.
395 %description tftpd -l pl.UTF-8
396 Serwer TFTP z pakietu GNU inetutils.
399 Summary: UUCP server from GNU inetutils package
400 Summary(pl.UTF-8): Serwer UUCP z pakietu GNU inetutils
401 Group: Networking/Daemons
402 Requires: %{name} = %{version}-%{release}
408 UUCP server from GNU inetutils package.
410 %description uucpd -l pl.UTF-8
411 Serwer UUCP z pakietu GNU inetutils.
414 Summary: whois client from GNU inetutils package
415 Summary(pl.UTF-8): Klient whois z pakietu GNU inetutils
416 Group: Networking/Utilities
417 Requires: %{name} = %{version}-%{release}
422 whois client from GNU inetutils package.
424 %description whois -l pl.UTF-8
425 Klient whois z pakietu GNU inetutils.
433 cp -f /usr/share/gettext/config.rpath build-aux
434 %{__aclocal} -I m4 -I am
438 CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
440 --disable-silent-rules \
443 --with-path-procnet-dev=/proc/net/dev \
449 rm -rf $RPM_BUILD_ROOT
450 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd,logrotate.d},/bin,/var/log} \
451 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
454 DESTDIR=$RPM_BUILD_ROOT \
457 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/syslog.conf
458 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog
459 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog
460 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/syslog
461 install %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}/telnet.desktop
462 install %{SOURCE11} $RPM_BUILD_ROOT%{_pixmapsdir}/telnet.png
463 install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/telnetd
464 install %{SOURCE15} $RPM_BUILD_ROOT%{_desktopdir}/ftp.desktop
465 install %{SOURCE16} $RPM_BUILD_ROOT%{_pixmapsdir}/ftp.png
467 for n in alert debug kernel mail.log messages news.log secure syslog
469 > $RPM_BUILD_ROOT/var/log/$n
473 mv $RPM_BUILD_ROOT%{_bindir}/ping $RPM_BUILD_ROOT/bin
475 mv $RPM_BUILD_ROOT%{_bindir}/ping6 $RPM_BUILD_ROOT/bin
478 rm -rf $RPM_BUILD_ROOT
480 %post -p /sbin/postshell
481 -/usr/sbin/fix-info-dir -c %{_infodir}
483 %postun -p /sbin/postshell
484 -/usr/sbin/fix-info-dir -c %{_infodir}
487 for n in /var/log/{alert,debug,kernel,mail.log,messages,news.log,secure,syslog}
489 [ -f $n ] && continue
494 /sbin/chkconfig --add syslog
495 if [ -f /var/lock/subsys/syslog ]; then
496 /etc/rc.d/init.d/syslog restart 1>&2
498 echo "Run \"/etc/rc.d/init.d/syslog start\" to start syslog daemon." 1>&2
502 if [ "$1" = "0" ]; then
503 if [ -f /var/lock/subsys/syslog ]; then
504 /etc/rc.d/init.d/syslog stop 1>&2
506 /sbin/chkconfig --del syslog
509 %triggerpostun -- syslog
510 /sbin/chkconfig --del syslog
511 /sbin/chkconfig --add syslog
512 if [ -f /etc/syslog.conf.rpmsave ]; then
513 mv -f /etc/syslog.conf /etc/syslog.conf.rpmnew
514 mv -f /etc/syslog.conf.rpmsave /etc/syslog.conf
515 echo "Moved /etc/syslog.conf.rpmsave as /etc/syslog.conf"
516 echo "Original file from package is avaible as /etc/syslog.conf.rpmnew"
520 %service -q rc-inetd reload
523 if [ "$1" = "0" ]; then
524 %service -q rc-inetd reload
527 # Here should come trigger for upgrade from standard telnetd
530 %defattr(644,root,root,755)
531 %doc AUTHORS ChangeLog NEWS README* THANKS TODO
532 %{_infodir}/inetutils.info*
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_bindir}/ftp
537 %{_desktopdir}/ftp.desktop
538 %{_pixmapsdir}/ftp.png
539 %{_mandir}/man1/ftp.1*
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_sbindir}/ftpd
544 %{_mandir}/man8/ftpd.8*
547 %defattr(644,root,root,755)
548 %attr(755,root,root) %{_bindir}/dnsdomainname
549 %attr(755,root,root) %{_bindir}/hostname
550 %{_mandir}/man1/dnsdomainname.1*
551 %{_mandir}/man1/hostname.1*
554 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_bindir}/ifconfig
556 %{_mandir}/man1/ifconfig.1*
559 %defattr(644,root,root,755)
560 %attr(755,root,root) %{_sbindir}/inetd
561 %{_mandir}/man8/inetd.8*
564 %defattr(644,root,root,755)
565 %attr(755,root,root) %{_bindir}/logger
566 %{_mandir}/man1/logger.1*
569 %defattr(644,root,root,755)
570 %attr(4754,root,adm) /bin/ping
571 %attr(4754,root,adm) /bin/ping6
572 %{_mandir}/man1/ping.1*
573 %{_mandir}/man1/ping6.1*
576 %defattr(644,root,root,755)
577 %attr(755,root,root) %{_bindir}/rexec
578 %{_mandir}/man1/rexec.1*
581 %defattr(644,root,root,755)
582 %attr(755,root,root) %{_sbindir}/rexecd
583 %{_mandir}/man8/rexecd.8*
586 %defattr(644,root,root,755)
587 %attr(4755,root,root) %{_bindir}/rlogin
588 %{_mandir}/man1/rlogin.1*
591 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_sbindir}/rlogind
593 %{_mandir}/man8/rlogind.8*
596 %defattr(644,root,root,755)
597 %attr(4755,root,root) %{_bindir}/rcp
598 %attr(4755,root,root) %{_bindir}/rsh
599 %{_mandir}/man1/rcp.1*
600 %{_mandir}/man1/rsh.1*
603 %defattr(644,root,root,755)
604 %attr(755,root,root) %{_sbindir}/rshd
605 %{_mandir}/man8/rshd.8*
608 %defattr(644,root,root,755)
609 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syslog.conf
610 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/syslog
611 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/syslog
612 %attr(754,root,root) /etc/rc.d/init.d/syslog
613 %attr(640,root,root) %ghost /var/log/*
614 %attr(755,root,root) %{_sbindir}/syslogd
615 %{_mandir}/man8/syslogd.8*
618 %defattr(644,root,root,755)
619 %attr(755,root,root) %{_bindir}/talk
620 %{_mandir}/man1/talk.1*
623 %defattr(644,root,root,755)
624 %attr(755,root,root) %{_sbindir}/talkd
625 %{_mandir}/man8/talkd.8*
628 %defattr(644,root,root,755)
629 %attr(755,root,root) %{_bindir}/telnet
630 %{_desktopdir}/telnet.desktop
631 %{_pixmapsdir}/telnet.png
632 %{_mandir}/man1/telnet.1*
635 %defattr(644,root,root,755)
636 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/telnetd
637 %attr(755,root,root) %{_sbindir}/telnetd
638 %{_mandir}/man8/telnetd.8*
641 %defattr(644,root,root,755)
642 %attr(755,root,root) %{_bindir}/traceroute
643 %{_mandir}/man1/traceroute.1*
646 %defattr(644,root,root,755)
647 %attr(755,root,root) %{_bindir}/tftp
648 %{_mandir}/man1/tftp.1*
651 %defattr(644,root,root,755)
652 %attr(755,root,root) %{_sbindir}/tftpd
653 %{_mandir}/man8/tftpd.8*
656 %defattr(644,root,root,755)
657 %attr(755,root,root) %{_sbindir}/uucpd
658 %{_mandir}/man8/uucpd.8*
661 %defattr(644,root,root,755)
662 %attr(755,root,root) %{_bindir}/whois
663 %{_mandir}/man1/whois.1*