Changes of Revision 5
[-] | Changed | certmaster.spec |
x 1
2 Version: %(echo `awk '{ print $1 }' %{SOURCE1}`) 3 Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist} 4 Source0: %{name}-%{version}.tar.gz 5 +Patch0: %{name}-init.patch 6 License: GPLv2+ 7 Group: Applications/System 8 Requires: python >= 2.3 9
10 11 %prep 12 %setup -q 13 +%patch0 14 15 %build 16 %{__python} setup.py build 17
18 %post 19 # for suse 20 if [ -x /usr/lib/lsb/install_initd ]; then 21 - /usr/lib/lsb/install_initd /etc/init.d/certmaster 22 + /usr/lib/lsb/install_initd /etc/init.d/certmaster || : 23 # for red hat distros 24 elif [ -x /sbin/chkconfig ]; then 25 - /sbin/chkconfig --add certmaster 26 + /sbin/chkconfig --add certmaster || : 27 # or, the old fashioned way 28 else 29 for i in 2 3 4 5; do 30
31 if [ "$1" = 0 ] ; then 32 /etc/init.d/certmaster stop > /dev/null 2>&1 33 if [ -x /usr/lib/lsb/remove_initd ]; then 34 - /usr/lib/lsb/remove_initd /etc/init.d/certmaster 35 + /usr/lib/lsb/remove_initd /etc/init.d/certmaster || : 36 elif [ -x /sbin/chkconfig ]; then 37 - /sbin/chkconfig --del certmaster 38 + /sbin/chkconfig --del certmaster || : 39 else 40 rm -f /etc/rc.d/rc?.d/???certmaster 41 fi 42 |
||
[+] | Added | certmaster-init.patch ^ |
@@ -0,0 +1,10 @@ +--- init-scripts/certmaster.orig 2010-12-03 22:14:05.489535409 +0100 ++++ init-scripts/certmaster 2010-12-03 22:14:20.073537451 +0100 +@@ -8,6 +8,7 @@ + ### BEGIN INIT INFO + # Provides: certmaster + # Required-Start: network ++# Requires-Stop: $null + # Default-Start: 3 4 5 + # Default-Stop: 0 1 2 6 + # Short-Description: certificate master for Fedora Unified Network Control 'master server only' |