Compare commits

...
Author SHA1 Message Date
Allan McRae 788aadfe4d Install nscd systemd files
Install nscd systemd services file and tmpfile when glibc is configured with
--with-systemdsystemunitdir=<dir>
2015-02-08 19:57:54 +10:00
Mike Frysinger 1d77d86816 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.
2015-02-08 19:57:38 +10:00
6 changed files with 44 additions and 0 deletions
+2
View File
@@ -306,6 +306,8 @@ ifndef sysincludedir
sysincludedir = /usr/include
endif
# Directory to install systemd service files
inst_systemdsystemunitdir = $(install_root)$(systemd-system-unit-dir)
# Commands to install files.
ifndef INSTALL_DATA
+1
View File
@@ -94,6 +94,7 @@ use-nscd = @use_nscd@
build-hardcoded-path-in-tests= @hardcoded_path_in_tests@
build-pt-chown = @build_pt_chown@
enable-lock-elision = @enable_lock_elision@
systemd-system-unit-dir = @systemdsystemunitdir@
# Build tools.
CC = @CC@
Vendored
+14
View File
@@ -675,6 +675,7 @@ bindnow
enable_lock_elision
hardcoded_path_in_tests
use_default_link
systemdsystemunitdir
sysheaders
with_fp
READELF
@@ -753,6 +754,7 @@ with_fp
with_binutils
with_selinux
with_headers
with_systemdsystemunitdir
with_default_link
enable_sanity_checks
enable_shared
@@ -1454,6 +1456,8 @@ Optional Packages:
--with-selinux if building with SELinux support
--with-headers=PATH location of system headers to use (for example
/usr/src/linux/include) [default=compiler default]
--with-systemdsystemunitdir=DIR
directory for systemd service files
--with-default-link do not use explicit linker scripts
--with-cpu=CPU select code for CPU variant
@@ -3422,6 +3426,16 @@ fi
# Check whether --with-systemdsystemunitdir was given.
if test "${with_systemdsystemunitdir+set}" = set; then :
withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
else
systemdsystemunitdir=''
fi
# Check whether --with-default-link was given.
if test "${with_default_link+set}" = set; then :
+7
View File
@@ -127,6 +127,13 @@ AC_ARG_WITH([headers],
[sysheaders=''])
AC_SUBST(sysheaders)
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
[directory for systemd service files]),
[systemdsystemunitdir=$withval],
[systemdsystemunitdir=''])
AC_SUBST(systemdsystemunitdir)
AC_SUBST(use_default_link)
AC_ARG_WITH([default-link],
AC_HELP_STRING([--with-default-link],
+16
View File
@@ -26,6 +26,11 @@ 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
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
@@ -104,3 +109,14 @@ $(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)
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
+4
View 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