summaryrefslogtreecommitdiff
blob: 455c7fa0744d2d013bc2be7f60de5d087d292ee1 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/back-end/back-end-0.7.1.2.ebuild,v 1.4 2005/01/10 03:53:43 weeve Exp $

inherit webapp

S=${WORKDIR}/${PN}${PV}

IUSE="ldap"

DESCRIPTION="Back-End is a multilingual Web publishing/content management system"
HOMEPAGE="http://back-end.org/"
SRC_URI="mirror://sourceforge//${PN}/${PN}${PV}.tar.gz"

KEYWORDS="~x86 ~ppc ~sparc"

RDEPEND="
	>=virtual/php-4.1
	>=net-www/apache-1.3
	>=dev-db/mysql-3.23
	ldap? ( net-nds/openldap )
"

LICENSE="GPL-2"

src_unpack() {
	unpack ${A}
	cd ${S}
	rm -f Makefile
}

src_install() {
	webapp_src_preinst
	local file

	dodoc ABOUT_PSL_AND_BE CHANGES NOTE2BE4USERS README UPGRADE_FROM_048 \
		doc/Bibliography.txt doc/CREDITS doc/README.1st
	dohtml INSTALL.html INSTALL_ES.html

	dodir ${MY_HOSTROOTDIR}/${PN}
	cp -R class cvs2cl.pl makecl.sh tables ${D}/${MY_HOSTROOTDIR}/${PN}
	cp -R public_html/* ${D}/${MY_HTDOCSDIR}

	dodir ${MY_HTDOCSDIR}/updir/dynamicPDFcache ${MY_HTDOCSDIR}/updir/images/en
	webapp_serverowned ${MY_HTDOCSDIR}/config.ini.php
	webapp_serverowned ${MY_HTDOCSDIR}/updir
	cd public_html/updir
	for file in `find`; do
		webapp_serverowned ${MY_HTDOCSDIR}/updir/${file}
	done

	webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
	webapp_hook_script ${FILESDIR}/reconfig
	webapp_src_install
}