blob: 2334623fe84b5646f02602e80ca296af55089dcf (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/bugs-bug-genie/bugs-bug-genie-1.5.ebuild,v 1.5 2005/02/17 17:20:43 robbat2 Exp $
inherit webapp
MY_PV=${PV/./_}
S=${WORKDIR}
IUSE=""
DESCRIPTION="BUGS - The Bug Genie"
HOMEPAGE="http://bugs-bug-genie.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/bugs_${MY_PV}.zip"
KEYWORDS="~x86 ~ppc ~sparc"
RDEPEND=">=net-www/apache-1.3
>=virtual/php-4.2.1
>=dev-db/mysql-4"
DEPEND="app-arch/unzip
sys-apps/sed"
LICENSE="MPL-1.1"
src_unpack() {
unpack ${A}
cd ${S}
# fix location of userbase_connect. see bug #50319
sed -e "s|userbase_connect.inc.php|include/userbase_connect.inc.php|g" -i include/constants.inc.php
# mysql_create_db is not there in MySQL 4
sed -e "s|mysql_create_db(\"\$db_name\");|mysql_query\(\"create database \`\" . \$db_name . \"\`\"\);|
s|\$dontDrawLeft = \"truly\";|\$dontDrawLeft = \"truly\";\n\$page = \"index\";|" -i install.php
# userbase_connect.inc.php is missing
echo '<?php if ($isInstall != "truly") trigger_error("Please use install.php to configure BUGS for your system!", E_USER_ERROR); ?>' > include/userbase_connect.inc.php
}
src_install() {
webapp_src_preinst
dodoc DISCLAIMER.TXT UPGRADE.TXT README.TXT changelog*
cp -R LICENSE.TXT [[:lower:]][[:lower:]]* ${D}/${MY_HTDOCSDIR}
rm -f ${D}/${MY_HTDOCSDIR}/changelog*
webapp_serverowned ${MY_HTDOCSDIR}/include/userbase_connect.inc.php
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
webapp_src_install
}
|