Author: jajcus                       Date: Tue Jul  3 21:27:43 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- PLD init scripts added (from corosync-1_4 branch)

---- Files affected:
packages/corosync:
   corosync.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: packages/corosync/corosync.spec
diff -u packages/corosync/corosync.spec:1.21 
packages/corosync/corosync.spec:1.22
--- packages/corosync/corosync.spec:1.21        Sun Jul  1 11:39:11 2012
+++ packages/corosync/corosync.spec     Tue Jul  3 23:27:38 2012
@@ -22,6 +22,9 @@
 Group:         Base
 Source0:       
ftp://ftp:[email protected]/downloads/%{name}-%{version}/corosync-%{version}.tar.gz
 # Source0-md5: 9e23f3f5594676455ff39ff363658155
+Source1:       %{name}.init
+Source2:       %{name}-notifyd.init
+Source3:       %{name}-notifyd.sysconfig
 Patch0:                %{name}-makefile.patch
 Patch1:                %{name}-lib_deps.patch
 Patch2:                %{name}-install.patch
@@ -140,8 +143,13 @@
 
 %{?with_apidocs:%{__make} doxygen}
 
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-notifyd
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-notifyd
+
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -158,17 +166,22 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add corosync
-%service corosync restart "Corosync Cluster Engine"
-
-%systemd_post corosync.service
+/sbin/chkconfig --add %{name}
+/sbin/chkconfig --add %{name}-notifyd
+%service %{name} restart
+%service %{name}-notifyd restart
+%systemd_post %{name}.service
+%systemd_post %{name}-notifyd.service
 
 %preun
 if [ "$1" = "0" ]; then
-        %service corosync stop
-        /sbin/chkconfig --del corosync
+       %service -q %{name} stop
+       /sbin/chkconfig --del %{name}
+       %service -q %{name}-notifyd stop
+       /sbin/chkconfig --del %{name}-notifyd
 fi
-%systemd_preun corosync.service
+%systemd_preun %{name}.service
+%systemd_preun %{name}-notifyd.service
 
 %postun
 %systemd_reload
@@ -184,6 +197,7 @@
 %endif
 %attr(754,root,root) /etc/rc.d/init.d/corosync
 %attr(754,root,root) /etc/rc.d/init.d/corosync-notifyd
+%verify(not md5 mtime size) %config(noreplace) /etc/sysconfig/%{name}-notifyd
 %dir %{_sysconfdir}/corosync
 %{systemdunitdir}/corosync.service
 %{systemdunitdir}/corosync-notifyd.service
@@ -307,6 +321,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2012/07/03 21:27:38  jajcus
+- PLD init scripts added (from corosync-1_4 branch)
+
 Revision 1.21  2012/07/01 09:39:11  jajcus
 - TODO describing why the release is to be fractional now
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/corosync/corosync.spec?r1=1.21&r2=1.22

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to