# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI="5"
+
+inherit eutils
+
DESCRIPTION="Shell scripts to manage POSIX accounts in an LDAP."
HOMEPAGE="http://contribs.martymac.com/"
SRC_URI="http://contribs.martymac.com/${PN}/${P}.tgz"
ETCDIR="/etc/${PN}"
ETCFILE="ldapscripts.conf"
-src_unpack() {
- unpack ${A}
-
- # Prepare sources, as the install script would do it
- cd "${S}"
+src_prepare() {
sed -i.orig -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${RUNTIMEDIR}/${RUNTIMEFILE}\"|g" bin/*
sed -i.orig -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/${ETCFILE}\"|g" etc/*
}