From: Alexander Barton Date: Fri, 29 Aug 2014 23:56:26 +0000 (+0200) Subject: Remove OS X packaging scripts X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=HEAD;hp=10329e9eaf11d1c359716bcdee705e265cbfc979 Remove OS X packaging scripts --- diff --git a/Makefile b/Makefile index 5c783c9..ba8a06e 100644 --- a/Makefile +++ b/Makefile @@ -99,19 +99,6 @@ plugins: done \ ) -osxpkg: - rel=`grep "^NagCollect " ChangeLog|awk "{print \\\$$3 }"|head -n 1`; \ - rm -rf "../NagCollect-R$${rel}.mpkg" \ - && packagemaker \ - --doc "contrib/NagCollect.pmdoc" \ - --out "../NagCollect-R$${rel}.mpkg" - -osxdmg: osxpkg - rel=`grep "^NagCollect " ChangeLog|awk "{print \\\$$3 }"|head -n 1`; \ - rm -f "../NagCollect-R$${rel}.dmg" \ - && hdiutil create -srcfolder \ - "../NagCollect-R$${rel}.mpkg" "../NagCollect-R$${rel}.dmg" - nagcollecttestscripts: COPYFILE_DISABLE=true tar -czvf nagcollecttestscripts.tgz \ -C client/lib/tests . diff --git a/contrib/NagCollect.pmdoc/01nagcollect-contents.xml b/contrib/NagCollect.pmdoc/01nagcollect-contents.xml deleted file mode 100644 index 00e732c..0000000 --- a/contrib/NagCollect.pmdoc/01nagcollect-contents.xml +++ /dev/null @@ -1 +0,0 @@ -groupowner \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/01nagcollect.xml b/contrib/NagCollect.pmdoc/01nagcollect.xml deleted file mode 100644 index 0723946..0000000 --- a/contrib/NagCollect.pmdoc/01nagcollect.xml +++ /dev/null @@ -1 +0,0 @@ -de.barton.nagcollectClient.nagcollect.pkg1../client/bin/nagcollect/usr/local/sbinextraFilesinstallToscripts.postinstall.pathscripts.postupgrade.pathidentifierparentversioninstallTo.pathinstallFrom.isRelativeTyperequireAuthorizationfix-usr-local.shfix-usr-local.sh01nagcollect-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/02nagcollect-contents.xml b/contrib/NagCollect.pmdoc/02nagcollect-contents.xml deleted file mode 100644 index 660121d..0000000 --- a/contrib/NagCollect.pmdoc/02nagcollect-contents.xml +++ /dev/null @@ -1 +0,0 @@ -modegroupowner \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/02nagcollect.xml b/contrib/NagCollect.pmdoc/02nagcollect.xml deleted file mode 100644 index aa9dea3..0000000 --- a/contrib/NagCollect.pmdoc/02nagcollect.xml +++ /dev/null @@ -1 +0,0 @@ -de.barton.nagcollectClient.conf.pkg1../client/etc/nagcollect.conf/usr/local/etcextraFilesinstallToscripts.postupgrade.isRelativeTypescripts.postinstall.pathidentifierparentversioninstallTo.pathinstallFrom.isRelativeTyperequireAuthorizationfix-usr-local.shfix-usr-local.sh02nagcollect-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/03tests-contents.xml b/contrib/NagCollect.pmdoc/03tests-contents.xml deleted file mode 100644 index 7525711..0000000 --- a/contrib/NagCollect.pmdoc/03tests-contents.xml +++ /dev/null @@ -1 +0,0 @@ -groupownergroupownergroupownergroupownergroupownergroupownergroupowner \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/03tests.xml b/contrib/NagCollect.pmdoc/03tests.xml deleted file mode 100644 index e397d3b..0000000 --- a/contrib/NagCollect.pmdoc/03tests.xml +++ /dev/null @@ -1 +0,0 @@ -de.barton.nagcollectClient.tests.pkg1../client/lib/tests/usr/local/lib/nagcollectinstallToscripts.postinstall.pathinstallFrom.isRelativeTypeincludeRootversionparentidentifierrequireAuthorizationinstallFrom.pathscripts.postupgrade.pathextraFilesinstallTo.pathfix-usr-local.shfix-usr-local.sh03tests-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/04de-contents.xml b/contrib/NagCollect.pmdoc/04de-contents.xml deleted file mode 100644 index ed94d14..0000000 --- a/contrib/NagCollect.pmdoc/04de-contents.xml +++ /dev/null @@ -1 +0,0 @@ -groupowner \ No newline at end of file diff --git a/contrib/NagCollect.pmdoc/04de.xml b/contrib/NagCollect.pmdoc/04de.xml deleted file mode 100644 index 4b3f53a..0000000 --- a/contrib/NagCollect.pmdoc/04de.xml +++ /dev/null @@ -1 +0,0 @@ -de.barton.nagcollectClient.launchscript.pkg1../client/lib/de.barton.nagcollect.plist/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.sh04de-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ diff --git a/contrib/NagCollect.pmdoc/index.xml b/contrib/NagCollect.pmdoc/index.xml deleted file mode 100644 index 5ea8dde..0000000 --- a/contrib/NagCollect.pmdoc/index.xml +++ /dev/null @@ -1 +0,0 @@ -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/fix-usr-local.sh b/contrib/fix-usr-local.sh deleted file mode 100755 index eaf6aec..0000000 --- a/contrib/fix-usr-local.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# -# NagCollect -- Nagios Data Collector for Passive Checks -# Copyright (c)2009-2010 Alexander Barton, alex@barton.de -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# Please read the file COPYING, README and AUTHORS for more information. -# - -logger -t "fix-usr-local.sh" -s "starting ..." - -chown root:wheel /usr/local /usr/local/etc /usr/local/sbin -chmod 755 /usr/local /usr/local/etc /usr/local/sbin - -chown root:wheel /usr/local/etc/nagcollect.conf -chmod 640 /usr/local/etc/nagcollect.conf - -chown root:wheel /usr/local/sbin/nagcollect -chmod 755 /usr/local/sbin/nagcollect - -chown -R root:wheel /usr/local/lib/nagcollect -chmod -R a+rX /usr/local/lib/nagcollect - -logger -t "fix-usr-local.sh" -s "done." diff --git a/contrib/launch-osx.sh b/contrib/launch-osx.sh deleted file mode 100755 index 75f0802..0000000 --- a/contrib/launch-osx.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# -# NagCollect -- Nagios Data Collector for Passive Checks -# Copyright (c)2009,2011 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 ..." - chown root:wheel /Library/LaunchDaemons/de.barton.nagcollect.plist - chmod 644 /Library/LaunchDaemons/de.barton.nagcollect.plist - launchctl load -w /Library/LaunchDaemons/de.barton.nagcollect.plist -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 deleted file mode 100755 index 9e8bcc6..0000000 --- a/contrib/setup-osx.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# NagCollect -- Nagios Data Collector for Passive Checks -# Copyright (c)2009,2011 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 -rm -f /Library/LaunchDaemons/de.barton.nagcollect -[ -r /Library/LaunchDaemons/de.barton.nagcollect.plist ] \ - && launchctl unload -w /Library/LaunchDaemons/de.barton.nagcollect.plist -rm -f /Library/LaunchDaemons/de.barton.nagcollect.plist -logger -t "setup-osx.sh" -s "done."