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