1 |
wrobel 08/10/31 06:40:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: otrs-2.3.3.ebuild |
5 |
Removed: otrs-2.2.3.ebuild otrs-2.2.2.ebuild |
6 |
Log: |
7 |
Added www-apps/otrs-2.3.3, removed otrs-2.2.2, -2.2.3. (#228607) |
8 |
(Portage version: 2.1.4.5) |
9 |
|
10 |
Revision Changes Path |
11 |
1.40 www-apps/otrs/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?rev=1.40&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?rev=1.40&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/ChangeLog?r1=1.39&r2=1.40 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v |
20 |
retrieving revision 1.39 |
21 |
retrieving revision 1.40 |
22 |
diff -u -r1.39 -r1.40 |
23 |
--- ChangeLog 3 Apr 2008 11:08:59 -0000 1.39 |
24 |
+++ ChangeLog 31 Oct 2008 06:40:42 -0000 1.40 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-apps/otrs |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.39 2008/04/03 11:08:59 hollow Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.40 2008/10/31 06:40:42 wrobel Exp $ |
30 |
+ |
31 |
+*otrs-2.3.3 (31 Oct 2008) |
32 |
+ |
33 |
+ 31 Oct 2008; Gunnar Wrobel <wrobel@g.o> -otrs-2.2.2.ebuild, |
34 |
+ -otrs-2.2.3.ebuild, +otrs-2.3.3.ebuild: |
35 |
+ Added www-apps/otrs-2.3.3, removed otrs-2.2.2, -2.2.3. (#228607) |
36 |
|
37 |
*otrs-2.2.6 (03 Apr 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apps/otrs/otrs-2.3.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/otrs-2.3.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/otrs/otrs-2.3.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: otrs-2.3.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 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.3.3.ebuild,v 1.1 2008/10/31 06:40:42 wrobel Exp $ |
52 |
|
53 |
inherit webapp eutils depend.apache |
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 |
LICENSE="GPL-2" |
60 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
61 |
IUSE="mysql postgres fastcgi ldap gd pdf" |
62 |
|
63 |
RDEPEND="${DEPEND} |
64 |
virtual/mta |
65 |
=dev-lang/perl-5* |
66 |
|
67 |
dev-perl/Authen-SASL |
68 |
dev-perl/Crypt-PasswdMD5 |
69 |
dev-perl/DBI |
70 |
dev-perl/Date-Pcalc |
71 |
dev-perl/IO-stringy |
72 |
dev-perl/MIME-tools |
73 |
dev-perl/MailTools |
74 |
dev-perl/Net-DNS |
75 |
dev-perl/TimeDate |
76 |
dev-perl/XML-Parser |
77 |
dev-perl/libwww-perl |
78 |
virtual/perl-CGI |
79 |
virtual/perl-Digest-MD5 |
80 |
virtual/perl-MIME-Base64 |
81 |
virtual/perl-libnet |
82 |
|
83 |
apache2? ( =www-apache/libapreq2-2* ) |
84 |
fastcgi? ( dev-perl/FCGI ) |
85 |
gd? ( dev-perl/GD dev-perl/GDTextUtil dev-perl/GDGraph ) |
86 |
ldap? ( dev-perl/perl-ldap net-nds/openldap ) |
87 |
mysql? ( >=dev-perl/DBD-mysql-3.0005 ) |
88 |
pdf? ( dev-perl/PDF-API2 ) |
89 |
postgres? ( dev-perl/DBD-Pg ) |
90 |
" |
91 |
|
92 |
want_apache |
93 |
|
94 |
pkg_setup() { |
95 |
webapp_pkg_setup |
96 |
if use apache2; then |
97 |
enewuser otrs -1 -1 /dev/null apache |
98 |
fi |
99 |
} |
100 |
|
101 |
src_unpack() { |
102 |
unpack ${A} |
103 |
cp "${S}"/Kernel/Config.pm{.dist,} |
104 |
|
105 |
cd "${S}"/Kernel/Config/ |
106 |
for i in *.dist; do |
107 |
cp ${i} $(basename ${i} .dist) |
108 |
done |
109 |
|
110 |
cd "${S}"/scripts |
111 |
rm -rf auto_* redhat* suse* |
112 |
|
113 |
if use fastcgi; then |
114 |
epatch "${FILESDIR}"/apache2.patch |
115 |
sed -e "s|cgi-bin|fcgi-bin|" -i "${S}"/scripts/apache2-httpd.include.conf |
116 |
sed -e "s|index.pl|index.fpl|" -i "${S}"/var/httpd/htdocs/index.html |
117 |
fi |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
webapp_src_preinst |
122 |
dodir "${MY_HOSTROOTDIR}"/${PF} |
123 |
|
124 |
dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING \ |
125 |
doc/otrs-database.dia doc/test-* doc/X-OTRS-Headers.txt \ |
126 |
.fetchmailrc.dist .mailfilter.dist .procmailrc.dist |
127 |
dohtml doc/manual/{en,de}/html/* |
128 |
|
129 |
insinto "${MY_HOSTROOTDIR}"/${PF} |
130 |
doins -r .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE Kernel bin scripts var |
131 |
|
132 |
mv "${D}/${MY_HOSTROOTDIR}"/${PF}/var/httpd/htdocs/* "${D}/${MY_HTDOCSDIR}" |
133 |
rm -rf "${D}/${MY_HOSTROOTDIR}"/${PF}/var/httpd |
134 |
|
135 |
local a d="article log pics/images pics/stats pics sessions spool tmp" |
136 |
for a in ${d}; do |
137 |
keepdir "${MY_HOSTROOTDIR}"/${PF}/var/${a} |
138 |
done |
139 |
|
140 |
webapp_configfile "${MY_HOSTROOTDIR}"/${PF}/Kernel/Config.pm |
141 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en-2.txt |
142 |
webapp_hook_script "${FILESDIR}"/reconfig-2 |
143 |
webapp_src_install |
144 |
} |
145 |
|
146 |
pkg_postinst() { |
147 |
ewarn "webapp-config will not be run automatically" |
148 |
ewarn "That messes up Apache configs" |
149 |
ewarn "Don't run webapp-config with -d otrs. Instead, try" |
150 |
ewarn "webapp-config -I -h <host> -d ot ${PN} ${PVR}" |
151 |
ewarn |
152 |
if ! use apache2; then |
153 |
ewarn "You did not activate the USE-flag apache2 which means you" |
154 |
ewarn "will need to create the otrs user yourself. Make this user" |
155 |
ewarn "a member of your webserver group." |
156 |
fi |
157 |
# webapp_pkg_postinst |
158 |
} |