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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Dec 20 17:07:35 2006 UTC (11 years, 9 months ago) by rl03
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump
(Portage version: 2.1.2_rc1-r5)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-2.1.2.ebuild,v 1.2 2006/11/23 17:22:59 vivo Exp $
4
5 inherit webapp eutils
6
7 IUSE="mysql postgres fastcgi apache2 ldap gd pdf"
8
9 DESCRIPTION="OTRS is an Open source Ticket Request System"
10 HOMEPAGE="http://otrs.org/"
11 SRC_URI="ftp://ftp.otrs.org/pub/${PN}/${P}.tar.bz2"
12
13 KEYWORDS="~amd64 ~ppc ~x86"
14
15 RDEPEND="
16 ${DEPEND}
17 =dev-lang/perl-5*
18 dev-perl/Date-Pcalc
19 dev-perl/TimeDate
20 dev-perl/Crypt-PasswdMD5
21 dev-perl/DBI
22 virtual/perl-CGI
23 virtual/perl-Digest-MD5
24 dev-perl/libwww-perl
25 dev-perl/IO-stringy
26 virtual/perl-MIME-Base64
27 dev-perl/MIME-tools
28 dev-perl/MailTools
29 dev-perl/Net-DNS
30 virtual/perl-libnet
31 dev-perl/Authen-SASL
32 dev-perl/XML-Parser
33 virtual/mta
34 pdf? ( dev-perl/PDF-API2 )
35 ldap? ( dev-perl/perl-ldap net-nds/openldap )
36 mysql? ( >=virtual/mysql-4.0 dev-perl/DBD-mysql )
37 postgres? ( dev-db/postgresql dev-perl/DBD-Pg )
38 apache2? ( >=net-www/apache-2
39 fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi )
40 !fastcgi? ( =www-apache/libapreq2-2* ) )
41 !apache2? ( =net-www/apache-1*
42 fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi )
43 !fastcgi? ( =www-apache/libapreq-1* ) )
44 gd? ( dev-perl/GD dev-perl/GDTextUtil dev-perl/GDGraph )
45 "
46
47 LICENSE="GPL-2"
48
49 pkg_setup() {
50 webapp_pkg_setup
51 enewuser otrs -1 -1 /dev/null apache
52 }
53
54 src_unpack() {
55 unpack ${A}
56 cp ${S}/Kernel/Config.pm.dist ${S}/Kernel/Config.pm
57
58 # http://bugs.otrs.org/show_bug.cgi?id=1231
59 cd ${S}
60 epatch ${FILESDIR}/dbi_finish.patch
61
62 cd ${S}/Kernel/Config/
63 for foo in *.dist; do cp ${foo} $(basename ${foo} .dist); done
64
65 cd ${S}/scripts
66 rm -rf auto_* redhat* suse*
67
68 if use fastcgi; then
69 if ! use apache2; then
70 epatch ${FILESDIR}/apache1.patch
71 sed -e "s|cgi-bin|fcgi-bin|" -i ${S}/scripts/apache-httpd.include.conf
72 fi
73 if use apache2; then
74 epatch ${FILESDIR}/apache2.patch
75 sed -e "s|cgi-bin|fcgi-bin|" -i ${S}/scripts/apache2-httpd.include.conf
76 fi
77 sed -e "s|index.pl|index.fpl|" -i ${S}/var/httpd/htdocs/index.html
78 fi
79 }
80
81 src_install() {
82 webapp_src_preinst
83 dodir ${MY_HOSTROOTDIR}/${PF}
84
85 # install documentation
86 dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING \
87 doc/otrs-database.dia doc/test-* doc/X-OTRS-Headers.txt \
88 .fetchmailrc.dist .mailfilter.dist .procmailrc.dist
89 dohtml doc/manual/{en,de}/html/*
90
91 # copy main files
92 cp -R .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE Kernel bin scripts var ${D}/${MY_HOSTROOTDIR}/${PF}
93 mv ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd/htdocs/* ${D}/${MY_HTDOCSDIR}
94
95 # remove stuff from ${D} that shouldn't be there
96 rm -rf ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd
97
98 # keep some empty dirs
99 local a
100 local d="article log pics/images pics/stats pics sessions spool tmp"
101 for a in ${d}; do
102 keepdir ${MY_HOSTROOTDIR}/${PF}/var/${a}
103 done
104
105 # helpers
106 webapp_configfile ${MY_HOSTROOTDIR}/${PF}/Kernel/Config.pm
107 webapp_postinst_txt en ${FILESDIR}/postinstall-en-2.txt
108 webapp_hook_script ${FILESDIR}/reconfig-2
109 webapp_src_install
110 }
111
112 pkg_postinst() {
113 ewarn "webapp-config will not be run automatically"
114 ewarn "That messes up Apache configs"
115 ewarn "Don't run webapp-config with -d otrs. Instead, try"
116 ewarn "webapp-config -I -h <host> -d ot ${PN} ${PVR}"
117 ewarn
118 # webapp_pkg_postinst
119 }

  ViewVC Help
Powered by ViewVC 1.1.20