packages: cluster-glue/cluster-glue.spec - create users/groups (copy from h...
glen
glen at pld-linux.org
Wed Jan 13 17:07:44 CET 2010
Author: glen Date: Wed Jan 13 16:07:44 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- create users/groups (copy from heartbeat.spec)
---- Files affected:
packages/cluster-glue:
cluster-glue.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/cluster-glue/cluster-glue.spec
diff -u packages/cluster-glue/cluster-glue.spec:1.5 packages/cluster-glue/cluster-glue.spec:1.6
--- packages/cluster-glue/cluster-glue.spec:1.5 Wed Jan 13 17:02:17 2010
+++ packages/cluster-glue/cluster-glue.spec Wed Jan 13 17:07:39 2010
@@ -8,6 +8,7 @@
# gmake[4]: Leaving directory `/home/users/glen/rpm/BUILD.x86_64-linux/cluster-glue-1.0.2-rc2/lib/plugins/stonith'
# - pld deps for "docbook-dtds"
# - tests packaged in -devel to own pkg or just rm -rf
+# - pldize ha_logd initscript (look heartbeat.init?)
%define subver rc2
%define rel 0.1
Summary: Reusable cluster components
@@ -43,7 +44,17 @@
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
BuildRequires: which
+Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
Requires: perl-TimeDate
+Requires: rc-scripts
+Provides: group(haclient)
+Provides: user(hacluster)
# Directives to allow upgrade from combined heartbeat packages
Provides: heartbeat-pils = 3.0.0-1
Provides: heartbeat-stonith = 3.0.0-1
@@ -109,6 +120,26 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+%groupadd -g 60 haclient
+%useradd -u 17 -d /var/lib/heartbeat/cores/hacluster -c "Heartbeat User" -g haclient hacluster
+
+%post
+/sbin/chkconfig --add logd
+%service logd restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service -q logd stop
+ /sbin/chkconfig --del logd
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ %userremove hacluster
+ %groupremove haclient
+fi
+
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
@@ -158,7 +189,6 @@
%dir %{_var}/lib/heartbeat
%dir %{_var}/lib/heartbeat/cores
%dir %attr(700,root,root) %{_var}/lib/heartbeat/cores/root
-%dir %attr(700,nobody,nobody) %{_var}/lib/heartbeat/cores/nobody
%dir %attr(700,hacluster,haclient) %{_var}/lib/heartbeat/cores/hacluster
%files libs
@@ -227,6 +257,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2010/01/13 16:07:39 glen
+- create users/groups (copy from heartbeat.spec)
+
Revision 1.5 2010/01/13 16:02:17 sparky
- BR: docbook-dtd44-xml, libxslt-progs, ncurses-devel, rpm-pythonprov
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cluster-glue/cluster-glue.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list