diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-10-06 08:51:11 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-10-06 08:51:11 +0000 |
commit | a67774132dab9e5371c21bf7b64f50cd0730dbe1 (patch) | |
tree | fd5d8f4899ab81436ed0aefa5fcc245215e0dbeb /sys-libs | |
parent | Add unit file (#487070) (diff) | |
download | gentoo-2-a67774132dab9e5371c21bf7b64f50cd0730dbe1.tar.gz gentoo-2-a67774132dab9e5371c21bf7b64f50cd0730dbe1.tar.bz2 gentoo-2-a67774132dab9e5371c21bf7b64f50cd0730dbe1.zip |
Add unit file (#479496 by Alexander Tsoy, redneb, Charles Nérot and SpanKY)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/glibc/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/glibc/files/eblits/src_install.eblit | 7 | ||||
-rw-r--r-- | sys-libs/glibc/files/nscd.service | 15 | ||||
-rw-r--r-- | sys-libs/glibc/files/nscd.tmpfilesd | 4 | ||||
-rw-r--r-- | sys-libs/glibc/glibc-2.16.0.ebuild | 4 | ||||
-rw-r--r-- | sys-libs/glibc/glibc-2.17.ebuild | 4 | ||||
-rw-r--r-- | sys-libs/glibc/glibc-2.18.ebuild | 4 |
7 files changed, 37 insertions, 8 deletions
diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog index ad186ad0924a..fed19659cff9 100644 --- a/sys-libs/glibc/ChangeLog +++ b/sys-libs/glibc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/glibc # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.951 2013/09/30 05:28:26 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.952 2013/10/06 08:51:11 pacho Exp $ + + 06 Oct 2013; Pacho Ramos <pacho@gentoo.org> +files/nscd.service, + +files/nscd.tmpfilesd, files/eblits/src_install.eblit, glibc-2.16.0.ebuild, + glibc-2.17.ebuild, glibc-2.18.ebuild: + Add unit file (#479496 by Alexander Tsoy, redneb, Charles Nérot and SpanKY) 30 Sep 2013; Mike Frysinger <vapier@gentoo.org> files/eblits/src_compile.eblit: diff --git a/sys-libs/glibc/files/eblits/src_install.eblit b/sys-libs/glibc/files/eblits/src_install.eblit index 94e2afe81050..640470b4a985 100644 --- a/sys-libs/glibc/files/eblits/src_install.eblit +++ b/sys-libs/glibc/files/eblits/src_install.eblit @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit,v 1.31 2013/06/29 03:22:32 heroxbd Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit,v 1.32 2013/10/06 08:51:11 pacho Exp $ toolchain-glibc_src_install() { local GBUILDDIR @@ -170,6 +170,11 @@ toolchain-glibc_src_install() { ) version_is_at_least 2.16 || nscd_args+=( -e 's: --foreground : :' ) sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd + + if [[ $(type -t systemd_dounit) == "function" ]] ; then + systemd_dounit "${FILESDIR}"/nscd.service || die + systemd_newtmpfilesd "${FILESDIR}"/nscd.tmpfilesd nscd.conf || die + fi else # Do this since extra/etc/*.conf above might have nscd.conf. rm -f "${ED}"/etc/nscd.conf diff --git a/sys-libs/glibc/files/nscd.service b/sys-libs/glibc/files/nscd.service new file mode 100644 index 000000000000..25a3b1d9be0a --- /dev/null +++ b/sys-libs/glibc/files/nscd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Name Service Cache Daemon +After=network.target + +[Service] +ExecStart=/usr/sbin/nscd -F +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 + +[Install] +WantedBy=multi-user.target diff --git a/sys-libs/glibc/files/nscd.tmpfilesd b/sys-libs/glibc/files/nscd.tmpfilesd new file mode 100644 index 000000000000..52edbba673cf --- /dev/null +++ b/sys-libs/glibc/files/nscd.tmpfilesd @@ -0,0 +1,4 @@ +# Configuration to create /run/nscd directory +# Used as part of systemd's tmpfiles + +d /run/nscd 0755 root root diff --git a/sys-libs/glibc/glibc-2.16.0.ebuild b/sys-libs/glibc/glibc-2.16.0.ebuild index 707ec70d5eb2..a2838884404c 100644 --- a/sys-libs/glibc/glibc-2.16.0.ebuild +++ b/sys-libs/glibc/glibc-2.16.0.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.16.0.ebuild,v 1.24 2013/06/23 05:03:42 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.16.0.ebuild,v 1.25 2013/10/06 08:51:11 pacho Exp $ -inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib unpacker multiprocessing +inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib systemd unpacker multiprocessing DESCRIPTION="GNU libc6 (also called glibc2) C library" HOMEPAGE="http://www.gnu.org/software/libc/libc.html" diff --git a/sys-libs/glibc/glibc-2.17.ebuild b/sys-libs/glibc/glibc-2.17.ebuild index c87389409125..c05bb4153d1e 100644 --- a/sys-libs/glibc/glibc-2.17.ebuild +++ b/sys-libs/glibc/glibc-2.17.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.17.ebuild,v 1.18 2013/08/16 21:30:26 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.17.ebuild,v 1.19 2013/10/06 08:51:11 pacho Exp $ -inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib unpacker multiprocessing +inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib systemd unpacker multiprocessing DESCRIPTION="GNU libc6 (also called glibc2) C library" HOMEPAGE="http://www.gnu.org/software/libc/libc.html" diff --git a/sys-libs/glibc/glibc-2.18.ebuild b/sys-libs/glibc/glibc-2.18.ebuild index b8234a5f4422..5ba92eaa278e 100644 --- a/sys-libs/glibc/glibc-2.18.ebuild +++ b/sys-libs/glibc/glibc-2.18.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.18.ebuild,v 1.3 2013/09/11 18:05:42 zorry Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.18.ebuild,v 1.4 2013/10/06 08:51:11 pacho Exp $ -inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib unpacker multiprocessing +inherit eutils versionator toolchain-funcs flag-o-matic gnuconfig multilib systemd unpacker multiprocessing DESCRIPTION="GNU libc6 (also called glibc2) C library" HOMEPAGE="http://www.gnu.org/software/libc/libc.html" |