summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-11-27 17:23:46 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-11-27 17:24:03 +0100
commit0a0c116036e3a2d44af3169d52637ca80c7f535c (patch)
tree2bad89e40d215107affb4ae9f8d1dbcebae4f4fd /mk
parentfaa7498553e0c46bed2b27c3affa2e2278567631 (diff)
dropbear: add systemd unit file and integrate logic to package build
Diffstat (limited to 'mk')
-rw-r--r--mk/package.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/package.mk b/mk/package.mk
index efcb18315..5510cf445 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -225,7 +225,15 @@ ifeq (${ADK_INSTALL_PACKAGE_INIT_SCRIPTS},y)
done
endif
ifneq (${ADK_INSTALL_PACKAGE_NETWORK_SCRIPTS},y)
- -rm -rf $${IDIR_$(1)}/etc/network
+ -@rm -rf $${IDIR_$(1)}/etc/network
+endif
+ifeq (${ADK_RUNTIME_INIT_SYSTEMD},y)
+ @for file in $$$$(ls ./files/*.service 2>/dev/null); do \
+ mkdir -p $$(IDIR_$(1))/usr/lib/systemd/system && cp $$$$file $$(IDIR_$(1))/usr/lib/systemd/system; \
+ mkdir -p $$(IDIR_$(1))/etc/systemd/system/multi-user.target.wants; \
+ ln -sf ../../../../usr/lib/systemd/system/$$$$file \
+ $$(IDIR_$(1))/etc/systemd/system/multi-user.target.wants; \
+ done
endif
endif
@mkdir -p $${PACKAGE_DIR} '$${STAGING_PKG_DIR}/stamps' \