/[gentoo-x86]/www-apps/issue-tracker/issue-tracker-4.0.3.ebuild
Gentoo

Contents of /www-apps/issue-tracker/issue-tracker-4.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Nov 19 22:08:08 2006 UTC (7 years, 5 months ago) by rl03
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
RIP, bug #134759

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/issue-tracker/issue-tracker-4.0.3.ebuild,v 1.4 2005/07/10 01:18:16 swegener Exp $
4
5 inherit webapp-apache
6
7 DESCRIPTION="Issue tracking system"
8 HOMEPAGE="http://www.issue-tracker.com/"
9 SRC_URI="mirror://sourceforge/issue-tracker/issue-tracker-4.0.3.tar.bz2"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~x86 ppc"
13 IUSE=""
14 DEPEND=""
15 RDEPEND="virtual/php
16 || ( dev-db/mysql dev-db/postgresql )"
17
18 src_unpack() {
19 unpack ${A}
20 file ${S}/conf/const.php
21 cp ${S}/conf/const.php ${S}/conf/const.php.b0rken || die
22 sed -r 's/(Could not.*_URL_.*manually.*)\"\);/\1\";/' \
23 < ${S}/conf/const.php.b0rken \
24 > ${S}/conf/const.php || die
25 }
26
27 pkg_setup() {
28 webapp-detect || export NO_WEBSERVER=1
29 webapp-pkg_setup "${NO_WEBSERVER}"
30 einfo "Installing for ${WEBAPP_SERVER}"
31 }
32
33 src_install() {
34 webapp-detect
35 webapp-mkdirs
36
37 dodir "${HTTPD_ROOT}/issue-tracker"
38 cp -a * "${D}/${HTTPD_ROOT}/issue-tracker/"
39 rm -rf "${D}/${HTTPD_ROOT}/issue-tracker/docs"
40
41 dodoc docs/*
42
43 chown -R "${HTTPD_USER}:${HTTPD_GROUP}" "${D}/${HTTPD_ROOT}/issue-tracker/"
44 chmod 0755 "${D}/${HTTPD_ROOT}/issue-tracker"
45 find "${D}/${HTTPD_ROOT}/issue-tracker/" -type d | xargs chmod 2775
46 find "${D}/${HTTPD_ROOT}/issue-tracker/" -type f | xargs chmod 0664
47
48 }
49
50 pkg_postinst() {
51 webapp-detect
52
53 einfo "You will need to configure issue-tracker for a particular database"
54 einfo
55 einfo "(1) First, you must decide on:"
56 einfo " - a database username, <it-username>"
57 einfo " - a database name in the database, <it-dbname>"
58 einfo
59 einfo "(2) Next, you must create the database"
60 einfo
61 einfo "For MySQL:"
62 einfo "mysqladmin -p -u <it-username> create <it-dbname>"
63 einfo "mysql -p -u <it-username> <it-dbname> \\"
64 einfo " < ${HTTPD_ROOT}/issue-tracker/setup/schema.mysql"
65 einfo "mysql -p -u <it-username> <it-dbname> \\"
66 einfo " < ${HTTPD_ROOT}/issue-tracker/setup/data.sql"
67 einfo "mysql -p -u <it-username> <it-dbname> \\"
68 einfo " < ${HTTPD_ROOT}/issue-tracker/setup/indexes.sql"
69 einfo
70 einfo "For PostgreSQL:"
71 einfo "createdb -U <it-username> <it-dbname>"
72 einfo "psql -U <it-username> \\"
73 einfo " < ${HTTPD_ROOT}/issue-tracker/setup/schema.pgsql"
74 einfo "psql -U <it-username> \\"
75 einfo " < ${HTTPD_ROOT}/issue-tracker/setup/data.sql"
76 einfo "psql -U <it-username> \\"
77 einfo " < ${HTTPD_ROOT}/issue-tracker/setup/indexes.sql"
78 einfo
79 einfo "(3) Next, you will need to configure issue-tracker"
80 einfo "cp ${HTTPD_ROOT}/issue-tracker/conf/config.php-default \\"
81 einfo " ${HTTPD_ROOT}/issue-tracker/conf/config.php"
82 einfo
83 einfo "Edit ${HTTPD_ROOT}/issue-tracker/conf/config.php"
84 einfo "with name=<it-dbname>, user=<it-username> and the correct db info"
85 einfo
86 ewarn "Make sure you don't just edit the commented-out example;)"
87 einfo
88 ewarn "(4) Finally, you must log in to the issue-tracker as admin/demo, and"
89 ewarn "change the password in Preferences."
90 }

  ViewVC Help
Powered by ViewVC 1.1.20