diff options
author | Alex Suykov <alex.suykov@gmail.com> | 2015-05-23 13:14:42 +0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-05 16:10:52 +0200 |
commit | ae0d54ab77a1dcb4af3b5515d3e3a99203e100f2 (patch) | |
tree | 65547346edc8d6139efac2755d1c913b36d77c3e /package/samba4 | |
parent | 63b1fec279500eb8e8827f6db228709c1dcde566 (diff) | |
download | buildroot-ae0d54ab77a1dcb4af3b5515d3e3a99203e100f2.tar.gz buildroot-ae0d54ab77a1dcb4af3b5515d3e3a99203e100f2.zip |
samba4: install systemd files
The package comes with usable .service files for smbd, nmbd and
winbind, but does not install them.
[Thomas: use relative paths for the symbolic links.]
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/samba4')
-rw-r--r-- | package/samba4/samba4.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/samba4/samba4.mk b/package/samba4/samba4.mk index d7d5299cdc..7d10a0c2e8 100644 --- a/package/samba4/samba4.mk +++ b/package/samba4/samba4.mk @@ -155,4 +155,20 @@ define SAMBA4_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S91smb endef +define SAMBA4_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 $(@D)/packaging/systemd/nmb.service \ + $(TARGET_DIR)/usr/lib/systemd/system/nmb.service + $(INSTALL) -D -m 644 $(@D)/packaging/systemd/smb.service \ + $(TARGET_DIR)/usr/lib/systemd/system/smb.service + $(INSTALL) -D -m 644 $(@D)/packaging/systemd/winbind.service \ + $(TARGET_DIR)/usr/lib/systemd/system/winbind.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -sf ../../../../usr/lib/systemd/system/nmb.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nmb.service + ln -sf ../../../../usr/lib/systemd/system/smb.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/smb.service + ln -sf ../../../../usr/lib/systemd/system/winbind.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/winbind.service +endef + $(eval $(generic-package)) |