Logoj0ke.net Open Build Service > Projects > home:netmax:tools > certmaster > Changes
Sign Up | Log In

Changes of Revision 5

[-] Changed certmaster.spec
x
 
1
@@ -7,6 +7,7 @@
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
@@ -31,6 +32,7 @@
10
 
11
 %prep
12
 %setup -q
13
+%patch0
14
 
15
 %build
16
 %{__python} setup.py build
17
@@ -81,10 +83,10 @@
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
@@ -100,9 +102,9 @@
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 ^