1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Shell scripts to manage POSIX accounts in an LDAP."
8 HOMEPAGE="http://contribs.martymac.com/"
9 SRC_URI="http://contribs.martymac.com/${PN}/${P}.tgz"
17 RDEPEND="net-nds/openldap
20 RUNTIMEDIR="/var/run/${PN}"
23 ETCFILE="ldapscripts.conf"
28 # patch with fixes to problematic chown $HOME, add support to gecos
29 # specification. patches are sent upstream.
31 epatch "${FILESDIR}/ldapadduser.patch"
33 epatch "${FILESDIR}/ldapscripts.conf.patch"
35 # Prepare sources, as the install script would do it
37 sed -i.orig -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${RUNTIMEDIR}/${RUNTIMEFILE}\"|g" bin/*
38 sed -i.orig -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/${ETCFILE}\"|g" etc/*
46 doins etc/${RUNTIMEFILE}
51 dodoc CHANGELOG README TODO VERSION