]> git.pld-linux.org Git - packages/bopm.git/commitdiff
- fix bcond and deps
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 4 Sep 2006 15:14:52 +0000 (15:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bopm.spec -> 1.22

bopm.spec

index 277c0e179efc14bcc5f2f72b27a6a264a8125389..bcb73bce80d60925576f2733500c592f2b128137 100644 (file)
--- a/bopm.spec
+++ b/bopm.spec
@@ -9,7 +9,7 @@ Summary:        Open proxy monitor and blocker, designed for use with ircds
 Summary(pl):   Monitorowanie i blokowanie otwartych proxy do u¿ywania z ircd
 Name:          bopm
 Version:       3.1.2
-Release:       0.23
+Release:       0.28
 License:       GPL
 Group:         Applications/Communications
 Source0:       http://static.blitzed.org/www.blitzed.org/bopm/files/%{name}-%{version}.tar.gz
@@ -30,7 +30,7 @@ BuildRequires:        automake
 BuildRequires: libtool
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: rpmbuild(macros) >= 1.268
-Requires(post,preun):  /sbin/chkconfig
+%{!?with_supervise:Requires(post,preun):       /sbin/chkconfig}
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
@@ -197,12 +197,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %if %{with supervise}
-/sbin/chkconfig --add %{name}
-%service %{name} restart "BOPM daemon"
-%else
 if [ -d /service/%{name}/supervise ]; then
        svc -t /service/%{name} /service/%{name}/log
 fi
+if [ "$1" = 1 ]; then
+       ln -snf %{_supervise} /service/%{name}
+fi
+%else
+/sbin/chkconfig --add %{name}
+%service %{name} restart "BOPM daemon"
 %endif
 
 %preun
This page took 0.06263 seconds and 4 git commands to generate.