summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-07-09 12:41:39 +0000
committerSam James <sam@gentoo.org>2020-07-09 12:43:17 +0000
commit934a47e2dfc9eb2ff6a38198622584ef458f028d (patch)
treee6d36dfb754baa8b4bd754b20dd779bffd57c613
parentdev-python/nbsphinx: Stabilize 0.4.1 ALLARCHES, #731452 (diff)
downloadgentoo-934a47e2dfc9eb2ff6a38198622584ef458f028d.tar.gz
gentoo-934a47e2dfc9eb2ff6a38198622584ef458f028d.tar.bz2
gentoo-934a47e2dfc9eb2ff6a38198622584ef458f028d.zip
www-apps/otrs: remove last-rited package
www-apps/otrs had a large number of vulnerabilities and was unmaintained within Gentoo. Bug: https://bugs.gentoo.org/692398 Bug: https://bugs.gentoo.org/664326 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--profiles/base/package.use.stable.mask1
-rw-r--r--profiles/package.mask6
-rw-r--r--www-apps/otrs/Manifest5
-rw-r--r--www-apps/otrs/files/otrs.service13
-rw-r--r--www-apps/otrs/metadata.xml11
-rw-r--r--www-apps/otrs/otrs-5.0.25.ebuild154
-rw-r--r--www-apps/otrs/otrs-6.0.3.ebuild156
-rw-r--r--www-apps/otrs/otrs-6.0.4.ebuild156
-rw-r--r--www-apps/otrs/otrs-6.0.5.ebuild156
-rw-r--r--www-apps/otrs/otrs-6.0.7.ebuild157
10 files changed, 0 insertions, 815 deletions
diff --git a/profiles/base/package.use.stable.mask b/profiles/base/package.use.stable.mask
index ba1cae65490..7ce449be71c 100644
--- a/profiles/base/package.use.stable.mask
+++ b/profiles/base/package.use.stable.mask
@@ -69,7 +69,6 @@ dev-perl/Template-Toolkit gd
media-fonts/unifont utils fontforge
media-video/vdrsync dvdr
www-apps/bugzilla extras
-www-apps/otrs gd
# Andreas Sturmlechner <asturm@gentoo.org> (2019-07-16)
# sci-libs/dcmtk is not stable
diff --git a/profiles/package.mask b/profiles/package.mask
index 3f0acaa0a8b..99a10840da9 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -377,12 +377,6 @@ app-misc/ifp-line
dev-util/cdiff
# Sam James <sam@gentoo.org> (2020-06-04)
-# Large number of vulnerabilities (Bug #692398, Bug #664326)
-# Unmaintained.
-# Masked for removal in 30 days.
-www-apps/otrs
-
-# Sam James <sam@gentoo.org> (2020-06-04)
# Multiple vulnerabilities (Bug #655176, Bug #701812)
# Misc. other bugs, out of date, no maintainer.
# Masked for removal in 30 days.
diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest
deleted file mode 100644
index 41c8fb424ec..00000000000
--- a/www-apps/otrs/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-DIST otrs-5.0.25.tar.bz2 20671315 BLAKE2B 045037411039f480434e7c36ab84b63ec0c119e39cc6918ba05d9a7c92e5c940545412dc2824fc427199b384dece34793d2b60fadafec302f67581aabdc5ac82 SHA512 1e68471f071265d963c51ab5a6510a9a9b23d3de87e10eb58b9f9ca937500f4fdf68a7e911f9509244e4cbf43e1658c95dbaba83160d736ea0116167f3361e37
-DIST otrs-6.0.3.tar.bz2 24314514 BLAKE2B 97d794d59269d354b28003879bf0d30cc9b0f7a7d375416df90d85b694ac59e84978fe61183aa058497da18631513c25ecc93e3150f662e2e2efd335014e1e75 SHA512 d7f551e2c9bbe8b303d3de1f7993d76ea22cfd876b61941cfb72a25f2ba7e0a889c275c87aa40c104c1f2e6e1923b7a530cd088bd11b7b575a608b623e2b0541
-DIST otrs-6.0.4.tar.bz2 24355298 BLAKE2B 2f27e7a34b1bad0d58193c834503f051a1a1822afb53dca185ae2f8329d048446acc4e27e823b6f27660c79179bbb48f1976c0b3a6710bc083f791c0a777152c SHA512 23e9a29a6f080c6afa92704d25363687d50073c94192ba81e69ddab55fb9f945a38a5757a4c60c2d46bfc5a0002ca13bbbce1cc0c945f40e23bb864ebc57edd1
-DIST otrs-6.0.5.tar.bz2 24368010 BLAKE2B 20511dfbca16d275a1c4f7f07f8cc9e350c182661c95932f59899400b232612aed95fecac422528e37dd01b772225e78f25464bae40490abd88b391b05ac7b15 SHA512 fe669fb83acef8252cc53b24378757e498201e916a7fc1cb5f509efe777ec2bf36925264a7080f02e50a115285c26429506927390e3b10b35622f3c65a8cd066
-DIST otrs-6.0.7.tar.bz2 24475129 BLAKE2B 595fd84251289ef120b9a35abcde927ef33557adf386dec919e6eb61a973cac3414d148531760f68549a1f0f67faaba258268e761fdfa2be5471a592e96c08b7 SHA512 bb1910a005940f17884da4e8b9b785c9a52aa8a58f434b5c3e65768912b42838d12d69ebb3f7daed2f12dc385829a5a603a1755338d44e0313c35a0a589cbb6f
diff --git a/www-apps/otrs/files/otrs.service b/www-apps/otrs/files/otrs.service
deleted file mode 100644
index 546ecdda8f9..00000000000
--- a/www-apps/otrs/files/otrs.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=OTRS daemon
-
-[Service]
-Type=forking
-WorkingDirectory=/var/lib/otrs
-User=otrs
-ExecStart=/var/lib/otrs/bin/otrs.Daemon.pl start
-ExecStop=/var/lib/otrs/bin/otrs.Daemon.pl stop
-PrivateTmp=true
-
-[Install]
-WantedBy=multi-user.target
diff --git a/www-apps/otrs/metadata.xml b/www-apps/otrs/metadata.xml
deleted file mode 100644
index b1745fd1cbc..00000000000
--- a/www-apps/otrs/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>web-apps@gentoo.org</email>
- <name>Gentoo Webapps</name>
- </maintainer>
- <use>
- <flag name="mod_perl">Provide all dependencies for use of mod_perl instead of cgi</flag>
- </use>
-</pkgmetadata>
diff --git a/www-apps/otrs/otrs-5.0.25.ebuild b/www-apps/otrs/otrs-5.0.25.ebuild
deleted file mode 100644
index d79f7804488..00000000000
--- a/www-apps/otrs/otrs-5.0.25.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit user systemd
-
-DESCRIPTION="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"
-}
diff --git a/www-apps/otrs/otrs-6.0.3.ebuild b/www-apps/otrs/otrs-6.0.3.ebuild
deleted file mode 100644
index dca663db8fa..00000000000
--- a/www-apps/otrs/otrs-6.0.3.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit user systemd
-
-DESCRIPTION="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/DateTime
- dev-perl/XML-LibXML-Simple
- 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"
-}
diff --git a/www-apps/otrs/otrs-6.0.4.ebuild b/www-apps/otrs/otrs-6.0.4.ebuild
deleted file mode 100644
index dca663db8fa..00000000000
--- a/www-apps/otrs/otrs-6.0.4.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit user systemd
-
-DESCRIPTION="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/DateTime
- dev-perl/XML-LibXML-Simple
- 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"
-}
diff --git a/www-apps/otrs/otrs-6.0.5.ebuild b/www-apps/otrs/otrs-6.0.5.ebuild
deleted file mode 100644
index dca663db8fa..00000000000
--- a/www-apps/otrs/otrs-6.0.5.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit user systemd
-
-DESCRIPTION="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/DateTime
- dev-perl/XML-LibXML-Simple
- 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"
-}
diff --git a/www-apps/otrs/otrs-6.0.7.ebuild b/www-apps/otrs/otrs-6.0.7.ebuild
deleted file mode 100644
index ef55412d070..00000000000
--- a/www-apps/otrs/otrs-6.0.7.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-inherit systemd user
-
-DESCRIPTION="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/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/DateTime
- dev-perl/XML-LibXML-Simple
- dev-perl/XML-Parser
- dev-perl/YAML-LibYAML
- apache2? (
- mod_perl? (
- dev-perl/Apache-Reload
- 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"
-}