blob: 6b6c70cde4bb3452d10a0cce9f3c208d115fbab3 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/horde-chora/horde-chora-1.2-r1.ebuild,v 1.1 2003/04/08 21:50:17 alron Exp $
DESCRIPTION="Chora ${PV} is the Horde CVS viewer."
HOMEPAGE="http://www.horde.org"
P=chora-1.2
SRC_URI="ftp://ftp.horde.org/pub/chora/tarballs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"
DEPEND=""
RDEPEND=">=net-www/horde-2.2.1
>=app-text/rcs-5.7-r1
>=dev-util/cvs-1.11.2"
IUSE=""
find_http_root() {
HTTPD_ROOT=`grep apache /etc/passwd | cut -d: -f6`/htdocs
if [ -z "${HTTPD_ROOT}" ]; then
eerror "HTTPD_ROOT is null! Using defaults."
eerror "You probably want to check /etc/passwd"
HTTPD_ROOT="/home/httpd/htdocs"
fi
REGISTRY=${HTTPD_ROOT}/horde/config/registry.php
[ -f ${REGISTRY} ] || REGISTRY=${HTTPD_ROOT}/horde/config/registry.php.dist
}
src_compile() {
echo "Nothing to compile"
}
src_install () {
find_http_root
# detecting apache usergroup
GID=`grep apache /etc/group |cut -d: -f3`
if [ -z "${GID}" ]; then
einfo "Using default GID of 81 for Apache"
GID=81
fi
dodir ${HTTPD_ROOT}/horde/chora
cp -r . ${D}/${HTTPD_ROOT}/horde/chora
# protecting files
chown -R root.${GID} ${D}/${HTTPD_ROOT}/horde/chora
find ${D}/${HTTPD_ROOT}/horde/chora/ -type f -exec chmod 0640 {} \;
find ${D}/${HTTPD_ROOT}/horde/chora/ -type d -exec chmod 0750 {} \;
}
pkg_postinst() {
find_http_root
einfo "Please read ${HTTPD_ROOT}/horde/chora/docs/INSTALL !"
}
|