From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/otrs/
Date: Tue, 2 Jan 2018 19:12:01 +0000 (UTC) [thread overview]
Message-ID: <1514920312.b65a13b5515413ad93155a165a9029a884804eef.whissi@gentoo> (raw)
commit: b65a13b5515413ad93155a165a9029a884804eef
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 2 19:11:16 2018 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Jan 2 19:11:52 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b65a13b5
www-apps/otrs: Security cleanup
Bug: https://bugs.gentoo.org/640548
Package-Manager: Portage-2.3.19, Repoman-2.3.6
www-apps/otrs/Manifest | 1 -
www-apps/otrs/otrs-5.0.23.ebuild | 154 ---------------------------------------
2 files changed, 155 deletions(-)
diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest
index 09404be2d16..0bea4d3beaa 100644
--- a/www-apps/otrs/Manifest
+++ b/www-apps/otrs/Manifest
@@ -1,2 +1 @@
-DIST otrs-5.0.23.tar.bz2 20617459 BLAKE2B 3c57ae5462d78e8f8ecb5f3db031725f5f51d8dafc850cc445a415b1a03023f67d0b209c5bee71318665986ac3ef0b460dee944c23e8aa177cabcc54cf72f384 SHA512 c6ae594178e1f0eb59b87a8d08b610940ba7ad0a44699ba73568c6844a49fc03e2486bce393aaf0dd78da9c64790b9fae72cfad65c9c6955c0524fbf27b95d7e
DIST otrs-5.0.25.tar.bz2 20671315 BLAKE2B 045037411039f480434e7c36ab84b63ec0c119e39cc6918ba05d9a7c92e5c940545412dc2824fc427199b384dece34793d2b60fadafec302f67581aabdc5ac82 SHA512 1e68471f071265d963c51ab5a6510a9a9b23d3de87e10eb58b9f9ca937500f4fdf68a7e911f9509244e4cbf43e1658c95dbaba83160d736ea0116167f3361e37
diff --git a/www-apps/otrs/otrs-5.0.23.ebuild b/www-apps/otrs/otrs-5.0.23.ebuild
deleted file mode 100644
index 172bd42f6b4..00000000000
--- a/www-apps/otrs/otrs-5.0.23.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit user systemd
-
-DESCRIPTION="OTRS is an Open source Ticket Request System"
-HOMEPAGE="https://www.otrs.com/"
-SRC_URI="https://ftp.otrs.org/pub/${PN}/${P}.tar.bz2"
-
-LICENSE="AGPL-3+"
-KEYWORDS="~amd64 ~x86"
-IUSE="apache2 fastcgi +gd ldap mod_perl +mysql pdf postgres soap"
-SLOT="0"
-
-REQUIRED_USE="|| ( mysql postgres )"
-
-DEPEND="media-libs/libpng:0"
-
-RDEPEND="dev-perl/Apache-Reload
- dev-perl/Archive-Zip
- dev-perl/DBI
- dev-perl/IO-Socket-SSL
- dev-perl/JSON-XS
- dev-perl/LWP-UserAgent-Determined
- dev-perl/Mail-POP3Client
- dev-perl/Mail-IMAPClient
- >dev-perl/Net-DNS-0.60
- dev-perl/Template-Toolkit
- dev-perl/Text-CSV_XS
- dev-perl/TimeDate
- dev-perl/XML-Parser
- dev-perl/YAML-LibYAML
- apache2? (
- mod_perl? (
- www-servers/apache:2
- =www-apache/libapreq2-2* www-apache/mod_perl
- )
- !fastcgi? ( !mod_perl? ( www-servers/apache:2[suexec] ) )
- )
- fastcgi? (
- dev-perl/FCGI
- virtual/httpd-fastcgi
- )
- !fastcgi? ( !apache2? ( virtual/httpd-cgi ) )
- gd? (
- dev-perl/GD
- dev-perl/GDTextUtil
- dev-perl/GDGraph
- )
- ldap? ( dev-perl/perl-ldap )
- mysql? ( dev-perl/DBD-mysql )
- postgres? ( dev-perl/DBD-Pg )
- pdf? (
- >=dev-perl/PDF-API2-0.73
- virtual/perl-Compress-Raw-Zlib
- )
- soap? (
- dev-perl/SOAP-Lite
- !=dev-perl/SOAP-Lite-0.711
- !=dev-perl/SOAP-Lite-0.712
- )
- "
-
-OTRS_HOME="/var/lib/otrs"
-
-pkg_setup() {
- # The enewuser otrs will fail if apache isn't there, but it's an optional dep
- # so we create the apache user here just in case
- enewgroup apache 81
- enewuser apache 81 -1 /var/www apache
- enewuser otrs -1 -1 "${OTRS_HOME}" apache
-}
-
-src_prepare() {
- rm -r "${S}/scripts"/auto_* || die
-
- pushd Kernel >/dev/null || die
- local i
- for i in *.dist; do
- cp "${i}" $(basename "${i}" .dist) || die
- done
- popd >/dev/null || die
-
- # Fix broken png file (and see pngfix help for exit codes)
- pngfix -q --out=out.png "${S}/var/httpd/htdocs/skins/Agent/default/img/otrs-verify.png"
- if [[ $? -gt 15 ]]; then
- die "pngfix failed"
- fi
- mv -f out.png "${S}/var/httpd/htdocs/skins/Agent/default/img/otrs-verify.png" || die
-
- sed -i -e "s:/opt/otrs:${EPREFIX%/}${OTRS_HOME}:g" "${S}"/Kernel/Config.pm \
- || die "sed failed"
-
- sed -i -e "s:/opt/otrs:${EPREFIX%/}${OTRS_HOME}:g" "${S}"/Kernel/Config/Defaults.pm \
- || die "sed failed"
-
- grep -lR "/opt" "${S}"/scripts | \
- xargs sed -i -e "s:/opt/otrs:${EPREFIX%/}${OTRS_HOME}:g" \
- || die "sed failed"
-
- echo "CONFIG_PROTECT=\"${EPREFIX%/}${OTRS_HOME}/Kernel/Config.pm \
- ${EPREFIX%/}${OTRS_HOME}/Kernel/Config/GenericAgent.pm\"" > "${T}/50${PN}" || die
-
- eapply_user
-}
-
-# This is too automagic, either einfo telling user or installing to /etc/cron.d/ should be preferred
-pkg_config() {
- einfo "Installing cronjobs"
- crontab -u otrs "${EROOT%/}"/usr/share/doc/${PF}/crontab || die
-}
-
-src_install() {
- dodoc CHANGES.md README*
-
- insinto "${OTRS_HOME}"
- doins -r .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE \
- Custom Kernel bin scripts var
-
- cat "${S}"/var/cron/*.dist > "${T}"/crontab || die
- insinto /usr/share/doc/${PF}/
- doins "${T}"/crontab
-
- local a
- for a in article log pics/images pics/stats pics sessions spool tmp tmp/CacheFileStorable
- do
- keepdir "${OTRS_HOME}/var/${a}"
- done
- doenvd "${T}/50${PN}"
-
- systemd_dounit "${FILESDIR}/otrs.service"
-}
-
-pkg_postinst() {
- einfo "Setting correct permissions ..."
- /usr/bin/env perl "${EROOT%/}${OTRS_HOME}"/bin/otrs.SetPermissions.pl "${EROOT%/}${OTRS_HOME}" \
- --otrs-user=otrs \
- --web-group=apache \
- || die "Could not set permissions"
-
- einfo "Installation done!"
- elog "1) Rebuild your config now by running the following commands:"
- elog "sudo -u otrs /usr/bin/env perl "${EROOT%/}${OTRS_HOME}"/bin/otrs.Console.pl Maint::Config::Rebuild"
- elog "sudo -u otrs /usr/bin/env perl "${EROOT%/}${OTRS_HOME}"/bin/otrs.Console.pl Maint::Cache::Delete"
- elog ""
- elog "2) Enable cronjobs with the following command:"
- elog "crontab -u otrs crontab"
- elog ""
- elog "3) systemd users: enable and start OTRS daemon:"
- elog "systemctl enable otrs"
- elog "systemctl start otrs"
-}
next reply other threads:[~2018-01-02 19:12 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 19:12 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-08 16:53 [gentoo-commits] repo/gentoo:master commit in: www-apps/otrs/ David Seifert
2018-10-29 14:22 Miroslav Šulc
2018-10-29 14:22 Miroslav Šulc
2018-05-16 15:52 Andreas Sturmlechner
2018-05-08 20:13 Mikle Kolyada
2018-05-08 20:00 Mikle Kolyada
2018-02-15 14:27 Patrice Clement
2018-02-11 11:36 Michał Górny
2017-12-06 12:54 Michael Palimaka
2017-11-26 23:26 David Seifert
2017-10-07 19:49 Patrice Clement
2017-10-02 22:32 Patrice Clement
2017-08-02 9:07 Patrice Clement
2017-06-06 11:53 Thomas Deutschmann
2017-06-06 11:53 Thomas Deutschmann
2017-05-31 16:46 Patrice Clement
2017-04-09 23:10 Göktürk Yüksek
2017-03-12 9:15 Michał Górny
2017-03-12 9:15 Michał Górny
2017-03-12 9:05 Michał Górny
2017-01-25 23:29 Patrice Clement
2017-01-25 23:29 Patrice Clement
2015-10-05 8:13 Ian Delaney
2015-10-05 8:06 Ian Delaney
2015-10-01 4:58 Ian Delaney
2015-08-14 1:11 Chris Reffett
2015-08-14 1:07 Chris Reffett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1514920312.b65a13b5515413ad93155a165a9029a884804eef.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox