1 Summary: Secure replacement for inetd
2 Summary(pl): Bezpieczny odpowiednik inetd
9 License: distributable (BSD-like)
10 Source0: http://www.xinetd.org/%{name}-%{version}.tar.gz
11 Source1: %{name}.inet.sh
12 URL: http://www.xinetd.org/
13 BuildRequires: libwrap-devel
14 BuildRequires: autoconf
17 Requires: /etc/rc.d/init.d/rc-inetd
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Obsoletes: netkit-base
25 %define _sysconfdir /etc
28 Xinetd is a secure replacement for inetd, the Internet services
29 daemon. Xinetd provides access control for all services based on the
30 address of the remote host and/or on time of access and can prevent
31 denial-of-access attacks. Xinetd provides extensive logging, has no
32 limit on the number of server arguments and you can bind specific
33 services to specific IP addresses on your host machine.
36 xinetd jest bezpieczniejszym i rozbudowanym odpowiednikiem inetd.
37 Niektóre funkcje to wbudowana kontrola dostêpu (oparta o libwrap),
38 kontrola zu¿ycia zasobów i wbudowana obs³uga IPv6.
50 cp xinetd/xinetd xinetd/xinetd-ipv6
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_sbindir} \
61 $RPM_BUILD_ROOT%{_mandir}/man{5,8} \
62 $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig}
64 install xinetd/xinetd $RPM_BUILD_ROOT%{_sbindir}
65 install xinetd/xinetd-ipv6 $RPM_BUILD_ROOT%{_sbindir}
66 install xinetd/itox $RPM_BUILD_ROOT%{_sbindir}
67 install xinetd/xinetd.conf.man $RPM_BUILD_ROOT%{_mandir}/man5/xinetd.conf.5
68 install xinetd/xinetd.log.man $RPM_BUILD_ROOT%{_mandir}/man8/xinetd.log.8
69 install xinetd/xinetd.man $RPM_BUILD_ROOT%{_mandir}/man8/xinetd.8
70 install xinetd/itox.8 $RPM_BUILD_ROOT%{_mandir}/man8/itox.8
71 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inet.script
72 :> $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.conf
74 cp xinetd/sample.conf .
77 gzip -9nf README CHANGELOG sample.conf xconv.pl
80 rm -rf $RPM_BUILD_ROOT
83 if [ -f /var/lock/subsys/rc-inetd ]; then
84 /etc/rc.d/init.d/rc-inetd restart 1>&2
86 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start xinetd" 1>&2
90 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
91 /etc/rc.d/init.d/rc-inetd stop
95 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_sbindir}/*
98 %attr(640,root,root) %ghost %{_sysconfdir}/xinetd.conf
99 %attr(640,root,root) /etc/sysconfig/rc-inet.script
100 %{_mandir}/man[158]/*