forked from salopensource/sal-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·29 lines (26 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
PACKAGE_VERSION=2.0.4
TITLE=sal_scripts
PACKAGE_NAME=sal_scripts
REVERSE_DOMAIN=com.github.salopensource
PAYLOAD=\
pack-yaml \
pack-sal-submit
pack-yaml: l_usr_local
@sudo find . -name "*.pyc" -exec rm -rf {} \;
@sudo mkdir -p ${WORK_D}/usr/local/sal/yaml
@sudo ${CP} -R yaml ${WORK_D}/usr/local/sal
@sudo chown -R root:wheel ${WORK_D}/usr/local/sal/yaml
@sudo chmod -R 755 ${WORK_D}/usr/local/sal/yaml
@sudo ${INSTALL} -m 755 -g wheel -o root "utils.py" ${WORK_D}/usr/local/sal
l_munki: l_usr_local
@sudo mkdir -p ${WORK_D}/usr/local/munki/postflight.d
@sudo chown root:wheel ${WORK_D}/usr/local/munki/postflight.d
@sudo mkdir -p ${WORK_D}/usr/local/munki/preflight.d
@sudo chown root:wheel ${WORK_D}/usr/local/munki/preflight.d
pack-sal-submit: l_munki
@sudo ${INSTALL} -m 755 -g wheel -o root "postflight" ${WORK_D}/usr/local/munki
@sudo ${INSTALL} -m 755 -g wheel -o root "preflight" ${WORK_D}/usr/local/munki
@sudo ${INSTALL} -m 755 -g wheel -o root "postflight.d/sal-postflight" ${WORK_D}/usr/local/munki/postflight.d
@sudo ${INSTALL} -m 755 -g wheel -o root "preflight.d/sal-preflight" ${WORK_D}/usr/local/munki/preflight.d