summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in12
-rw-r--r--mk/package.mk2
2 files changed, 14 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 9a779028b..1216099db 100644
--- a/Config.in
+++ b/Config.in
@@ -46,6 +46,18 @@ endmenu
menu "Package selection"
depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_SYSTEM
+
+config ADK_INSTALL_PACKAGE_INIT_SCRIPTS
+ boolean "ship custom init-scripts along with packages"
+ default y
+ help
+ Turning this option to false will prevent the ADK from
+ installing init-scripts (i.e. files in /etc/init.d) for
+ certain daemons and daemon-like applications.
+
+ Note that without further customisation, turning this option
+ off will almost certainly render the resulting system unusable.
+
source "package/Config.in.auto.global"
source "package/Config.in.auto"
endmenu
diff --git a/mk/package.mk b/mk/package.mk
index edbf3c6d5..3d7353a51 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -181,6 +181,7 @@ $$(IPKG_$(1)): $$(IDIR_$(1))/CONTROL/control $${_FAKE_COOKIE}
ifeq ($(ADK_DEBUG),)
$${RSTRIP} $${IDIR_$(1)} $(MAKE_TRACE)
endif
+ifeq (${ADK_INSTALL_PACKAGE_INIT_SCRIPTS},y)
@for file in $$$$(ls ./files/*.init 2>/dev/null); do \
fname=$$$$(echo $$$$file| sed -e "s#.*/##" -e "s#.init##"); \
check=$$$$(grep PKG $$$$file|cut -d ' ' -f 2); \
@@ -192,6 +193,7 @@ endif
[[ -e $$$$script ]] || continue; \
chmod 0755 "$$$$script"; \
done
+endif
@mkdir -p $${PACKAGE_DIR} '$${STAGING_PKG_DIR}' \
'$${STAGING_TARGET_DIR}/scripts'
ifeq (,$(filter noremove,$(7)))