From 201a751f0a0da9fa0427d683cb56725a40a00d89 Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 3 Aug 2017 21:01:34 -0700 Subject: [pkg] automate flat package --- pkg/osx/scripts/postinstall | 6 ++++++ pkg/osx/scripts/preinstall | 5 +++++ pkg/osx/scripts/se.leap.bitmask-helper.plist | 29 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100755 pkg/osx/scripts/postinstall create mode 100755 pkg/osx/scripts/preinstall create mode 100644 pkg/osx/scripts/se.leap.bitmask-helper.plist (limited to 'pkg/osx/scripts') diff --git a/pkg/osx/scripts/postinstall b/pkg/osx/scripts/postinstall new file mode 100755 index 00000000..9c2176b2 --- /dev/null +++ b/pkg/osx/scripts/postinstall @@ -0,0 +1,6 @@ +#!/bin/sh +# Bitmask Post-Instalation script +cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ +launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist || echo "Already loaded, skipping..." +echo `date` "::Bitmask post-installation script succeeded." >> /tmp/bitmask-install.log +exit 0 diff --git a/pkg/osx/scripts/preinstall b/pkg/osx/scripts/preinstall new file mode 100755 index 00000000..222922cf --- /dev/null +++ b/pkg/osx/scripts/preinstall @@ -0,0 +1,5 @@ +#!/bin/sh +# Bitmask Pre-Instalation script +[[ -f /Library/LaunchDaemons/se.leap.bitmask-helper.plist ]] && launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist +echo `date` "::Bitmask pre-installation script succeeded." >> /tmp/bitmask-install.log +exit 0 diff --git a/pkg/osx/scripts/se.leap.bitmask-helper.plist b/pkg/osx/scripts/se.leap.bitmask-helper.plist new file mode 100644 index 00000000..4428f131 --- /dev/null +++ b/pkg/osx/scripts/se.leap.bitmask-helper.plist @@ -0,0 +1,29 @@ + + + + + StandardOutPath + bitmask-helper.log + StandardErrorPath + bitmask-helper-err.log + GroupName + daemon + KeepAlive + + SuccessfulExit + + + Label + se.leap.bitmask-helper + ProgramArguments + + /Applications/Bitmask.app/Contents/Resources/bitmask-helper/bitmask-helper + + RunAtLoad + + WorkingDirectory + /Applications/Bitmask.app/Contents/Resources/bitmask-helper/ + SessionCreate + + + -- cgit v1.2.3