]> git.pld-linux.org Git - SPECS.git/blob - rc-inetd.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / rc-inetd.spec
1 Summary:        Wrapper for managing inet service using any kind of inet daemon
2 Summary(pl.UTF-8):      Skrypty do zarządzania usługami inet
3 Name:           rc-inetd
4 Version:        0.17
5 Release:        2
6 License:        GPL
7 Group:          Base
8 Source0:        %{name}-%{version}.tar.bz2
9 # Source0-md5:  7218ebe82d2755a8d5051bd9b3a1a221
10 BuildRequires:  rpmbuild(macros) >= 1.268
11 Requires(post,preun):   /sbin/chkconfig
12 Requires:       inetdaemon
13 Requires:       rc-scripts
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Wrapper for managing inet service using any kind inet daemon.
19
20 %description -l pl.UTF-8
21 Skrypty do zarządzania usługami inet przy użyciu dowolnego rodzaju
22 demona inet.
23
24 %prep
25 %setup -q
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig/rc-inetd}
30 install rc-inetd $RPM_BUILD_ROOT/etc/rc.d/init.d
31 cp -a rc-inetd.conf $RPM_BUILD_ROOT/etc/sysconfig
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %post
37 /sbin/chkconfig --add rc-inetd
38 %service rc-inetd restart
39
40 %preun
41 if [ "$1" = "0" ]; then
42         %service rc-inetd stop
43         /sbin/chkconfig --del rc-inetd
44 fi
45
46 %files
47 %defattr(644,root,root,755)
48 %doc template_inetd template_service
49 %attr(754,root,root) /etc/rc.d/init.d/rc-inetd
50 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd.conf
51 %dir /etc/sysconfig/rc-inetd
This page took 0.630246 seconds and 3 git commands to generate.