Gentoo Archives: gentoo-commits

From: "Gunnar Wrobel (wrobel)" <wrobel@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/otrs: ChangeLog otrs-2.2.3.ebuild
Date: Tue, 18 Sep 2007 12:36:51
Message-Id: E1IXcCO-0003Y9-RC@stork.gentoo.org
1 wrobel 07/09/18 12:29:04
2
3 Modified: ChangeLog
4 Added: otrs-2.2.3.ebuild
5 Log:
6 Added otrs 2.2.3 to the tree.
7 (Portage version: 2.1.2.12)
8
9 Revision Changes Path
10 1.38 www-apps/otrs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 16 Sep 2007 05:38:02 -0000 1.37
23 +++ ChangeLog 18 Sep 2007 12:29:04 -0000 1.38
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-apps/otrs
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.37 2007/09/16 05:38:02 wrobel Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.38 2007/09/18 12:29:04 wrobel Exp $
29 +
30 +*otrs-2.2.3 (18 Sep 2007)
31 +
32 + 18 Sep 2007; <wrobel@g.o> +otrs-2.2.3.ebuild:
33 + Added otrs 2.2.3 to the tree.
34
35 16 Sep 2007; <wrobel@g.o> otrs-2.2.2.ebuild:
36 Fixed ebuild type (see #192202).
37
38
39
40 1.1 www-apps/otrs/otrs-2.2.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/otrs-2.2.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/otrs-2.2.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: otrs-2.2.3.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-2.2.3.ebuild,v 1.1 2007/09/18 12:29:04 wrobel Exp $
50
51 inherit webapp eutils depend.apache
52
53 IUSE="mysql postgres fastcgi ldap gd pdf"
54
55 DESCRIPTION="OTRS is an Open source Ticket Request System"
56 HOMEPAGE="http://otrs.org/"
57 SRC_URI="ftp://ftp.otrs.org/pub/${PN}/${P}.tar.bz2"
58
59 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
60
61 RDEPEND="
62 ${DEPEND}
63 =dev-lang/perl-5*
64 dev-perl/Date-Pcalc
65 dev-perl/TimeDate
66 dev-perl/Crypt-PasswdMD5
67 dev-perl/DBI
68 virtual/perl-CGI
69 virtual/perl-Digest-MD5
70 dev-perl/libwww-perl
71 dev-perl/IO-stringy
72 virtual/perl-MIME-Base64
73 dev-perl/MIME-tools
74 dev-perl/MailTools
75 dev-perl/Net-DNS
76 virtual/perl-libnet
77 dev-perl/Authen-SASL
78 dev-perl/XML-Parser
79 virtual/mta
80 pdf? ( dev-perl/PDF-API2 )
81 ldap? ( dev-perl/perl-ldap net-nds/openldap )
82 mysql? ( dev-perl/DBD-mysql )
83 postgres? ( dev-perl/DBD-Pg )
84 fastcgi? ( dev-perl/FCGI )
85 apache2? ( =www-apache/libapreq2-2* )
86 gd? ( dev-perl/GD dev-perl/GDTextUtil dev-perl/GDGraph )
87 "
88
89 want_apache
90
91 LICENSE="GPL-2"
92
93 pkg_setup() {
94 webapp_pkg_setup
95 if use apache2; then
96 enewuser otrs -1 -1 /dev/null apache
97 fi
98 }
99
100 src_unpack() {
101 unpack ${A}
102 cp ${S}/Kernel/Config.pm.dist ${S}/Kernel/Config.pm
103
104 # http://bugs.otrs.org/show_bug.cgi?id=1231
105 cd ${S}
106 epatch ${FILESDIR}/dbi_finish.patch
107
108 cd ${S}/Kernel/Config/
109 for foo in *.dist; do cp ${foo} $(basename ${foo} .dist); done
110
111 cd ${S}/scripts
112 rm -rf auto_* redhat* suse*
113
114 if use fastcgi; then
115 epatch ${FILESDIR}/apache2.patch
116 sed -e "s|cgi-bin|fcgi-bin|" -i ${S}/scripts/apache2-httpd.include.conf
117 sed -e "s|index.pl|index.fpl|" -i ${S}/var/httpd/htdocs/index.html
118 fi
119 }
120
121 src_install() {
122 webapp_src_preinst
123 dodir ${MY_HOSTROOTDIR}/${PF}
124
125 # install documentation
126 dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING \
127 doc/otrs-database.dia doc/test-* doc/X-OTRS-Headers.txt \
128 .fetchmailrc.dist .mailfilter.dist .procmailrc.dist
129 dohtml doc/manual/{en,de}/html/*
130
131 # copy main files
132 cp -R .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE Kernel bin scripts var ${D}/${MY_HOSTROOTDIR}/${PF}
133 mv ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd/htdocs/* ${D}/${MY_HTDOCSDIR}
134
135 # remove stuff from ${D} that shouldn't be there
136 rm -rf ${D}/${MY_HOSTROOTDIR}/${PF}/var/httpd
137
138 # keep some empty dirs
139 local a
140 local d="article log pics/images pics/stats pics sessions spool tmp"
141 for a in ${d}; do
142 keepdir ${MY_HOSTROOTDIR}/${PF}/var/${a}
143 done
144
145 # helpers
146 webapp_configfile ${MY_HOSTROOTDIR}/${PF}/Kernel/Config.pm
147 webapp_postinst_txt en ${FILESDIR}/postinstall-en-2.txt
148 webapp_hook_script ${FILESDIR}/reconfig-2
149 webapp_src_install
150 }
151
152 pkg_postinst() {
153 ewarn "webapp-config will not be run automatically"
154 ewarn "That messes up Apache configs"
155 ewarn "Don't run webapp-config with -d otrs. Instead, try"
156 ewarn "webapp-config -I -h <host> -d ot ${PN} ${PVR}"
157 ewarn
158 if ! use apache2; then
159 ewarn "You did not activate the USE-flag apache2 which means you"
160 ewarn "will need to create the otrs user yourself. Make this user"
161 ewarn "a member of your webserver group."
162 fi
163 # webapp_pkg_postinst
164 }
165
166
167
168 --
169 gentoo-commits@g.o mailing list