blob: 58b83c6927948257ec614099bc417c49969fec8d (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/bugport/bugport-1.146.ebuild,v 1.2 2007/08/05 01:21:27 jmglov Exp $
inherit webapp
DESCRIPTION="Web-based system for managing tasks and defects throughout the software development process"
HOMEPAGE="http://www.incogen.com/index.php?type=General¶m=bugport"
SRC_URI="http://www.incogen.com/downloads/${PN}/${PN}_${PV}.tar.gz"
LICENSE="BSD"
KEYWORDS="x86 ~ppc"
IUSE=""
RDEPEND=">=virtual/php-4.3
dev-php/adodb"
DEPEND=""
S=${WORKDIR}/${PN}_${PV}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
# prepare ${D} for our arrival
webapp_src_preinst
# Fix INSTALL.txt to let the user know where the SQL scripts live
sed -i \
-e "s|create_tables.sql|${MY_SQLSCRIPTSDIR}/mysql/${PV}_create.sql|" \
INSTALL.txt
# Add the post-installation instructions
webapp_postinst_txt en INSTALL.txt
# Install documents
dodoc *.txt
rm *.txt
docinto devel-docs
dodoc devel-docs/*
rm -rf devel-docs
rm -rf install-gentoo-unsupported
# Install SQL scripts
#webapp_sqlscript mysql add_indices.sql
#webapp_sqlscript mysql alter_user_table.sql
#webapp_sqlscript mysql create_config_table.sql
webapp_sqlscript mysql create_tables.sql
# Fix config file to know where to find adodb
sed -i \
-e 's|^\(# \+\)\?\$adoDir.\+$|$adoDir = "/usr/lib/php/adodb/"; # DO NOT CHANGE!|' \
conf/config.php
# Install
cp -R . ${D}${MY_HTDOCSDIR}
# Identify the configuration files that this app uses
webapp_configfile ${MY_HTDOCSDIR}/conf/config.php
webapp_configfile ${MY_HTDOCSDIR}/conf/configuration.php
# Let webapp.eclass do the rest
webapp_src_install
}
|