Skip to content

Instantly share code, notes, and snippets.

@flammable
Created November 17, 2014 19:46
Show Gist options
  • Select an option

  • Save flammable/167ce9d134575fe27c3c to your computer and use it in GitHub Desktop.

Select an option

Save flammable/167ce9d134575fe27c3c to your computer and use it in GitHub Desktop.
kaseya_pkg
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
#!/bin/bash
/tmp/Agent/KcsSetup.app/Contents/MacOS/KcsSetup
sleep 1
exit 0
@ivanrkv

ivanrkv commented Oct 7, 2015

Copy link
Copy Markdown

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?

@ivanrkv

ivanrkv commented Oct 7, 2015

Copy link
Copy Markdown

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