-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile_template
67 lines (49 loc) · 1.65 KB
/
Makefile_template
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Copyright 2011 Henri Shustak
# All rights reserved
#
# Lucid Information Systems
# http://www.lucidsystems.org
#
# Licensed under the GNU GPL, Version 3.0 or later
#
# Build an installer for InstallPKG using luggage.
include /usr/local/share/luggage/luggage.make
RESOURCE_D=install_components/resources
# InstallPKG package version
PACKAGE_VERSION=XXXXXXXXX
PACKAGE_NAME=InstallPKG
# Paths to various items and tools
PACKAGEMAKER=/Developer/usr/bin/packagemaker
TAR=/usr/bin/tar
CP=/bin/cp
INSTALL=/usr/bin/install
DITTO=/usr/bin/ditto
TITLE=InstallPKG
REVERSE_DOMAIN=org.lucidsystems
PACKAGE_ID=${REVERSE_DOMAIN}.installpkg
IFPkgFlagBackgroundAlignment=bottomleft
IFPkgFlagBackgroundScaling=tofit
IFPkgFlagRelocatable=true
IFPkgFlagRestartAction=None
IFPkgFlagRootVolumeOnly=false
IFPkgBuildDate=${BUILD_DATE}
IFPkgFlagInstalledSize=102400
PAYLOAD=\
pack-script-postflight \
pack-usr-local-share-man-man1 \
pack-usr-local-bin
# man page installation
prep-usr-local-share-man-man1:
@sudo mkdir -p ${WORK_D}/usr/local/share/man/man1
@sudo chown root:wheel ${WORK_D}/usr/local/share/man/man1
@sudo chmod 755 ${WORK_D}/usr/local/share/man/man1
pack-usr-local-share-man-man1: prep-usr-local-share-man-man1
@sudo ${INSTALL} -m 755 -o root -g wheel install_components/installpkg.1 ${WORK_D}/usr/local/share/man/man1/installpkg.1
# installpkg installation
prep-usr-local-bin:
@sudo mkdir -p ${WORK_D}/usr/local/bin
@sudo chown root:wheel ${WORK_D}/usr/local/bin
@sudo chmod 755 ${WORK_D}/usr/local/bin
pack-usr-local-bin: prep-usr-local-bin
@sudo ${INSTALL} -m 755 -o root -g wheel install_components/installpkg ${WORK_D}/usr/local/bin/installpkg