This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch allan/config-files created. glibc-2.17-637-g8de398d


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, allan/config-files has been created
        at  8de398d9ee510566e7bb5a9f2a0ae3d8f5746c76 (commit)

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8de398d9ee510566e7bb5a9f2a0ae3d8f5746c76

commit 8de398d9ee510566e7bb5a9f2a0ae3d8f5746c76
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Tue May 14 09:37:07 2013 +1000

    Install config files
    
    glibc comes with a bunch of config files that every distro hand installs
    because glibc itself doesn't take care of it.  Update glibc to do the work.
    
    2011-09-19  Mike Frysinger  <vapier@gentoo.org>
    
    	* nscd/Makefile (install-others): Define.
    	($(inst_sysconfdir)/nscd.conf): New rule.
    	* posix/Makefile (install-others): Define.
    	($(inst_sysconfdir)/gai.conf): New rule.

diff --git a/nscd/Makefile b/nscd/Makefile
index 7b36cc9..c6362d2 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -26,6 +26,7 @@ ifneq ($(use-nscd),no)
 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
 endif
 
 # To find xmalloc.c
@@ -105,3 +106,6 @@ $(objpfx)nscd: $(shared-thread-library) $(common-objpfx)nis/libnsl.so
 else
 $(objpfx)nscd: $(static-thread-library) $(common-objpfx)nis/libnsl.a
 endif
+
+$(inst_sysconfdir)/nscd.conf: nscd.conf $(+force)
+	$(do-install)
diff --git a/posix/Makefile b/posix/Makefile
index 8265e76..2f151c3 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -97,6 +97,7 @@ tests		+= $(tests-static)
 others		:= getconf
 install-bin	:= getconf
 install-others-programs	:= $(inst_libexecdir)/getconf
+install-others = $(inst_sysconfdir)/gai.conf
 
 before-compile	:= testcases.h ptestcases.h
 
@@ -304,6 +305,9 @@ $(inst_libexecdir)/getconf: $(inst_bindir)/getconf \
 	  mv -f $@/$$spec.new $@/$$spec; \
 	done < $(objpfx)getconf.speclist
 
+$(inst_sysconfdir)/gai.conf: gai.conf $(+force)
+	$(do-install)
+
 $(objpfx)getconf.speclist: getconf-speclist.c posix-envs.def
 	$(compile.c) -E -o - \
 	    | sed -n -e '/@@@PRESENT_/s/@@@PRESENT_//p' > $@.new

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8b2972c7c7d05ea6fae1c7a3de2e77062f7f5d09

commit 8b2972c7c7d05ea6fae1c7a3de2e77062f7f5d09
Author: Allan McRae <allan@archlinux.org>
Date:   Tue Apr 30 16:02:53 2013 +1000

    Add systemd unit file for nscd
    
    Provide an example systemd unit and tmpfile for running nscd.
    
    2013-05-10  Allan McRae  <allan@archlinux.org>
    
    	* nscd/nscd.service: New file.
    	* nscd/nscd.tmpfiles: New file.

diff --git a/nscd/nscd.service b/nscd/nscd.service
new file mode 100644
index 0000000..875570d
--- /dev/null
+++ b/nscd/nscd.service
@@ -0,0 +1,18 @@
+# systemd service file for nscd
+
+[Unit]
+Description=Name Service Cache Daemon
+ 
+[Service]
+Type=simple
+ExecStart=/usr/sbin/nscd --foreground
+ExecStop=/usr/sbin/nscd --shutdown
+ExecReload=/usr/sbin/nscd -i passwd
+ExecReload=/usr/sbin/nscd -i group
+ExecReload=/usr/sbin/nscd -i hosts
+ExecReload=/usr/sbin/nscd -i services
+Restart=always
+PIDFile=/run/nscd/nscd.pid
+ 
+[Install]
+WantedBy=multi-user.target
diff --git a/nscd/nscd.tmpfiles b/nscd/nscd.tmpfiles
new file mode 100644
index 0000000..52edbba
--- /dev/null
+++ b/nscd/nscd.tmpfiles
@@ -0,0 +1,4 @@
+# Configuration to create /run/nscd directory
+# Used as part of systemd's tmpfiles
+
+d /run/nscd 0755 root root

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]