blob: c5a1cbd42d5b232640129bb33249a982393a862c (
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
59
60
61
62
63
64
65
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit webapp
MY_P="ldap-account-manager-${PV}"
DESCRIPTION="Frontend for managing accounts stored in an LDAP directory."
HOMEPAGE="http://lam.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
>=dev-lang/php-5.6[ldap,nls,session,xml]
virtual/httpd-php
"
S="${WORKDIR}"/${MY_P}
src_prepare() {
default
for conffile in config/*.cfg.sample
do
mv ${conffile} ${conffile/.sample/}
done
}
src_compile() {
:
}
src_install() {
webapp_src_preinst
local docs="copyright HISTORY README VERSION"
dodoc ${docs}
docinto html
dodoc -r docs/{devel,manual}
einfo "Copying VERSION file"
cp VERSION "${D}${MY_HTDOCSDIR}"
rm -f ${docs}
einfo "Copying main files"
cp -r . "${D}${MY_HTDOCSDIR}"
cd "${D}${MY_HTDOCSDIR}"
webapp_serverowned "${MY_HTDOCSDIR}"/config/config.cfg
webapp_serverowned "${MY_HTDOCSDIR}"/sess
webapp_serverowned "${MY_HTDOCSDIR}"/tmp
webapp_serverowned "${MY_HTDOCSDIR}"/config
webapp_serverowned "${MY_HTDOCSDIR}"/lib
webapp_configfile "${MY_HTDOCSDIR}"/config/config.cfg
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
webapp_src_install
}
|