|
|
|
|
@@ -119,16 +119,21 @@ AS_CASE([$dist_type],
|
|
|
|
|
[*solaris*|*hp-ux*|*aix*|*osx*], opsys=unix)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
need_cgi=no
|
|
|
|
|
need_web=no
|
|
|
|
|
need_brk=no
|
|
|
|
|
need_plg=no
|
|
|
|
|
need_pipe=no
|
|
|
|
|
need_spl=no
|
|
|
|
|
need_loc=no
|
|
|
|
|
need_log_subdir=no
|
|
|
|
|
need_etc_subdir=no
|
|
|
|
|
need_pls_dir=no
|
|
|
|
|
# Does this package need to know:
|
|
|
|
|
need_cgi=no # where the cgi-bin directory is
|
|
|
|
|
need_web=no # where the website directory is
|
|
|
|
|
need_brk=no # where the event broker modules directory is
|
|
|
|
|
need_plg=no # where the plugins directory is
|
|
|
|
|
need_pipe=no # where the pipe directory is
|
|
|
|
|
need_spl=no # where the spool directory is
|
|
|
|
|
need_loc=no # where the locale directory is
|
|
|
|
|
need_log_subdir=no # where the loc sub-directory is
|
|
|
|
|
need_etc_subdir=no # where the etc sub-directory is
|
|
|
|
|
need_pls_dir=no # where the package locate state directory is
|
|
|
|
|
|
|
|
|
|
if test x"$INIT_PROG" = x; then
|
|
|
|
|
INIT_PROG="$PKG_NAME"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AS_CASE([$PKG_NAME],
|
|
|
|
|
[nagios],
|
|
|
|
|
@@ -143,6 +148,7 @@ AS_CASE([$PKG_NAME],
|
|
|
|
|
need_web=yes,
|
|
|
|
|
|
|
|
|
|
[ndoutils],
|
|
|
|
|
need_brk=yes
|
|
|
|
|
need_spl=yes,
|
|
|
|
|
|
|
|
|
|
[nrpe],
|
|
|
|
|
@@ -284,14 +290,14 @@ tmpfilesd=${tmpfilesd="/usr/lib/tmpfiles.d"}
|
|
|
|
|
if test ! -d "$tmpfilesd"; then
|
|
|
|
|
tmpfilesd="N/A"
|
|
|
|
|
else
|
|
|
|
|
tmpfilesd="$tmpfilesd/$PKG_NAME.conf"
|
|
|
|
|
tmpfilesd="$tmpfilesd/$INIT_PROG.conf"
|
|
|
|
|
fi
|
|
|
|
|
subsyslockdir=${subsyslockdir="/var/lock/subsys"}
|
|
|
|
|
if test ! -d "$subsyslockdir"; then
|
|
|
|
|
subsyslockdir="N/A"
|
|
|
|
|
subsyslockfile="N/A"
|
|
|
|
|
else
|
|
|
|
|
subsyslockfile="$subsyslockdir/$PKG_NAME"
|
|
|
|
|
subsyslockfile="$subsyslockdir/$INIT_PROG"
|
|
|
|
|
fi
|
|
|
|
|
if test "$need_loc" = no; then
|
|
|
|
|
localedir="N/A"
|
|
|
|
|
@@ -372,23 +378,23 @@ elif test $opsys = "linux"; then
|
|
|
|
|
fi
|
|
|
|
|
privatesysconfdir=${privatesysconfdir="$pkgsysconfdir/private"}
|
|
|
|
|
if test $need_log_subdir = yes; then
|
|
|
|
|
logdir=${logdir="$localstatedir/log/$PKG_NAME"}
|
|
|
|
|
logdir=${logdir="$localstatedir/log/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
logdir=${logdir="$localstatedir/log"}
|
|
|
|
|
fi
|
|
|
|
|
piddir=${piddir="$localstatedir/run/${PKG_NAME}"}
|
|
|
|
|
piddir=${piddir="$localstatedir/run/${INIT_PROG}"}
|
|
|
|
|
if test "$need_pipe" = yes; then
|
|
|
|
|
pipedir=${pipedir="$localstatedir/run/${PKG_NAME}"}
|
|
|
|
|
pipedir=${pipedir="$localstatedir/run/${INIT_PROG}"}
|
|
|
|
|
else
|
|
|
|
|
pipedir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
if test "$need_pls_dir" = yes; then
|
|
|
|
|
pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$PKG_NAME"}
|
|
|
|
|
pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
pkglocalstatedir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
if test "$need_spl" = yes; then
|
|
|
|
|
spooldir=${spooldir="$localstatedir/spool/$PKG_NAME"}
|
|
|
|
|
spooldir=${spooldir="$localstatedir/spool/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
spooldir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
@@ -437,7 +443,7 @@ elif test $opsys = "unix"; then
|
|
|
|
|
fi
|
|
|
|
|
privatesysconfdir=${privatesysconfdir="$pkgsysconfdir/private"}
|
|
|
|
|
if test "$need_pls_dir" = yes; then
|
|
|
|
|
pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$PKG_NAME"}
|
|
|
|
|
pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
pkglocalstatedir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
@@ -445,7 +451,7 @@ elif test $opsys = "unix"; then
|
|
|
|
|
localedir=${localedir="/usr/local/share/locale/<lang>/LC_MESSAGES/nagios-plugins.mo"}
|
|
|
|
|
fi
|
|
|
|
|
if test "$need_spl" = yes; then
|
|
|
|
|
spooldir=${spooldir="$localstatedir/spool/$PKG_NAME"}
|
|
|
|
|
spooldir=${spooldir="$localstatedir/spool/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
spooldir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
@@ -471,14 +477,14 @@ elif test $opsys = "unix"; then
|
|
|
|
|
logdir=${logdir="$pkglocalstatedir/log"},
|
|
|
|
|
|
|
|
|
|
[*],
|
|
|
|
|
piddir=${piddir="$localstatedir/run/${PKG_NAME}"}
|
|
|
|
|
piddir=${piddir="$localstatedir/run/${INIT_PROG}"}
|
|
|
|
|
if test "$need_pipe" = yes; then
|
|
|
|
|
pipedir=${pipedir="$localstatedir/run/${PKG_NAME}"}
|
|
|
|
|
pipedir=${pipedir="$localstatedir/run/${INIT_PROG}"}
|
|
|
|
|
else
|
|
|
|
|
pipedir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
if test $need_log_subdir = yes; then
|
|
|
|
|
logdir=${logdir="$localstatedir/log/$PKG_NAME"}
|
|
|
|
|
logdir=${logdir="$localstatedir/log/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
logdir=${logdir="$localstatedir/log"}
|
|
|
|
|
fi
|
|
|
|
|
@@ -528,7 +534,7 @@ elif test $opsys = "bsd"; then
|
|
|
|
|
fi
|
|
|
|
|
privatesysconfdir=${privatesysconfdir="$pkgsysconfdir/private"}
|
|
|
|
|
if test "$need_pls_dir" = yes; then
|
|
|
|
|
pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$PKG_NAME"}
|
|
|
|
|
pkglocalstatedir=${pkglocalstatedir="$localstatedir/lib/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
pkglocalstatedir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
@@ -536,7 +542,7 @@ elif test $opsys = "bsd"; then
|
|
|
|
|
localedir=${localedir="/usr/local/share/locale/<lang>/LC_MESSAGES/nagios-plugins.mo"}
|
|
|
|
|
fi
|
|
|
|
|
if test "$need_spl" = yes; then
|
|
|
|
|
spooldir=${spooldir="$localstatedir/spool/$PKG_NAME"}
|
|
|
|
|
spooldir=${spooldir="$localstatedir/spool/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
spooldir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
@@ -561,14 +567,14 @@ elif test $opsys = "bsd"; then
|
|
|
|
|
else
|
|
|
|
|
cgibindir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
piddir=${piddir="$localstatedir/run/${PKG_NAME}"}
|
|
|
|
|
piddir=${piddir="$localstatedir/run/${INIT_PROG}"}
|
|
|
|
|
if test "$need_pipe" = yes; then
|
|
|
|
|
pipedir=${pipedir="$localstatedir/run/${PKG_NAME}"}
|
|
|
|
|
pipedir=${pipedir="$localstatedir/run/${INIT_PROG}"}
|
|
|
|
|
else
|
|
|
|
|
pipedir="N/A"
|
|
|
|
|
fi
|
|
|
|
|
if test $need_log_subdir = yes; then
|
|
|
|
|
logdir=${logdir="$localstatedir/log/$PKG_NAME"}
|
|
|
|
|
logdir=${logdir="$localstatedir/log/$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
logdir=${logdir="$localstatedir/log"}
|
|
|
|
|
fi
|
|
|
|
|
@@ -604,6 +610,7 @@ eval libexecdir=$libexecdir
|
|
|
|
|
eval brokersdir=$brokersdir
|
|
|
|
|
eval pluginsdir=$pluginsdir
|
|
|
|
|
eval cgibindir=$cgibindir
|
|
|
|
|
eval localstatedir=$localstatedir
|
|
|
|
|
eval pkglocalstatedir=$pkglocalstatedir
|
|
|
|
|
eval webdir=$webdir
|
|
|
|
|
eval localedir=$localedir
|
|
|
|
|
@@ -622,9 +629,9 @@ AS_CASE([$init_type],
|
|
|
|
|
else
|
|
|
|
|
initdir=${initdir="/etc/init.d"}
|
|
|
|
|
fi
|
|
|
|
|
initname=${initname="$PKG_NAME"}
|
|
|
|
|
initname=${initname="$INIT_PROG"}
|
|
|
|
|
initconfdir=${initconfdir="/etc/conf.d"}
|
|
|
|
|
initconf=${initconf="$initconfdir/$PKG_NAME"},
|
|
|
|
|
initconf=${initconf="$initconfdir/$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[systemd],
|
|
|
|
|
if test $dist_type = "debian"; then
|
|
|
|
|
@@ -632,27 +639,32 @@ AS_CASE([$init_type],
|
|
|
|
|
else
|
|
|
|
|
initdir=${initdir="/usr/lib/systemd/system"}
|
|
|
|
|
fi
|
|
|
|
|
initname=${initname="$PKG_NAME.service"},
|
|
|
|
|
initname=${initname="$INIT_PROG.service"},
|
|
|
|
|
|
|
|
|
|
[bsd],
|
|
|
|
|
initdir=${initdir="/etc/rc.d"}
|
|
|
|
|
initname=${initname="rc.$PKG_NAME"},
|
|
|
|
|
if test $dist_type = "aix"; then
|
|
|
|
|
initdir=${initdir="/sbin/rc.d/init.d"}
|
|
|
|
|
initname=${initname="$INIT_PROG"}
|
|
|
|
|
else
|
|
|
|
|
initdir=${initdir="/etc/rc.d"}
|
|
|
|
|
initname=${initname="rc.$INIT_PROG"}
|
|
|
|
|
fi,
|
|
|
|
|
|
|
|
|
|
[newbsd],
|
|
|
|
|
initdir=${initdir="/etc/rc.d"}
|
|
|
|
|
initname=${initname="$PKG_NAME"},
|
|
|
|
|
initname=${initname="$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[gentoo],
|
|
|
|
|
initdir=${initdir="/etc/init.d"}
|
|
|
|
|
initname=${initname="$PKG_NAME"}
|
|
|
|
|
initname=${initname="$INIT_PROG"}
|
|
|
|
|
initconfdir=${initconfdir="/etc/init.d"}
|
|
|
|
|
initconf=${initconf="$initconfdir/$PKG_NAME"},
|
|
|
|
|
initconf=${initconf="$initconfdir/$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[openrc],
|
|
|
|
|
initdir=${initdir="/etc/init.d"}
|
|
|
|
|
initname=${initname="$PKG_NAME"}
|
|
|
|
|
initname=${initname="$INIT_PROG"}
|
|
|
|
|
initconfdir=${initconfdir="/etc/conf.d"}
|
|
|
|
|
initconf=${initconf="$initconfdir/$PKG_NAME"},
|
|
|
|
|
initconf=${initconf="$initconfdir/$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[smf*],
|
|
|
|
|
if test $init_type = smf10; then
|
|
|
|
|
@@ -660,21 +672,21 @@ AS_CASE([$init_type],
|
|
|
|
|
else
|
|
|
|
|
initdir=${initdir="/lib/svc/manifest/network/nagios"}
|
|
|
|
|
fi
|
|
|
|
|
initname=${initname="$PKG_NAME.xml"}
|
|
|
|
|
initname=${initname="$INIT_PROG.xml"}
|
|
|
|
|
initconfdir=unknown
|
|
|
|
|
initconf=unknown,
|
|
|
|
|
|
|
|
|
|
[upstart],
|
|
|
|
|
initdir=${initdir="/etc/init"}
|
|
|
|
|
initname=${initname="$PKG_NAME.conf"}
|
|
|
|
|
initname=${initname="$INIT_PROG.conf"}
|
|
|
|
|
initconfdir=${initconfdir="/etc/default"}
|
|
|
|
|
initconf=${initconf="$initconfdir/$PKG_NAME"},
|
|
|
|
|
initconf=${initconf="$initconfdir/$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[launchd],
|
|
|
|
|
initdir=${initdir="/Library/LaunchDaemons"}
|
|
|
|
|
initname=${initname="org.nagios.$PKG_NAME.plist"},
|
|
|
|
|
initname=${initname="org.nagios.$INIT_PROG.plist"},
|
|
|
|
|
# initconfdir=${initconfdir="/private/etc"}
|
|
|
|
|
# initconf=${initconf="$initconfdir/$PKG_NAME"},
|
|
|
|
|
# initconf=${initconf="$initconfdir/$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[*],
|
|
|
|
|
@@ -691,7 +703,7 @@ AS_CASE([$inetd_type],
|
|
|
|
|
|
|
|
|
|
[xinetd],
|
|
|
|
|
inetddir=${inetddir="/etc/xinetd.d"}
|
|
|
|
|
inetdname=${inetdname="$PKG_NAME"},
|
|
|
|
|
inetdname=${inetdname="$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[systemd],
|
|
|
|
|
if test $dist_type = "debian"; then
|
|
|
|
|
@@ -699,7 +711,7 @@ AS_CASE([$inetd_type],
|
|
|
|
|
else
|
|
|
|
|
inetddir=${inetddir="/usr/lib/systemd/system"}
|
|
|
|
|
fi
|
|
|
|
|
netdname=${inetdname="$PKG_NAME.socket"},
|
|
|
|
|
netdname=${inetdname="$INIT_PROG.socket"},
|
|
|
|
|
|
|
|
|
|
[smf*],
|
|
|
|
|
if test $init_type = smf10; then
|
|
|
|
|
@@ -707,15 +719,15 @@ AS_CASE([$inetd_type],
|
|
|
|
|
else
|
|
|
|
|
inetddir=${inetddir="/lib/svc/manifest/network/nagios"}
|
|
|
|
|
fi
|
|
|
|
|
inetdname=${inetdname="$PKG_NAME.xml"},
|
|
|
|
|
inetdname=${inetdname="$INIT_PROG.xml"},
|
|
|
|
|
|
|
|
|
|
# [upstart],
|
|
|
|
|
# inetddir=${inetddir="/etc/init.d"}
|
|
|
|
|
# inetdname=${inetdname="$PKG_NAME"},
|
|
|
|
|
# inetdname=${inetdname="$INIT_PROG"},
|
|
|
|
|
|
|
|
|
|
[launchd],
|
|
|
|
|
inetddir=${inetddir="/Library/LaunchDaemons"}
|
|
|
|
|
inetdname=${inetdname="org.nagios.$PKG_NAME.plist"},
|
|
|
|
|
inetdname=${inetdname="org.nagios.$INIT_PROG.plist"},
|
|
|
|
|
|
|
|
|
|
[*],
|
|
|
|
|
inetddir=${inetddir="unknown"}
|
|
|
|
|
|