about summary refs log tree commit diff
path: root/nscd/Makefile
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-02-08 17:18:16 +1000
committerAllan McRae <allan@archlinux.org>2015-02-08 19:57:54 +1000
commit788aadfe4dab72f030f2c9352c83ea6e38b61509 (patch)
treec1164b4b0d23f65334ef4a5c608e901a557fea83 /nscd/Makefile
parent1d77d8681654192d5207a6993314a091972a1f82 (diff)
downloadglibc-allan/config-files.tar.gz
glibc-allan/config-files.tar.xz
glibc-allan/config-files.zip
Install nscd systemd files allan/config-files
Install nscd systemd services file and tmpfile when glibc is configured with
--with-systemdsystemunitdir=<dir>
Diffstat (limited to 'nscd/Makefile')
-rw-r--r--nscd/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/nscd/Makefile b/nscd/Makefile
index 184c921b12..1d65c00ba2 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -27,6 +27,10 @@ routines := nscd_getpw_r nscd_getgr_r nscd_gethst_r nscd_getai \
 	    nscd_initgroups nscd_getserv_r nscd_netgroup
 aux	:= nscd_helper
 install-others = $(inst_sysconfdir)/nscd.conf
+ifneq ($(systemd-system-unit-dir),)
+install-others += $(inst_systemdsystemunitdir)/nscd.service
+install-others += $(inst_libdir)/tmpfiles.d/nscd.conf
+endif
 endif
 
 # To find xmalloc.c
@@ -108,3 +112,11 @@ endif
 
 $(inst_sysconfdir)/nscd.conf: nscd.conf $(+force)
 	$(do-install)
+
+ifneq ($(systemd-system-unit-dir),)
+$(inst_systemdsystemunitdir)/nscd.service: nscd.service $(+force)
+	$(do-install)
+
+$(inst_libdir)/tmpfiles.d/nscd.conf: nscd.tmpfiles $(+force)
+	$(do-install)
+endif