diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2012-07-24 01:49:35 -0400 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2012-07-24 01:49:35 -0400 |
commit | 1cead1573a8ef45458e5ddfae0f3bab606930ae0 (patch) | |
tree | 508c28b7a207a9ac2e2d52085b13f38c5b1633a6 | |
parent | added nslcd user (diff) | |
download | prometheanfire-1cead1573a8ef45458e5ddfae0f3bab606930ae0.tar.gz prometheanfire-1cead1573a8ef45458e5ddfae0f3bab606930ae0.tar.bz2 prometheanfire-1cead1573a8ef45458e5ddfae0f3bab606930ae0.zip |
new init for new times
-rw-r--r-- | sys-auth/nss-ldapd/Manifest | 3 | ||||
-rw-r--r-- | sys-auth/nss-ldapd/files/nslcd-init | 35 | ||||
-rw-r--r-- | sys-auth/nss-ldapd/nss-ldapd-0.8.10.ebuild | 2 |
3 files changed, 38 insertions, 2 deletions
diff --git a/sys-auth/nss-ldapd/Manifest b/sys-auth/nss-ldapd/Manifest index 90bf427..5d7ce43 100644 --- a/sys-auth/nss-ldapd/Manifest +++ b/sys-auth/nss-ldapd/Manifest @@ -1,7 +1,8 @@ +AUX nslcd-init 801 RMD160 60adf68d26855510d54f101f5ce19aaa868b382f SHA1 06ec72a022f356c44c16f26bd96f69d059efbfbe SHA256 ef35ee0b781d63b84faeef90f744622008cfbbed9f37b73804cb5b27f90e112a AUX nslcd.rc 803 RMD160 d6a0b5f6fc9649041a27e538ab145814506f45e7 SHA1 eaa8374cf59e00384f1f150389627f20a5da57ff SHA256 badab5c2c2322efa8071ade3b78f3d65a1fa018ee214e4d60c707d568a16d6e1 DIST nss-ldapd-0.6.7.tar.gz 376893 RMD160 e8494ae71a23d1e9f458e4adb5446dc128262398 SHA1 dd984b9c53832cef445411e166f1f8f6117350cb SHA256 322803b7dd29107d3cec961527166c9b3440786f8a0cdb79fc5a23a62fb1c7fe DIST nss-pam-ldapd-0.8.10.tar.gz 475884 RMD160 54f5c95f6f4b656943e562062600a44e3153d1bb SHA1 4dd50c0537a13f454625e0325b8c863e5adb48a8 SHA256 673a5e235a40fd9aac74082bc64d2ac2280fc155fb00b21092650d2c963e79cc EBUILD nss-ldapd-0.6.7-r1.ebuild 1561 RMD160 e0de5ad8fb76539842e4917623f066d552be2fca SHA1 8094553e57fce2a126c09d1f4cbb4cb84fe42f3c SHA256 d1d328e1687afa791a7019edd1320828e1cd5522b815b89b3221f7b4d2bf8a1d -EBUILD nss-ldapd-0.8.10.ebuild 2059 RMD160 f0033feac1c1b059ea564bb4e7fddb4019781e24 SHA1 9f80176983e4a8005194f3541efc41a7bac71b4f SHA256 42e4218f9857180c112291a1096515d54a9dc3cda70b79e44c98e9976a873438 +EBUILD nss-ldapd-0.8.10.ebuild 2061 RMD160 760dfdbb81bbc2a9c0e1e7006c5602803a0d5b4f SHA1 78e53113e5a0039e172513a30ca49368bc202c34 SHA256 468edf625e02482a81f5c2b250128c5577be8248d2462d616bbdc9bca278462f MISC ChangeLog 1211 RMD160 dc96c3f3d23eff8205301a224c33cf69ed6af2d8 SHA1 3b6b0824020bac4458f8db504c6fc9019c9c57b3 SHA256 adc8245ed4b049efa8088dd65f300f961003d5d7d7a04aadcd2569ac8b7de928 MISC metadata.xml 241 RMD160 302a6739b992f56b7d925e6ab9247442b4a701c6 SHA1 2341ebe0fd6da8e34680bd8f3c2fa9569781b565 SHA256 58c2206a9844c7fbfd2ffb5ae2431a552d3d1207dc96aaa94f16ce2c501be545 diff --git a/sys-auth/nss-ldapd/files/nslcd-init b/sys-auth/nss-ldapd/files/nslcd-init new file mode 100644 index 0000000..85a5c69 --- /dev/null +++ b/sys-auth/nss-ldapd/files/nslcd-init @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-ldapd/files/nslcd.rc,v 1.2 2008/12/05 21:12:52 cardoe Exp $ + +extra_commands="checkconfig" + +depend() { + need net + use dns logger +} + +checkconfig() { + if [ ! -f /etc/nslcd.conf ] ; then + eerror "Please create /etc/nslcd.conf" + eerror "Example config: /usr/share/nss-ldapd/nslcd.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting nslcd" + start-stop-daemon --start --pidfile /var/run/nslcd/nslcd.pid \ + --exec /usr/sbin/nslcd + eend $? "Failed to start nslcd" +} + +stop() { + ebegin "Stopping nslcd" + start-stop-daemon --stop --pidfile /var/run/nslcd/nslcd.pid + eend $? "Failed to stop nslcd" +} diff --git a/sys-auth/nss-ldapd/nss-ldapd-0.8.10.ebuild b/sys-auth/nss-ldapd/nss-ldapd-0.8.10.ebuild index 27224c8..ee76916 100644 --- a/sys-auth/nss-ldapd/nss-ldapd-0.8.10.ebuild +++ b/sys-auth/nss-ldapd/nss-ldapd-0.8.10.ebuild @@ -58,7 +58,7 @@ src_install() { keepdir /var/run/nslcd # init script - newinitd "${FILESDIR}"/nslcd.rc nslcd + newinitd "${FILESDIR}"/nslcd-init nslcd # make an example copy insinto /usr/share/nss-ldapd |