]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Install config files
authorMike Frysinger <vapier@gentoo.org>
Mon, 13 May 2013 23:37:07 +0000 (09:37 +1000)
committerAllan McRae <allan@archlinux.org>
Sun, 8 Feb 2015 09:57:38 +0000 (19:57 +1000)
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.

nscd/Makefile
posix/Makefile

index ede941d1b2a252de8a2cadd79c952301b0d0db6b..184c921b129c9c2254b837e1a60c62a622f4dc66 100644 (file)
@@ -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
@@ -104,3 +105,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)
index 15e8818787a8990014234647c1c3de016ea289c2..beba7e2aed6c2357e4310ed080d96d6e8c0f9ef1 100644 (file)
@@ -98,6 +98,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 $(objpfx)posix-conf-vars-def.h
 
@@ -316,6 +317,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