[rhmessaging-commits] rhmessaging commits: r1813 - mgmt.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Mar 31 12:04:55 EDT 2008


Author: nunofsantos
Date: 2008-03-31 12:04:54 -0400 (Mon, 31 Mar 2008)
New Revision: 1813

Modified:
   mgmt/Makefile
   mgmt/cumin.spec
Log:
create user cumin for rpm install; fix unpackaged files error; add tar.gz creation to makefile

Modified: mgmt/Makefile
===================================================================
--- mgmt/Makefile	2008-03-31 14:34:29 UTC (rev 1812)
+++ mgmt/Makefile	2008-03-31 16:04:54 UTC (rev 1813)
@@ -1,3 +1,5 @@
+version := 0.1
+
 .PHONY: help dist clean cumin mint
 
 help:
@@ -21,6 +23,7 @@
 	cp -a cumin/resources/* dist/resources
 	cp -a cumin/etc/* dist/etc
 	cp LICENSE COPYING dist/doc
+	tar -cvzf cumin-${version}.tar.gz dist
 
 cumin: mint
 	cd cumin && make install

Modified: mgmt/cumin.spec
===================================================================
--- mgmt/cumin.spec	2008-03-31 14:34:29 UTC (rev 1812)
+++ mgmt/cumin.spec	2008-03-31 16:04:54 UTC (rev 1813)
@@ -1,7 +1,7 @@
 Summary:        management component of MRG
 Name:           cumin
 Version:        0.1
-Release:        5%{?dist}
+Release:        6%{?dist}
 License:        LGPL
 Group:          System Environment/Libraries
 URL:            http://redhat.com/mrg
@@ -29,6 +29,13 @@
 
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
+%pre
+getent group cumin >/dev/null || groupadd -r cumin
+getent passwd cumin >/dev/null || \
+  useradd -r -m -g cumin -d %{_datadir}/cumin -s /sbin/nologin \
+    -c "Owner of Cumin Daemons" cumin
+exit 0
+
 %prep
 %setup -q -n dist
 
@@ -69,16 +76,19 @@
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root,-)
+%defattr(-,cumin,cumin,-)
 %doc doc/*
 %{_bindir}/cumin*
-%{_sysconfdir}/cumin.conf
+%{_sysconfdir}/cumin.*
 %{_datadir}/cumin
 %{python_sitelib}/cumin
 %{python_sitelib}/mint
 %{python_sitelib}/wooly
 
 %changelog
+* Mon Mar 31 2008 Nuno Santos <nsantos at redhat.com> - 0.1-6
+- Create cumin user/group
+
 * Mon Feb 11 2008 Nuno Santos <nsantos at redhat.com> - 0.1-5
 - Fix for multiple broker registrations
 




More information about the rhmessaging-commits mailing list