This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] install config files
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 19 Sep 2011 13:35:03 -0400
- Subject: [PATCH] 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.
-mike
2011-09-19 Mike Frysinger <vapier@gentoo.org>
* nscd/Makefile (install-others): Define.
($(inst_sysconfdir)/nscd.conf): New rule.
* nss/Makefile (install-others): Define.
($(inst_sysconfdir)/nssswitch.conf): New rule.
* posix/Makefile (install-others): Define.
($(inst_sysconfdir)/gai.conf): New rule.
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -24,6 +24,7 @@ subdir := nscd
routines := nscd_getpw_r nscd_getgr_r nscd_gethst_r nscd_getai \
nscd_initgroups nscd_getserv_r
aux := nscd_helper
+install-others = $(inst_sysconfdir)/nscd.conf
include ../Makeconfig
@@ -140,3 +141,6 @@ else
$(objpfx)nscd: $(common-objpfx)rt/librt.a $(static-thread-library) \
$(common-objpfx)nis/libnsl.a
endif
+
+$(inst_sysconfdir)/nscd.conf: nscd.conf $(+force)
+ $(do-install)
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -39,6 +39,7 @@ databases = proto service hosts network grp pwd rpc ethers \
others := getent makedb
install-bin := getent makedb
+install-others = $(inst_sysconfdir)/nsswitch.conf
makedb-modules = xmalloc hash-string
extra-objs += $(makedb-modules:=.o)
@@ -119,6 +120,9 @@ $(objpfx)makedb: $(makedb-modules:%=$(objpfx)%.o)
$(inst_vardbdir)/Makefile: db-Makefile $(+force)
$(do-install)
+$(inst_sysconfdir)/nsswitch.conf: nsswitch.conf $(+force)
+ $(do-install)
+
distribute += nss_test1.c
CFLAGS-nss_test1.c = -DNOT_IN_libc=1
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -103,6 +103,7 @@ endif
others := getconf
install-bin := getconf
install-others-programs := $(inst_libexecdir)/getconf
+install-others = $(inst_sysconfdir)/gai.conf
before-compile := testcases.h ptestcases.h
@@ -320,6 +321,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: $(objpfx)getconf
ifeq (no,$(cross-compiling))
LC_ALL=C GETCONF_DIR=/dev/null \