|
| 1 | +### Rules to create the spk package |
| 2 | +# Most of the rules are imported from spksrc.*.mk files |
| 3 | +# |
| 4 | +# Variables used in this file: |
| 5 | +# NAME: The internal name of the package. |
| 6 | +# Note that all synocoummunity packages use lowercase names. |
| 7 | +# This enables to have concurrent packages with synology.com, that use |
| 8 | +# package names starting with upper case letters. |
| 9 | +# (e.g. Mono => synology.com, mono => synocommunity.com) |
| 10 | +# SPK_FILE_NAME: The full spk name with folder, package name, arch, tc- and package version. |
| 11 | +# SPK_CONTENT: List of files and folders that are added to package.tgz within the spk file. |
| 12 | +# DSM_SCRIPT_FILES: List of script files that are in the scripts folder within the spk file. |
| 13 | +# |
| 14 | + |
1 | 15 | # Common makefiles
|
2 | 16 | include ../../mk/spksrc.common.mk
|
3 | 17 | include ../../mk/spksrc.directories.mk
|
@@ -58,26 +72,26 @@ include ../../mk/spksrc.strip.mk
|
58 | 72 | DSM_SCRIPTS_DIR = $(WORK_DIR)/scripts
|
59 | 73 |
|
60 | 74 | # Generated scripts
|
61 |
| -DSM_SCRIPTS_ = preinst postinst |
62 |
| -DSM_SCRIPTS_ += preuninst postuninst |
63 |
| -DSM_SCRIPTS_ += preupgrade postupgrade |
| 75 | +DSM_SCRIPT_FILES = preinst postinst |
| 76 | +DSM_SCRIPT_FILES += preuninst postuninst |
| 77 | +DSM_SCRIPT_FILES += preupgrade postupgrade |
64 | 78 |
|
65 | 79 | # SPK specific scripts
|
66 | 80 | ifneq ($(strip $(SSS_SCRIPT)),)
|
67 |
| -DSM_SCRIPTS_ += start-stop-status |
| 81 | +DSM_SCRIPT_FILES += start-stop-status |
68 | 82 |
|
69 | 83 | $(DSM_SCRIPTS_DIR)/start-stop-status: $(SSS_SCRIPT)
|
70 | 84 | @$(dsm_script_copy)
|
71 | 85 | endif
|
72 | 86 |
|
73 | 87 | ifneq ($(strip $(INSTALLER_SCRIPT)),)
|
74 |
| -DSM_SCRIPTS_ += installer |
| 88 | +DSM_SCRIPT_FILES += installer |
75 | 89 |
|
76 | 90 | $(DSM_SCRIPTS_DIR)/installer: $(INSTALLER_SCRIPT)
|
77 | 91 | @$(dsm_script_copy)
|
78 | 92 | endif
|
79 | 93 |
|
80 |
| -DSM_SCRIPTS_ += $(notdir $(basename $(ADDITIONAL_SCRIPTS))) |
| 94 | +DSM_SCRIPT_FILES += $(notdir $(basename $(ADDITIONAL_SCRIPTS))) |
81 | 95 |
|
82 | 96 | SPK_CONTENT = package.tgz INFO scripts
|
83 | 97 |
|
@@ -249,7 +263,7 @@ $(WORK_DIR)/package.tgz: icon service
|
249 | 263 | @[ -f $@ ] && rm $@ || true
|
250 | 264 | (cd $(STAGING_DIR) && tar cpzf $@ --owner=root --group=root *)
|
251 | 265 |
|
252 |
| -DSM_SCRIPTS = $(addprefix $(DSM_SCRIPTS_DIR)/,$(DSM_SCRIPTS_)) |
| 266 | +DSM_SCRIPTS = $(addprefix $(DSM_SCRIPTS_DIR)/,$(DSM_SCRIPT_FILES)) |
253 | 267 |
|
254 | 268 | define dsm_script_redirect
|
255 | 269 | $(create_target_dir)
|
|
0 commit comments