[Nagiosplug-checkins] nagiosplug configure.in, 1.209, 1.210 NEWS, 1.15, 1.16

Ton Voon tonvoon at users.sourceforge.net
Sun Mar 25 15:55:23 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4055

Modified Files:
	configure.in NEWS 
Log Message:
Reinstate --with-nagios-user/group and new --without-group-permissions ./configure options

Index: NEWS
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/NEWS,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- NEWS	12 Mar 2007 10:51:03 -0000	1.15
+++ NEWS	25 Mar 2007 13:55:14 -0000	1.16
@@ -9,6 +9,8 @@
 	check_ping times out 1 second quicker if host is unreachable
 	Root plugins installed with world executable
 	check_sybase from contrib now maintained in NagiosExchange
+	--with-nagios-user/group reinstated ./configure option
+	New --without-world-permissions ./configure option
 
 1.4.6 5th February 2007
 	Reduced number of DNS lookups in check_ping and netutils.c for IPv6 configurations

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.209
retrieving revision 1.210
diff -u -d -r1.209 -r1.210
--- configure.in	6 Mar 2007 17:29:15 -0000	1.209
+++ configure.in	25 Mar 2007 13:55:13 -0000	1.210
@@ -15,13 +15,29 @@
 AC_PREFIX_DEFAULT(/usr/local/nagios)
 
 dnl Deprecated configure options
-AC_ARG_WITH(nagios_user,,
- 	AC_MSG_ERROR([--with-nagios-user is a deprecated option. Rerun ./configure without this option]))
-AC_ARG_WITH(nagios_group,,
- 	AC_MSG_ERROR([--with-nagios-group is a deprecated option. Rerun ./configure without this option]))
 
-dnl Figure out how to invoke "install" and what install options to use.
-AC_PROG_INSTALL
+
+dnl Append user (-o), group (-g), mode (-m) to install command
+dnl There is an assumption that this is possible with ./configure's chosen install command
+extra_install_args=""
+AC_ARG_WITH(nagios_user,
+	ACX_HELP_STRING([--with-nagios-user=USER],
+		[Installs executables with this user. Defaults to install user]),
+	extra_install_args="-o $withval")
+AC_ARG_WITH(nagios_group,
+	ACX_HELP_STRING([--with-nagios-group=GROUP],
+		[Installs executables with this group. Defaults to install user]),
+	extra_install_args="$extra_install_args -g $withval")
+AC_ARG_WITH(world_permissions,
+	ACX_HELP_STRING([--without-world-permissions],
+		[Installs executables without world permissions]))
+
+if test "x$with_world_permissions" = xno ; then
+	extra_install_args="$extra_install_args -m 0550"
+fi
+
+INSTALL="$INSTALL $extra_install_args"
+INSTALL_STRIP_PROGRAM="$INSTALL_STRIP_PROGRAM $extra_install_args"
 AC_SUBST(INSTALL)
 
 AC_PROG_CC





More information about the Commits mailing list