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