/[gentoo-x86]/www-apps/rt/rt-3.4.2.ebuild
Gentoo

Contents of /www-apps/rt/rt-3.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 29 18:21:25 2005 UTC (14 years, 6 months ago) by rl03
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Fixed variables in reconfig hook. Closes #99853.
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.4.2.ebuild,v 1.3 2005/06/21 02:12:38 rl03 Exp $
4
5 inherit webapp eutils
6
7 IUSE="mysql postgres fastcgi"
8 #IUSE="mysql postgres fastcgi apache2"
9
10 DESCRIPTION="RT is an enterprise-grade ticketing system"
11 HOMEPAGE="http://www.bestpractical.com/rt/"
12 SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz
13 ftp://ftp.eu.uu.net/pub/unix/ticketing/${PN}/release/${P}.tar.gz
14 ftp://rhinst.ece.cmu.edu/${PN}/release/${P}.tar.gz"
15
16 KEYWORDS="~ppc ~x86"
17
18 DEPEND="
19 >=dev-lang/perl-5.8.3
20 >=dev-perl/Params-Validate-0.02
21 dev-perl/Cache-Cache
22 >=dev-perl/Exception-Class-1.14
23 >=dev-perl/HTML-Mason-1.23
24 dev-perl/MLDBM
25 dev-perl/FreezeThaw
26 >=dev-perl/Apache-Session-1.53
27 dev-perl/XML-RSS
28 >=dev-perl/HTTP-Server-Simple-0.07
29 >=dev-perl/HTTP-Server-Simple-Mason-0.05
30 dev-perl/HTML-Tree
31 dev-perl/HTML-Format
32 dev-perl/libwww-perl
33 >=dev-perl/Apache-DBI-0.92
34 >=dev-perl/DBI-1.37
35 dev-perl/Test-Inline
36 >=dev-perl/class-returnvalue-0.40
37 >=dev-perl/dbix-searchbuilder-1.27
38 dev-perl/text-template
39 dev-perl/HTML-Parser
40 >=dev-perl/HTML-Scrubber-0.08
41 >=dev-perl/log-dispatch-2.0
42 >=dev-perl/locale-maketext-lexicon-0.32
43 dev-perl/locale-maketext-fuzzy
44 >=dev-perl/MIME-tools-5.417
45 >=dev-perl/MailTools-1.60
46 dev-perl/text-wrapper
47 dev-perl/Time-modules
48 dev-perl/TermReadKey
49 >=dev-perl/Text-Quoted-1.3
50 >=dev-perl/Tree-Simple-1.04
51 dev-perl/Module-Versions-Report
52 dev-perl/Cache-Simple-TimedExpiry
53 dev-perl/XML-Simple
54 dev-perl/regexp-common
55 dev-perl/Apache-Test
56 dev-perl/WWW-Mechanize
57 dev-perl/Test-WWW-Mechanize
58 dev-perl/Module-Refresh
59
60 dev-perl/Font-AFM
61 dev-perl/text-autoformat
62 dev-perl/text-reform
63 "
64
65 RDEPEND="
66 ${DEPEND}
67 virtual/mta
68 mysql? ( >=dev-db/mysql-4.0.13 >=dev-perl/DBD-mysql-2.1018 )
69 postgres? ( >=dev-db/postgresql-7.4.2-r1 >=dev-perl/DBD-Pg-1.41 )
70 fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi )
71 !fastcgi? ( =www-apache/libapreq-1* )
72 =net-www/apache-1*"
73
74 # apache2? ( >=net-www/apache-2 >=www-apache/libapreq2 )
75 # !apache2? ( =net-www/apache-1* =www-apache/libapreq-1* )
76
77
78 LICENSE="GPL-2"
79
80 pkg_setup() {
81 webapp_pkg_setup
82
83 ewarn "RT needs MySQL with innodb support"
84 ewarn
85 ewarn "If you are upgrading from an existing _RT2_ installation,"
86 ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool,"
87 ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz"
88 ewarn "and follow the included instructions."
89 ewarn
90 enewgroup rt >/dev/null
91 }
92
93 src_unpack() {
94 unpack ${A}
95 cd ${S}
96
97 # add Gentoo-specific layout
98 cat ${FILESDIR}/${PV}/config.layout-gentoo >> config.layout
99 sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${P}|
100 s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout
101
102 }
103
104 src_compile() {
105 ./configure --enable-layout=Gentoo \
106 --with-web-user=apache \
107 --with-web-group=apache
108
109 # check for missing deps and ask to report if something is broken
110 if `make testdeps | grep "MISSING"`; then
111 ewarn "Missing Perl dependency!"
112 ewarn "Please file a bug in the Gentoo Bugzilla with the information above"
113 ewarn "and assign it to rl03@gentoo.org"
114 die "Missing dependencies."
115 fi
116 }
117
118 src_install() {
119 webapp_src_preinst
120
121 make install
122
123 # copy upgrade files
124 cp -R etc/upgrade ${D}/${MY_HOSTROOTDIR}/${P}
125
126 # make sure we don't clobber existing site configuration
127 rm -f ${D}/${MY_HOSTROOTDIR}/${P}/etc/RT_SiteConfig.pm
128
129 cd ${D}
130 grep -Rl "${D}" * | xargs dosed
131 chmod +r ${D}/${MY_HOSTROOTDIR}/${P}/etc/RT*
132
133 webapp_server_configfile apache1 ${FILESDIR}/${PV}/rt_apache.conf
134 webapp_postinst_txt en ${FILESDIR}/${PV}/postinstall-en.txt
135 webapp_hook_script ${FILESDIR}/${PV}/reconfig
136 webapp_src_install
137 }

  ViewVC Help
Powered by ViewVC 1.1.20