aboutsummaryrefslogtreecommitdiff
path: root/package/exim/exim.mk
diff options
context:
space:
mode:
authorGravatar Alex Suykov <alex.suykov@gmail.com>2015-05-23 13:03:27 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-13 19:05:23 +0200
commitb52d96ab4ed5e3ea8e993283a14cd2999aea10ad (patch)
treee173413a3ce3bf396eb26b2ed2d99a3c0f3ff137 /package/exim/exim.mk
parent61a9a4cb29bd115b6255db682ef10442f1309682 (diff)
downloadbuildroot-b52d96ab4ed5e3ea8e993283a14cd2999aea10ad.tar.gz
buildroot-b52d96ab4ed5e3ea8e993283a14cd2999aea10ad.tar.bz2
exim: systemd support
Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/exim/exim.mk')
-rw-r--r--package/exim/exim.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 8ad0328d34..d8f41b04d6 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -133,4 +133,12 @@ define EXIM_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S86exim
endef
+define EXIM_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 package/exim/exim.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/exim.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf /usr/lib/systemd/system/exim.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/exim.service
+endef
+
$(eval $(generic-package))