blob: 8aa0d8534e719f4eca02af537de96127b4df3695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 2006-2006 Mikael Lammentausta
# Distributed under the terms of the GNU General Public License v2
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"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="net-nds/openldap
dev-libs/uulib"
RUNTIMEDIR="/var/run/${PN}"
RUNTIMEFILE="runtime"
ETCDIR="/etc/${PN}"
ETCFILE="ldapscripts.conf"
src_unpack() {
unpack ${A}
# patch with fixes to problematic chown $HOME, add support to gecos
# specification. patches are sent upstream.
cd ${S}/bin
epatch "${FILESDIR}/ldapadduser.patch"
cd ${S}/etc
epatch "${FILESDIR}/ldapscripts.conf.patch"
# Prepare sources, as the install script would do it
cd ${S}
sed -i.orig -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${RUNTIMEDIR}/${RUNTIMEFILE}\"|g" bin/*
sed -i.orig -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/${ETCFILE}\"|g" etc/*
}
src_install() {
dobin bin/*
doman man/man1/*
dodir ${RUNTIMEDIR}
insinto ${RUNTIMEDIR}
doins etc/${RUNTIMEFILE}
dodir ${ETCDIR}
insinto ${ETCDIR}
doins etc/${ETCFILE}
dodoc CHANGELOG README TODO VERSION
}
|