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