1 |
commit: 40c0ec98425f4da16cd134129ba14784cdc112fa |
2 |
Author: Stefan G. Weichinger <office <AT> oops <DOT> co <DOT> at> |
3 |
AuthorDate: Tue Jan 24 13:49:01 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 25 23:28:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40c0ec98 |
7 |
|
8 |
www-apps/otrs: version bump to 5.0.16. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/3626 |
11 |
|
12 |
www-apps/otrs/Manifest | 1 + |
13 |
www-apps/otrs/otrs-5.0.16.ebuild | 152 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 153 insertions(+) |
15 |
|
16 |
diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest |
17 |
index 5f68e09..7768bbd 100644 |
18 |
--- a/www-apps/otrs/Manifest |
19 |
+++ b/www-apps/otrs/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST otrs-5.0.15.tar.bz2 19344790 SHA256 03f294a34c1e44b0bf5d6974eab718e053546e6e7d9d84c7b14958827b83805b SHA512 5ac8614eee5719831dbf5e19c401c3947d48c0f43fea3d1be70cde797f108f5ca964616f7d0129471636d1f69f1ecaaa63939870c66c64138fd925c74cf6174c WHIRLPOOL 58406cc2cb2700b96811913c0b31dfca9dc7df051e6206d957c382f494f2ac1a6a5bfea7a16d155e6fe384070d2cb121358496c477a70866f907caeddafcd90f |
22 |
+DIST otrs-5.0.16.tar.bz2 19417591 SHA256 ddec039990c1bdfc27299ab175eff3e1665aa99ba48050f7f2dde480b28f4029 SHA512 326ebc97b689ce05c33a4f8e5587b891029c168544ab6bea4e5b112b2c75527a605689fd957d7acdebf18e331176db727cca4c87244f22cfdb9b9e4e0735b6c4 WHIRLPOOL 4dfe35d1c3cd940523219dafae5f62447e6bc363e601b4fc98fdf46d09731dbf61ddb109d5b368af6fc2b25ab44f18e455dbd9de2e00d367363c34972af221b2 |
23 |
|
24 |
diff --git a/www-apps/otrs/otrs-5.0.16.ebuild b/www-apps/otrs/otrs-5.0.16.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..863d90e |
27 |
--- /dev/null |
28 |
+++ b/www-apps/otrs/otrs-5.0.16.ebuild |
29 |
@@ -0,0 +1,152 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+inherit confutils user systemd |
37 |
+ |
38 |
+DESCRIPTION="OTRS is an Open source Ticket Request System" |
39 |
+HOMEPAGE="https://otrs.org/" |
40 |
+SRC_URI="https://ftp.otrs.org/pub/${PN}/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="AGPL-3" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="apache2 fastcgi +gd ldap mod_perl +mysql pdf postgres soap" |
45 |
+SLOT="0" |
46 |
+ |
47 |
+DEPEND="media-libs/libpng:0" |
48 |
+ |
49 |
+RDEPEND="dev-perl/Apache-Reload |
50 |
+ dev-perl/Archive-Zip |
51 |
+ dev-perl/DBI |
52 |
+ dev-perl/IO-Socket-SSL |
53 |
+ dev-perl/JSON-XS |
54 |
+ dev-perl/LWP-UserAgent-Determined |
55 |
+ dev-perl/Mail-POP3Client |
56 |
+ dev-perl/Mail-IMAPClient |
57 |
+ >dev-perl/Net-DNS-0.60 |
58 |
+ dev-perl/Template-Toolkit |
59 |
+ dev-perl/Text-CSV_XS |
60 |
+ dev-perl/TimeDate |
61 |
+ dev-perl/XML-Parser |
62 |
+ dev-perl/YAML-LibYAML |
63 |
+ apache2? ( |
64 |
+ mod_perl? ( |
65 |
+ www-servers/apache:2 |
66 |
+ =www-apache/libapreq2-2* www-apache/mod_perl |
67 |
+ ) |
68 |
+ !fastcgi? ( !mod_perl? ( www-servers/apache:2[suexec] ) ) |
69 |
+ ) |
70 |
+ fastcgi? ( |
71 |
+ dev-perl/FCGI |
72 |
+ virtual/httpd-fastcgi |
73 |
+ ) |
74 |
+ !fastcgi? ( !apache2? ( virtual/httpd-cgi ) ) |
75 |
+ gd? ( |
76 |
+ dev-perl/GD |
77 |
+ dev-perl/GDTextUtil |
78 |
+ dev-perl/GDGraph |
79 |
+ ) |
80 |
+ ldap? ( dev-perl/perl-ldap ) |
81 |
+ mysql? ( dev-perl/DBD-mysql ) |
82 |
+ postgres? ( dev-perl/DBD-Pg ) |
83 |
+ pdf? ( |
84 |
+ >=dev-perl/PDF-API2-0.73 |
85 |
+ virtual/perl-Compress-Raw-Zlib |
86 |
+ ) |
87 |
+ soap? ( |
88 |
+ dev-perl/SOAP-Lite |
89 |
+ !=dev-perl/SOAP-Lite-0.711 |
90 |
+ !=dev-perl/SOAP-Lite-0.712 |
91 |
+ ) |
92 |
+ " |
93 |
+ |
94 |
+OTRS_HOME="${EROOT%/}/var/lib/otrs" |
95 |
+ |
96 |
+pkg_setup() { |
97 |
+ # The enewuser otrs will fail if apache isn't there, but it's an optional dep |
98 |
+ # so we create the apache user here just in case |
99 |
+ enewgroup apache 81 |
100 |
+ enewuser apache 81 -1 /var/www apache |
101 |
+ enewuser otrs -1 -1 ${OTRS_HOME} apache |
102 |
+ confutils_require_any mysql postgres |
103 |
+} |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ rm -r "${S}/scripts"/{auto_*,redhat*,suse*,*.spec} || die |
107 |
+ |
108 |
+ pushd Kernel >/dev/null || die |
109 |
+ for i in *.dist; do |
110 |
+ cp ${i} $(basename ${i} .dist) || die |
111 |
+ done |
112 |
+ popd >/dev/null || die |
113 |
+ |
114 |
+ # Fix broken png file (and see pngfix help for exit codes) |
115 |
+ pngfix -q --out=out.png "${S}/var/httpd/htdocs/skins/Agent/default/img/otrs-verify.png" |
116 |
+ if [[ $? -gt 15 ]]; then |
117 |
+ die "pngfix failed" |
118 |
+ fi |
119 |
+ mv -f out.png "${S}/var/httpd/htdocs/skins/Agent/default/img/otrs-verify.png" || die |
120 |
+ |
121 |
+ sed -i -e "s:/opt/otrs:${OTRS_HOME}:g" "${S}"/Kernel/Config.pm \ |
122 |
+ || die "sed failed" |
123 |
+ |
124 |
+ sed -i -e "s:/opt/otrs:${OTRS_HOME}:g" "${S}"/Kernel/Config/Defaults.pm \ |
125 |
+ || die "sed failed" |
126 |
+ |
127 |
+ grep -lR "/opt" "${S}"/scripts | \ |
128 |
+ xargs sed -i -e "s:/opt/otrs:${OTRS_HOME}:g" \ |
129 |
+ || die "sed failed" |
130 |
+ |
131 |
+ echo "CONFIG_PROTECT=\"${OTRS_HOME}/Kernel/Config.pm \ |
132 |
+ ${OTRS_HOME}/Kernel/Config/GenericAgent.pm\"" > "${T}/50${PN}" || die |
133 |
+ |
134 |
+ eapply_user |
135 |
+} |
136 |
+ |
137 |
+# This is too automagic, either einfo telling user or installing to /etc/cron.d/ should be preferred |
138 |
+pkg_config() { |
139 |
+ einfo "Installing cronjobs" |
140 |
+ crontab -u otrs /usr/share/doc/${PF}/crontab || die |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ dodoc CHANGES.md README* |
145 |
+ |
146 |
+ insinto "${OTRS_HOME}" |
147 |
+ doins -r .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE \ |
148 |
+ Custom Kernel bin scripts var |
149 |
+ |
150 |
+ cat "${S}"/var/cron/*.dist > crontab || die |
151 |
+ insinto /usr/share/doc/${PF}/ |
152 |
+ doins crontab |
153 |
+ |
154 |
+ for a in article log pics/images pics/stats pics sessions spool tmp tmp/CacheFileStorable |
155 |
+ do |
156 |
+ keepdir "${OTRS_HOME}/var/${a}" |
157 |
+ done |
158 |
+ doenvd "${T}/50${PN}" |
159 |
+ |
160 |
+ systemd_dounit "${FILESDIR}/otrs.service" |
161 |
+} |
162 |
+ |
163 |
+pkg_postinst() { |
164 |
+ einfo "Setting correct permissions ..." |
165 |
+ /usr/bin/env perl "${OTRS_HOME%}"/bin/otrs.SetPermissions.pl "${OTRS_HOME}" \ |
166 |
+ --otrs-user=otrs \ |
167 |
+ --web-group=apache \ |
168 |
+ || die "Could not set permissions" |
169 |
+ |
170 |
+ einfo "Installation done!" |
171 |
+ elog "1) Rebuild your config now by running the following commands:" |
172 |
+ elog "sudo -u otrs /usr/bin/env perl "${OTRS_HOME}"/bin/otrs.Console.pl Maint::Config::Rebuild" |
173 |
+ elog "sudo -u otrs /usr/bin/env perl "${OTRS_HOME}"/bin/otrs.Console.pl Maint::Cache::Delete" |
174 |
+ elog "" |
175 |
+ elog "2) Enable cronjobs with the following command:" |
176 |
+ elog "crontab -u otrs crontab" |
177 |
+ elog "" |
178 |
+ elog "3) systemd users: enable and start OTRS daemon:" |
179 |
+ elog "systemctl enable otrs" |
180 |
+ elog "systemctl start otrs" |
181 |
+} |