packages: netplug/netplug.spec - improved file flow: %post before %files

sparky sparky at pld-linux.org
Fri Jan 28 19:21:40 CET 2011


Author: sparky                       Date: Fri Jan 28 18:21:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- improved file flow: %post before %files

---- Files affected:
packages/netplug:
   netplug.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: packages/netplug/netplug.spec
diff -u packages/netplug/netplug.spec:1.22 packages/netplug/netplug.spec:1.23
--- packages/netplug/netplug.spec:1.22	Sun Mar 22 23:33:45 2009
+++ packages/netplug/netplug.spec	Fri Jan 28 19:21:35 2011
@@ -65,6 +65,14 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add netplugd
+
+%preun
+if [ "$1" = "0" ]; then
+	/sbin/chkconfig --del netplugd
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog NEWS README TODO
@@ -76,20 +84,15 @@
 %attr(754,root,root) /etc/rc.d/init.d/netplugd
 %{_mandir}/man?/*
 
-%post
-/sbin/chkconfig --add netplugd
-
-%preun
-if [ "$1" = "0" ]; then
-	/sbin/chkconfig --del netplugd
-fi
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2011/01/28 18:21:35  sparky
+- improved file flow: %post before %files
+
 Revision 1.22  2009/03/22 22:33:45  baggins
 - unified: removed _initrddir macro usage
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/netplug/netplug.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list