]> git.pld-linux.org Git - packages/xinetd.git/blob - xinetd.spec
- release 3 (changed xinetd.init.sh); STB
[packages/xinetd.git] / xinetd.spec
1 Summary:        Secure replacement for inetd
2 Summary(pl):    Bezpieczny odpowiednik inetd
3 Name:           xinetd
4 Version:        2.3.3
5 Release:        3
6 Group:          Daemons
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
13 Requires:       rc-inetd
14 Prereq:         rc-scripts
15 Requires:       /etc/rc.d/init.d/rc-inetd
16 Provides:       inetdaemon
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      inetdaemon
19 Obsoletes:      inetd
20 Obsoletes:      rlinetd
21 Obsoletes:      netkit-base
22
23 %define         _sysconfdir     /etc
24
25 %description
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.
32
33 %description -l pl
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.
37
38 %prep
39 %setup -q
40
41 %build
42 autoconf
43 %configure  \
44         --with-libwrap \
45         --with-inet6  \
46         --with-loadavg
47 %{__make}
48 cp xinetd/xinetd xinetd/xinetd-ipv6
49 %{__make} clean
50 rm -f config.cache
51 %configure  \
52         --with-libwrap \
53         --with-loadavg
54 %{__make}
55
56 %install
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}
61
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
71
72 cp xinetd/sample.conf .
73 cp xinetd/xconv.pl .
74
75 gzip -9nf README CHANGELOG sample.conf xconv.pl
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post
81 if [ -f /var/lock/subsys/rc-inetd ]; then
82         /etc/rc.d/init.d/rc-inetd restart 1>&2
83 else
84         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start xinetd" 1>&2
85 fi
86
87 %preun
88 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
89         /etc/rc.d/init.d/rc-inetd stop
90 fi
91
92 %files
93 %defattr(644,root,root,755)
94 %doc *.gz
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
98 %{_mandir}/man[158]/*
This page took 0.081967 seconds and 4 git commands to generate.