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
16 Requires: /etc/rc.d/init.d/rc-inetd
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes: netkit-base
24 %define _sysconfdir /etc
27 Xinetd is a secure replacement for inetd, the Internet services
28 daemon. Xinetd provides access control for all services based on the
29 address of the remote host and/or on time of access and can prevent
30 denial-of-access attacks. Xinetd provides extensive logging, has no
31 limit on the number of server arguments and you can bind specific
32 services to specific IP addresses on your host machine.
35 xinetd jest bezpieczniejszym i rozbudowanym odpowiednikiem inetd.
36 Niektóre funkcje to wbudowana kontrola dostêpu (oparta o libwrap),
37 kontrola zu¿ycia zasobów i wbudowana obs³uga IPv6.
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT/%{_sbindir} \
52 $RPM_BUILD_ROOT/%{_mandir}/man{5,8} \
53 $RPM_BUILD_ROOT/%{_sysconfdir}/{rc.d/init.d,sysconfig}
55 install xinetd/xinetd $RPM_BUILD_ROOT/%{_sbindir}
56 install xinetd/itox $RPM_BUILD_ROOT/%{_sbindir}
57 install xinetd/xinetd.conf.man $RPM_BUILD_ROOT/%{_mandir}/man5/xinetd.conf.5
58 install xinetd/xinetd.log.man $RPM_BUILD_ROOT/%{_mandir}/man8/xinetd.log.8
59 install xinetd/xinetd.man $RPM_BUILD_ROOT/%{_mandir}/man8/xinetd.8
60 install xinetd/itox.8 $RPM_BUILD_ROOT/%{_mandir}/man8/itox.8
61 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inet.script
62 :> $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.conf
64 cp xinetd/sample.conf .
67 gzip -9nf README CHANGELOG sample.conf xconv.pl
70 rm -rf $RPM_BUILD_ROOT
73 if [ -f /var/lock/subsys/rc-inetd ]; then
74 /etc/rc.d/init.d/rc-inetd restart 1>&2
76 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start xinetd" 1>&2
80 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
81 /etc/rc.d/init.d/rc-inetd stop
85 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_sbindir}/*
88 %attr(640,root,root) %ghost %{_sysconfdir}/xinetd.conf
89 %attr(640,root,root) /etc/sysconfig/rc-inet.script