diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2013-02-07 18:11:37 +0000 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2013-02-07 18:11:37 +0000 |
commit | 0ab88665dd69b441820996970fde518337dc592e (patch) | |
tree | fd8395ccef6c618c27f4a2bb4671df8d843f08a4 /sys-auth/nss-pam-ldapd | |
parent | fix changelog; it appears that "repoman commit -m" is not updating it. (diff) | |
download | gentoo-2-0ab88665dd69b441820996970fde518337dc592e.tar.gz gentoo-2-0ab88665dd69b441820996970fde518337dc592e.tar.bz2 gentoo-2-0ab88665dd69b441820996970fde518337dc592e.zip |
updated init script, now with more checkpath support
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
Diffstat (limited to 'sys-auth/nss-pam-ldapd')
-rw-r--r-- | sys-auth/nss-pam-ldapd/ChangeLog | 5 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/files/nslcd-init | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/sys-auth/nss-pam-ldapd/ChangeLog b/sys-auth/nss-pam-ldapd/ChangeLog index 6c53ec4501e2..5e1f6ecc900b 100644 --- a/sys-auth/nss-pam-ldapd/ChangeLog +++ b/sys-auth/nss-pam-ldapd/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-auth/nss-pam-ldapd # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.6 2013/01/20 00:44:08 prometheanfire Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.7 2013/02/07 18:11:37 prometheanfire Exp $ + + 07 Feb 2013; Matthew Thode <prometheanfire@gentoo.org> files/nslcd-init: + updating init scripts for bug 455598 20 Jan 2013; Matthew Thode <prometheanfire@gentoo.org> nss-pam-ldapd-0.8.12.ebuild: diff --git a/sys-auth/nss-pam-ldapd/files/nslcd-init b/sys-auth/nss-pam-ldapd/files/nslcd-init index 208f970890a1..67f266527302 100644 --- a/sys-auth/nss-pam-ldapd/files/nslcd-init +++ b/sys-auth/nss-pam-ldapd/files/nslcd-init @@ -1,9 +1,10 @@ #!/sbin/runscript -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd-init,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd-init,v 1.2 2013/02/07 18:11:37 prometheanfire Exp $ extra_commands="checkconfig" +cfg="/etc/nslcd.conf" depend() { need net @@ -11,8 +12,8 @@ depend() { } checkconfig() { - if [ ! -f /etc/nslcd.conf ] ; then - eerror "Please create /etc/nslcd.conf" + if [ ! -f "$cfg" ] ; then + eerror "Please create $cfg" eerror "Example config: /usr/share/nss-ldapd/nslcd.conf" return 1 fi @@ -20,6 +21,7 @@ checkconfig() { } start() { + checkpath -q -d /var/run/nslcd -o nslcd:nslcd checkconfig || return $? ebegin "Starting nslcd" |