]> git.pld-linux.org Git - packages/xinetd.git/blob - xinetd.spec
- release 2 (changed xinetd.inet.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.2
5 Release:        2
6 Group:          Daemons
7 Group(de):      Server
8 Group(pl):      Serwery
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
15 Requires:       rc-inetd
16 Prereq:         rc-scripts
17 Requires:       /etc/rc.d/init.d/rc-inetd
18 Provides:       inetdaemon
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      inetdaemon
21 Obsoletes:      inetd
22 Obsoletes:      rlinetd
23 Obsoletes:      netkit-base
24
25 %define         _sysconfdir     /etc
26
27 %description
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.
34
35 %description -l pl
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.
39
40 %prep
41 %setup -q
42
43 %build
44 autoconf
45 %configure  \
46         --with-libwrap \
47         %{?!_without_ipv6:--with-inet6}  \
48         --with-loadavg
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT/%{_sbindir} \
54         $RPM_BUILD_ROOT/%{_mandir}/man{5,8} \
55         $RPM_BUILD_ROOT/%{_sysconfdir}/{rc.d/init.d,sysconfig}
56
57 install xinetd/xinetd $RPM_BUILD_ROOT/%{_sbindir}
58 install xinetd/itox $RPM_BUILD_ROOT/%{_sbindir}
59 install xinetd/xinetd.conf.man $RPM_BUILD_ROOT/%{_mandir}/man5/xinetd.conf.5
60 install xinetd/xinetd.log.man $RPM_BUILD_ROOT/%{_mandir}/man8/xinetd.log.8
61 install xinetd/xinetd.man $RPM_BUILD_ROOT/%{_mandir}/man8/xinetd.8
62 install xinetd/itox.8 $RPM_BUILD_ROOT/%{_mandir}/man8/itox.8
63 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inet.script
64 :> $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.conf
65
66 cp xinetd/sample.conf .
67 cp xinetd/xconv.pl .
68
69 gzip -9nf README CHANGELOG sample.conf xconv.pl
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 if [ -f /var/lock/subsys/rc-inetd ]; then
76         /etc/rc.d/init.d/rc-inetd restart 1>&2
77 else
78         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start xinetd" 1>&2
79 fi
80
81 %preun
82 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
83         /etc/rc.d/init.d/rc-inetd stop
84 fi
85
86 %files
87 %defattr(644,root,root,755)
88 %doc *.gz
89 %attr(755,root,root) %{_sbindir}/*
90 %attr(640,root,root) %ghost %{_sysconfdir}/xinetd.conf
91 %attr(640,root,root) /etc/sysconfig/rc-inet.script
92 %{_mandir}/man[158]/*
This page took 0.144242 seconds and 4 git commands to generate.