/[gentoo-x86]/www-apps/otrs/otrs-1.3.1.ebuild
Gentoo

Contents of /www-apps/otrs/otrs-1.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Aug 2 01:59:56 2005 UTC (13 years, 1 month ago) by rl03
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, removing old version
(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/otrs/otrs-1.3.1.ebuild,v 1.2 2005/05/10 00:25:43 beu Exp $
4
5 inherit webapp eutils
6
7 S=${WORKDIR}/${PN}
8
9 IUSE="mysql postgres fastcgi apache2 ldap"
10
11 DESCRIPTION="OTRS is an Open source Ticket Request System"
12 HOMEPAGE="http://otrs.org/"
13 SRC_URI="ftp://ftp.gwdg.de/pub/misc/${PN}/${P}-01.tar.bz2
14 http://otrs.behrsolutions.com/${P}-01.tar.bz2
15 ftp://ftp.samurai.com/pub/${PN}/${P}-01.tar.bz2
16 ftp://ftp.otrs.org/pub/${PN}/${P}-01.tar.bz2
17 http://ftp.gwdg.de/pub/misc/${PN}/${P}-01.tar.bz2"
18
19 KEYWORDS="~x86 ~ppc"
20
21 DEPEND="
22 =dev-lang/perl-5*
23 dev-perl/Date-Pcalc
24 dev-perl/DBI
25 dev-perl/Email-Valid
26 dev-perl/IO-stringy
27 dev-perl/MIME-tools
28 dev-perl/MailTools
29 dev-perl/Net-DNS
30 dev-perl/Authen-SASL
31 dev-perl/GD
32 dev-perl/GDTextUtil
33 dev-perl/GDGraph
34 "
35
36 RDEPEND="
37 ${DEPEND}
38 virtual/mta
39 ldap? ( dev-perl/perl-ldap net-nds/openldap )
40 mysql? ( =dev-db/mysql-4* dev-perl/DBD-mysql )
41 postgres? ( dev-db/postgresql dev-perl/DBD-Pg )
42 fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi )
43 apache2? ( >=net-www/apache-2 dev-perl/FCGI net-www/mod_fastcgi )
44 !apache2? ( =net-www/apache-1* =www-apache/libapreq-1* )
45 "
46
47 LICENSE="GPL-2"
48
49 pkg_setup() {
50 webapp_pkg_setup
51 einfo
52 einfo "File locations have changed. OTRS now installs into"
53 einfo "/var/www/<YOURHOST>/${P}, /var/www/<YOURHOST>/cgi-bin/${PN}, and "
54 einfo "/var/www/<YOURHOST>/htdocs/${PN}"
55 einfo
56 enewuser otrs -1 /bin/false /dev/null apache
57
58 use apache2 && ewarn "mod_perl2 isn't ready for prime time, fastcgi will be used instead"
59 }
60
61 src_compile() {
62 # check dependenices
63 cp ${S}/Kernel/Config.pm.dist ${S}/Kernel/Config.pm
64 cd ${S}/Kernel/Config/
65 for foo in *.dist; do cp ${foo} `basename ${foo} .dist`; done
66
67 cd ${S}
68 if ! perl -cw bin/cgi-bin/index.pl 2>&1 | grep -q "syntax OK"; then die "Unresolved Perl dependencies"; fi
69 if ! perl -cw bin/PostMaster.pl 2>&1 | grep -q "syntax OK"; then die "Unresolved Perl dependencies"; fi
70 }
71
72 src_install() {
73 webapp_src_preinst
74 dodir ${MY_HOSTROOTDIR}/${P} ${MY_CGIBINDIR}/${PN}
75
76 # install documentation
77 dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING
78 dohtml doc/manual/en/html/*
79
80 cp -R Kernel bin scripts var \
81 .fetchmailrc .mailfilter .procmailrc ${D}/${MY_HOSTROOTDIR}/${P}
82 cp -R bin/cgi-bin/* ${D}/${MY_CGIBINDIR}/${PN}
83 mv ${D}/${MY_HOSTROOTDIR}/${P}/var/httpd/htdocs/* ${D}/${MY_HTDOCSDIR}
84 rm -rf ${D}/${MY_HOSTROOTDIR}/${P}/var/httpd ${D}/${MY_HOSTROOTDIR}/${P}/bin/cgi-bin
85
86 webapp_configfile ${MY_HOSTROOTDIR}/${P}/Kernel/Config.pm
87
88 webapp_postinst_txt en ${FILESDIR}/postinstall-en-${PV}.txt
89 webapp_hook_script ${FILESDIR}/reconfig-${PV}
90 webapp_src_install
91 }

  ViewVC Help
Powered by ViewVC 1.1.20