]> git.pld-linux.org Git - packages/pound.git/commitdiff
- added missing Requires(): chkconfig or PreReq: rc-scripts
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 29 Jul 2003 14:17:59 +0000 (14:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pound.spec -> 1.17

pound.spec

index 90fc834e11632dab537bc6140ad8344f20d3b874..c70a0d4d0e03c7e0bc46b9a1898b5d153236d961 100644 (file)
@@ -12,6 +12,8 @@ Source1:      %{name}.cfg
 Source2:       %{name}.init
 URL:           http://www.apsis.ch/pound/
 BuildRequires: openssl-devel >= 0.9.7b
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -34,18 +36,23 @@ swobodnego u
 %setup -q -n Pound-%{version}
 
 %build
-%{configure}
-%{__make} F_CONF=%{_sysconfdir}/pound/pound.cfg
+%configure
+
+%{__make} \
+       F_CONF=%{_sysconfdir}/pound/pound.cfg
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/{pound/,rc.d/init.d}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}/pound,/etc/rc.d/init.d}
 
 install pound  $RPM_BUILD_ROOT%{_bindir}
-install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8/
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound/
+install pound.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pound
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add %{name}
 if [ -f %{_var}/lock/subsys/%{name} ]; then
@@ -60,9 +67,6 @@ if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
 fi
 /sbin/chkconfig --del %{name}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
 %doc README
This page took 0.19177 seconds and 4 git commands to generate.