Hello community,

here is the log from the commit of package nagios-rpm-macros for 
openSUSE:Factory checked in at 2013-01-17 09:50:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nagios-rpm-macros (Old)
 and      /work/SRC/openSUSE:Factory/.nagios-rpm-macros.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nagios-rpm-macros", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/nagios-rpm-macros/nagios-rpm-macros.changes      
2012-08-22 12:13:58.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.nagios-rpm-macros.new/nagios-rpm-macros.changes 
2013-01-17 09:50:38.000000000 +0100
@@ -1,0 +2,10 @@
+Tue Jan  1 14:40:45 UTC 2013 - [email protected]
+
+Update to 0.06:
+- added new macros: 
+  + %nagios_user_group_add
+  + %nagios_command_user_group_add
+  to make it easier to have the same useradd/groupadd invocations 
+  in all packages
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nagios-rpm-macros.spec ++++++
--- /var/tmp/diff_new_pack.4OMwP7/_old  2013-01-17 09:50:39.000000000 +0100
+++ /var/tmp/diff_new_pack.4OMwP7/_new  2013-01-17 09:50:39.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nagios-rpm-macros
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 Summary:        RPM Macros for Nagios based packages
 License:        BSD-3-Clause
 Group:          System/Monitoring
-Version:        0.05
+Version:        0.06
 Release:        0
 Url:            http://en.opensuse.org/Nagios
 Source0:        macros.nagios

++++++ macros.nagios ++++++
--- /var/tmp/diff_new_pack.4OMwP7/_old  2013-01-17 09:50:39.000000000 +0100
+++ /var/tmp/diff_new_pack.4OMwP7/_new  2013-01-17 09:50:39.000000000 +0100
@@ -51,4 +51,18 @@
 # Group, that can execute commands via %{nagios_command_file}
 %nagios_command_group  nagcmd
 
+# Add Nagios user and groups
+%nagios_user_group_add() \
+ /usr/sbin/groupadd -r %{nagios_group} 2>/dev/null || :\
+ /usr/sbin/useradd  -r -g %{nagios_group} -d %{nagios_localstatedir} -s 
/bin/false -c "User for Nagios" %{nagios_user} 2>/dev/null || :\
+ %{nil}
+
+%nagios_command_user_group_add() \
+ /usr/sbin/groupadd -r %{nagios_command_group} 2>/dev/null || :\
+ %if 0%{?suse_version} > 01220 \
+ /usr/sbin/usermod -a -G %{nagios_command_group} %{nagios_user} || :\
+ %else \
+ /usr/sbin/groupmod -A %{nagios_user} %{nagios_command_group} 2>/dev/null || :\
+ %endif \
+ %{nil}
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to