Author: glen                         Date: Thu Oct 28 08:46:35 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initscript restart macros

---- Files affected:
packages/mongodb:
   mongodb.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/mongodb/mongodb.spec
diff -u packages/mongodb/mongodb.spec:1.6 packages/mongodb/mongodb.spec:1.7
--- packages/mongodb/mongodb.spec:1.6   Thu Oct 28 10:45:14 2010
+++ packages/mongodb/mongodb.spec       Thu Oct 28 10:46:30 2010
@@ -18,6 +18,7 @@
 BuildRequires: pcre-cxx-devel
 BuildRequires: pcre-devel
 BuildRequires: readline-devel
+BuildRequires: rpmbuild(macros) >= 1.228
 BuildRequires: scons >= 1.2
 BuildRequires: v8-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,6 +47,8 @@
 Summary:       MongoDB server, sharding server, and support scripts
 Group:         Applications/Databases
 Requires:      %{name} = %{version}-%{release}
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 
 %description server
 Mongo (from "huMONGOus") is a schema-free document-oriented database.
@@ -98,13 +101,14 @@
 useradd -r -g mongod -d %{_var}/lib/mongo -s /sbin/nologin -c "user for 
MongoDB Database Server" mongod 2>/dev/null || :
 
 %post server
-#%fillup_and_insserv -n mongod mongod
-#%restart_on_update mongod
+/sbin/chkconfig --add mongod
+%service mongod restart
 
 %preun server
-#%stop_on_removal mongod
-
-%postun server
+if [ "$1" = "0" ]; then
+       %service -q mongod stop
+       /sbin/chkconfig --del mongod
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -154,6 +158,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2010/10/28 08:46:30  glen
+- initscript restart macros
+
 Revision 1.6  2010/10/28 08:45:14  glen
 - cleanup files (remove suse junk), pldize
 - (kind of) unified package order
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mongodb/mongodb.spec?r1=1.6&r2=1.7&f=u

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

Reply via email to