From: Alexander Barton Date: Mon, 14 Dec 2009 11:51:28 +0000 (+0100) Subject: Added Mac OS X PackageBuilder scripts X-Git-Tag: rel-2~34 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=274da505fdf15d3ec0b2688ac037b4670664fb29 Added Mac OS X PackageBuilder scripts --- diff --git a/contrib/NagCollect.pmdoc/01nagcollect-contents.xml b/contrib/NagCollect.pmdoc/01nagcollect-contents.xml new file mode 100644 index 0000000..bc1e5a7 --- /dev/null +++ b/contrib/NagCollect.pmdoc/01nagcollect-contents.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/01nagcollect.xml b/contrib/NagCollect.pmdoc/01nagcollect.xml new file mode 100644 index 0000000..135e38e --- /dev/null +++ b/contrib/NagCollect.pmdoc/01nagcollect.xml @@ -0,0 +1 @@ +de.barton.nagcollectClient.nagcollect.pkg1../client/bin/nagcollect/usr/local/sbinrequireAuthorizationinstallToidentifierparentversioninstallTo.pathextraFilesinstallFrom.isRelativeType \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/02nagcollect-contents.xml b/contrib/NagCollect.pmdoc/02nagcollect-contents.xml new file mode 100644 index 0000000..bc1e5a7 --- /dev/null +++ b/contrib/NagCollect.pmdoc/02nagcollect-contents.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/02nagcollect.xml b/contrib/NagCollect.pmdoc/02nagcollect.xml new file mode 100644 index 0000000..44a3776 --- /dev/null +++ b/contrib/NagCollect.pmdoc/02nagcollect.xml @@ -0,0 +1 @@ +de.barton.nagcollectClient.conf.pkg1../client/etc/nagcollect.conf/usr/local/etcrequireAuthorizationinstallToidentifierparentversioninstallTo.pathextraFilesinstallFrom.isRelativeType \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/03tests-contents.xml b/contrib/NagCollect.pmdoc/03tests-contents.xml new file mode 100644 index 0000000..bc1e5a7 --- /dev/null +++ b/contrib/NagCollect.pmdoc/03tests-contents.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/03tests.xml b/contrib/NagCollect.pmdoc/03tests.xml new file mode 100644 index 0000000..d2dbf02 --- /dev/null +++ b/contrib/NagCollect.pmdoc/03tests.xml @@ -0,0 +1 @@ +de.barton.nagcollectClient.tests.pkg1../client/lib/tests/usr/local/lib/nagcollectinstallFrom.isRelativeTypeinstallToversionrequireAuthorizationparentincludeRootidentifierextraFilesinstallTo.path \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/04de-contents.xml b/contrib/NagCollect.pmdoc/04de-contents.xml new file mode 100644 index 0000000..bc1e5a7 --- /dev/null +++ b/contrib/NagCollect.pmdoc/04de-contents.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/04de.xml b/contrib/NagCollect.pmdoc/04de.xml new file mode 100644 index 0000000..d69a8ae --- /dev/null +++ b/contrib/NagCollect.pmdoc/04de.xml @@ -0,0 +1 @@ +de.barton.nagcollectClient.launchscript.pkg1../client/lib/de.barton.nagcollect/Library/LaunchDaemonsscripts.preinstall.pathscripts.postflight.pathinstallToscripts.postinstall.pathscripts.preflight.isRelativeTypeinstallFrom.isRelativeTypescripts.postflight.isRelativeTypeversionparentscripts.preupgrade.pathidentifierscripts.postupgrade.pathrequireAuthorizationscripts.preflight.pathextraFilesinstallTo.pathsetup-osx.shlaunch-osx.shsetup-osx.shlaunch-osx.sh \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/index.xml b/contrib/NagCollect.pmdoc/index.xml new file mode 100644 index 0000000..5ea8dde --- /dev/null +++ b/contrib/NagCollect.pmdoc/index.xml @@ -0,0 +1 @@ +NagCollect Client/Users/alex/Desktop/NagCollect Client.mpkgde.barton///01nagcollect.xml02nagcollect.xml03tests.xml04de.xmlproperties.systemDomainproperties.titleproperties.customizeOptionproperties.anywhereDomainextraFiles \ No newline at end of file diff --git a/contrib/launch-osx.sh b/contrib/launch-osx.sh new file mode 100755 index 0000000..dd75800 --- /dev/null +++ b/contrib/launch-osx.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# +# NagCollect -- Nagios Data Collector for Passive Checks +# Copyright (c)2009 Alexander Barton, alex@barton.de +# +logger -t "launch-osx.sh" -s "starting ..." +[ -r /usr/local/etc/nagcollect.conf ] && . /usr/local/etc/nagcollect.conf +if [ -n "$SERVER_URL" -a -n "$CLIENT_KEY" -a -n "$CLIENT_ID" ]; then + logger -t "launch-osx.sh" -s "Configuration valid, loading LaunchDaemon script ..." + launchctl load -w /Library/LaunchDaemons/de.barton.nagcollect +else + logger -t "launch-osx.sh" -s "Configuration not valid, NOT LOADING LaunchDaemon script!" +fi +logger -t "launch-osx.sh" -s "done." diff --git a/contrib/setup-osx.sh b/contrib/setup-osx.sh new file mode 100755 index 0000000..98db928 --- /dev/null +++ b/contrib/setup-osx.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# +# NagCollect -- Nagios Data Collector for Passive Checks +# Copyright (c)2009 Alexander Barton, alex@barton.de +# +logger -t "setup-osx.sh" -s "starting ..." +[ -r /Library/LaunchDaemons/de.barton.nagcollect ] \ + && launchctl unload -w /Library/LaunchDaemons/de.barton.nagcollect +logger -t "setup-osx.sh" -s "done."