diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-06 14:56:00 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-06 14:58:09 +0200 |
commit | 3b2df7d4eb4594a7abacc4490160d5cd987c2dff (patch) | |
tree | 11efd8386107bd8b4ecaffab2a2d241840b2545c | |
parent | 309bbab5e748919bf2b066a159963a4a0598c9ac (diff) | |
download | ptxdist-3b2df7d4eb4594a7abacc4490160d5cd987c2dff.tar.gz ptxdist-3b2df7d4eb4594a7abacc4490160d5cd987c2dff.tar.xz |
rsyslog: set systemdsystemunitdir or don't install unit
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/rsyslog.make | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/rsyslog.make b/rules/rsyslog.make index 9abc722ea..c2a24eb3b 100644 --- a/rules/rsyslog.make +++ b/rules/rsyslog.make @@ -87,6 +87,12 @@ RSYSLOG_CONF_OPT := \ --disable-mmsnmptrapd \ --disable-omhdfs \ +ifdef PTXCONF_RSYSLOG_SYSTEMD_UNIT +RSYSLOG_CONF_OPT += --with-systemdsystemunitdir=/lib/systemd/system +else +RSYSLOG_CONF_OPT += --without-systemdsystemunitdir +endif + RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMDIAG) += imdiag RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMFILE) += imfile RSYSLOG_PLUGINS-$(PTXCONF_RSYSLOG_IMKLOG) += imklog @@ -127,10 +133,12 @@ $(STATEDIR)/rsyslog.targetinstall: @$(call install_alternative, rsyslog, 0, 0, 0644, /etc/rsyslog.conf) +ifdef PTXCONF_RSYSLOG_SYSTEMD_UNIT @$(call install_copy, rsyslog, 0, 0, 0644, -, \ /lib/systemd/system/rsyslog.service) @$(call install_link, rsyslog, ../rsyslog.service, \ /lib/systemd/system/multi-user.target.wants/rsyslog.service) +endif @for plugin in $(RSYSLOG_PLUGINS-y); do \ $(call install_copy, rsyslog, 0, 0, 0644, -, \ |