Author: glen Date: Sun Mar 6 16:24:45 2005 GMT
Module: SPECS Tag: DEVEL
---- Log message:
- create nagios-data group
---- Files affected:
SPECS:
nagios.spec (1.36.2.4 -> 1.36.2.5)
---- Diffs:
================================================================
Index: SPECS/nagios.spec
diff -u SPECS/nagios.spec:1.36.2.4 SPECS/nagios.spec:1.36.2.5
--- SPECS/nagios.spec:1.36.2.4 Tue Feb 22 15:28:42 2005
+++ SPECS/nagios.spec Sun Mar 6 17:24:39 2005
@@ -11,6 +11,7 @@
# - /etc/nagios/*.cfg should be readable by nagios (and webserver if -cgi is
used)
# - all files should be owned by root as there's no write permission needed
# - create group "nagios-data" for sharing access with httpd user
(/etc/nagios/*.cfg)
+%define data_gid 147
Summary: Host/service/network monitoring program
Summary(pl): Program do monitorowania serwerów/usług/sieci
@@ -54,6 +55,7 @@
Requires(postun): /usr/sbin/userdel
Provides: user(nagios)
Provides: group(nagios)
+Provides: group(nagios-data)
Conflicts: iputils-ping < 1:ss020124
Obsoletes: netsaint
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -200,6 +202,16 @@
/usr/sbin/groupadd -g 72 -f nagios
fi
fi
+
+if [ -n "`getgid nagios-data`" ]; then
+ if [ "`getgid nagios-data`" != "%{data_gid}" ]; then
+ echo "Error: group nagios-data doesn't have gid=%{data_gid}.
Correct this before installing %{name}." 1>&2
+ exit 1
+ fi
+else
+ /usr/sbin/groupadd -g %{data_gid} -f nagios-data
+fi
+
if [ -n "`id -u nagios 2>/dev/null`" ]; then
if [ "`id -u nagios`" != "72" ]; then
echo "Error: user nagios doesn't have uid=72. Correct this
before installing %{name}." 1>&2
@@ -299,6 +311,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.36.2.5 2005/03/06 16:24:39 glen
+- create nagios-data group
+
Revision 1.36.2.4 2005/02/22 14:28:42 glen
- fix for builder?
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nagios.spec?r1=1.36.2.4&r2=1.36.2.5&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit