Created
November 17, 2014 19:46
-
-
Save flammable/167ce9d134575fe27c3c to your computer and use it in GitHub Desktop.
kaseya_pkg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE_PKGBUILD=1 | |
include /usr/local/share/luggage/luggage.make | |
TITLE=kaseya_pkg | |
REVERSE_DOMAIN=com.yourcompany | |
PACKAGE_VERSION=7.0.0.4 | |
PAYLOAD=\ | |
l_tmp\ | |
pack-kaseya_pkg\ | |
pack-script-postinstall | |
# create an installer, check silent install, then paste these switches | |
# /e /s /i /g=processing.root.yourcompany /c | |
l_tmp: l_root | |
@sudo mkdir -p ${WORK_D}/tmp/Agent | |
pack-kaseya_pkg: | |
@sudo /usr/bin/curl "http://kaseya.yourcompany.com/mkDefault.asp?id=123456789" -H "Connection: keep-alive" --compressed | |
@sudo /usr/bin/curl -O "http://kaseya.yourcompany.com/install/VSA-default-123456789/KcsSetup.zip" | |
@sudo /usr/bin/unzip "KcsSetup.zip" | |
@sudo ${DITTO} --noqtn ./Agent/ ${WORK_D}/tmp/Agent/ | |
@sudo chown -R root:admin ${WORK_D}/tmp/Agent | |
@sudo chmod -R 755 ${WORK_D}/tmp/Agent | |
@sudo rm -rf ./Agent | |
@sudo rm -rf KcsSetup.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/tmp/Agent/KcsSetup.app/Contents/MacOS/KcsSetup | |
sleep 1 | |
exit 0 |
Apparently it's super sensitive to naming schemes. Has to be Makefile, not MakeFile. My bad.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey man, I'm wondering if you could point me in the right direction. I'm trying to get this script to work, but when I try to create the package, I get a "make: ***No rule to make target 'pkg'. Stop". Any idea what could be causing this?