summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-07-17 08:44:31 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-07-17 08:56:50 +0200
commit67708626d4380b317baaaf15ced6eaaa7cbd9537 (patch)
treeeeb61136c106c7acb564cd7b84e81b566effa7b3
parent6597a67ea5d5f9ad584aa52b70e69ceb1d216aa9 (diff)
downloadptxdist-67708626d4380b317baaaf15ced6eaaa7cbd9537.tar.gz
ptxdist-67708626d4380b317baaaf15ced6eaaa7cbd9537.tar.xz
haveged: don't use PTXCONF_INITMETHOD_SYSTEMD directly
Packages should always have their own symbols to make sure the package is rebuilt when the option changes. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/haveged.in6
-rw-r--r--rules/haveged.make5
2 files changed, 9 insertions, 2 deletions
diff --git a/rules/haveged.in b/rules/haveged.in
index 95b3f2a83..f0b4bb1e3 100644
--- a/rules/haveged.in
+++ b/rules/haveged.in
@@ -14,4 +14,10 @@ config HAVEGED_STARTSCRIPT
bool
prompt "install /etc/init.d/haveged"
+config HAVEGED_SYSTEMD_UNIT
+ bool
+ default y
+ depends on SYSTEMD
+ prompt "install systemd unit files"
+
endif
diff --git a/rules/haveged.make b/rules/haveged.make
index af5fa0b30..1782cf1e7 100644
--- a/rules/haveged.make
+++ b/rules/haveged.make
@@ -74,8 +74,9 @@ endif
endif
endif
-ifdef PTXCONF_INITMETHOD_SYSTEMD
- @$(call install_copy, haveged, 0, 0, 0644, -, /usr/lib/systemd/system/haveged.service)
+ifdef PTXCONF_HAVEGED_SYSTEMD_UNIT
+ @$(call install_copy, haveged, 0, 0, 0644, -, \
+ /usr/lib/systemd/system/haveged.service)
@$(call install_link, haveged, ../haveged.service, \
/usr/lib/systemd/system/multi-user.target.wants/haveged.service)
endif