Code

Cleanup references to old check_udp and INSTALL_OPTS. Error if
authorTon Voon <tonvoon@users.sourceforge.net>
Fri, 28 Jul 2006 23:59:29 +0000 (23:59 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Fri, 28 Jul 2006 23:59:29 +0000 (23:59 +0000)
--with-nagios-user or --with-nagios-group specified for configure

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1460 f882894a-f735-0410-b71e-b25c423dba1c

configure.in
plugins-scripts/Makefile.am
plugins/Makefile.am

index d9bb6195a0c19d9eab45c92ce6dc24aed7a35fa9..4ff9be1eb6d1a79052549375d370ff8b7a817176 100644 (file)
@@ -13,6 +13,10 @@ AC_SUBST(RELEASE)
 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]))
+AC_ARG_WITH(nagios_group,,
+       AC_MSG_ERROR([--with-nagios-group is a deprecated option]))
 
 dnl Figure out how to invoke "install" and what install options to use.
 AC_PROG_INSTALL
@@ -60,21 +64,6 @@ AC_ARG_WITH(cgiurl,
 CGIURL="$with_cgiurl"
 AC_DEFINE_UNQUOTED(CGIURL,"$CGIURL",[URL of CGI programs])
 
-AC_ARG_WITH(nagios_user,
-       ACX_HELP_STRING([--with-nagios-user=USER],
-               [set user name to run nagios]),
-       with_nagios_user=$withval,
-       with_nagios_user=nagios)
-AC_ARG_WITH(nagios_group,
-       ACX_HELP_STRING([--with-nagios-group=GROUP],
-               [set group name to run nagios]),
-       with_nagios_group=$withval,
-       with_nagios_group=nagios)
-AC_SUBST(with_nagios_user)
-AC_SUBST(with_nagios_group)
-INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group"
-AC_SUBST(INSTALL_OPTS)
-
 AC_ARG_WITH(trusted_path,
        ACX_HELP_STRING([--with-trusted-path=PATH],
                [sets trusted path for executables called by scripts (default=/bin:/sbin:/usr/bin:/usr/sbin)]),
@@ -1748,8 +1737,6 @@ ACX_FEATURE([with],[gnutls])
 ACX_FEATURE([enable],[emulate-getaddrinfo])
 ACX_FEATURE([with],[perl])
 ACX_FEATURE([with],[cgiurl])
-ACX_FEATURE([with],[nagios-user])
-ACX_FEATURE([with],[nagios-group])
 ACX_FEATURE([with],[trusted-path])
 
 
index 9de45d5a8a712d9d9c8aca1152c0d385147aed3a..39291c8063b190f89c3a3cf9158f8855800c2572 100644 (file)
@@ -23,8 +23,6 @@ test:
 
 CLEANFILES=$(libexec_SCRIPTS)
 
-AM_INSTALL_PROGRAM_FLAGS=@INSTALL_OPTS@
-
 .pl :
        $(AWK) -f ./subst $< > $@
        chmod +x $@
index b84d0d7ee50f4a85b4e685a2f5e9433e4e1cffd9..12801fa8b5f9553245b0d4960752aa6084975532 100644 (file)
@@ -16,7 +16,7 @@ MATHLIBS = @MATHLIBS@
 libexec_PROGRAMS = check_apt check_disk check_dummy check_http check_load \
        check_mrtg check_mrtgtraf check_ntp check_nwstat check_overcr check_ping \
        check_real check_smtp check_ssh check_tcp check_time \
-       check_udp check_ups check_users negate \
+       check_ups check_users negate \
        urlize @EXTRAS@
 
 check_tcp_programs = check_ftp check_imap check_nntp check_pop \
@@ -45,8 +45,6 @@ TESTS = @PLUGIN_TEST@
 test:
        perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
 
-AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@
-
 ##############################################################################
 # the actual targets
 
@@ -85,7 +83,6 @@ check_ssh_LDADD = $(NETLIBS)
 check_swap_LDADD = $(MATHLIBS) $(BASEOBJS) popen.o
 check_tcp_LDADD = $(SSLOBJS) $(NETLIBS)
 check_time_LDADD = $(NETLIBS)
-check_udp_LDADD = $(SSLOBJS) $(NETLIBS)
 check_ups_LDADD = $(NETLIBS)
 check_users_LDADD = $(BASEOBJS) popen.o
 check_by_ssh_LDADD = $(NETLIBS) runcmd.o
@@ -125,7 +122,6 @@ check_ssh_DEPENDENCIES = check_ssh.c $(NETOBJS) $(DEPLIBS)
 check_swap_DEPENDENCIES = check_swap.c $(BASEOBJS) popen.o $(DEPLIBS)
 check_tcp_DEPENDENCIES = check_tcp.c $(SSLOBJS) $(NETOBJS) $(DEPLIBS)
 check_time_DEPENDENCIES = check_time.c $(NETOBJS) $(DEPLIBS)
-check_udp_DEPENDENCIES = check_udp.c $(SSLOBJS) $(NETOBJS) $(DEPLIBS)
 check_ups_DEPENDENCIES = check_ups.c $(NETOBJS) $(DEPLIBS)
 check_users_DEPENDENCIES = check_users.c $(BASEOBJS) popen.o $(DEPLIBS)
 check_by_ssh_DEPENDENCIES = check_by_ssh.c $(NETOBJS) runcmd.o $(DEPLIBS)