From ca53e03e58eb20fdfc3715f9862c965008d49ecb Mon Sep 17 00:00:00 2001 From: "Stefan G. Weichinger" Date: Tue, 1 Aug 2017 14:09:28 +0200 Subject: www-apps/otrs: version bump. Closes: https://github.com/gentoo/gentoo/pull/5267 --- www-apps/otrs/Manifest | 3 +- www-apps/otrs/otrs-5.0.20.ebuild | 153 --------------------------------------- www-apps/otrs/otrs-5.0.21.ebuild | 153 +++++++++++++++++++++++++++++++++++++++ www-apps/otrs/otrs-5.0.22.ebuild | 153 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 308 insertions(+), 154 deletions(-) delete mode 100644 www-apps/otrs/otrs-5.0.20.ebuild create mode 100644 www-apps/otrs/otrs-5.0.21.ebuild create mode 100644 www-apps/otrs/otrs-5.0.22.ebuild (limited to 'www-apps') diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest index 5a04a612708d..f9842603024a 100644 --- a/www-apps/otrs/Manifest +++ b/www-apps/otrs/Manifest @@ -1 +1,2 @@ -DIST otrs-5.0.20.tar.bz2 20638821 SHA256 1dfebd86dc55c7e125593e0bb5307a74217f15e23469fead66e2a4f6e00e27e5 SHA512 29b5c52478af6c95fc529db9d031c79e131a1ffaf7cc323ecfa5527145049e6b6762c04138bab5e6a49863b423829c474b6dbdc77777a84e8ea7f5081c2fdd8c WHIRLPOOL 81536727b7b918b2ddb9c206bb5643effbad584a70b9acdebb18e2b4b911837c246215bab23600f0724b789b3e5718ee22dbbd3daf24874da6ef2ce79fd91a2e +DIST otrs-5.0.21.tar.bz2 20603118 SHA256 51e0050528bb477ce2ef4e11ec99e21486e93e48eb8ca9b35689be83a4f448ff SHA512 578b663f149dd7bebefa0a2fec7bc3f105f09c05d6dd03b26c0f80cde5ef8db4560e87772be335485810bf153f2ceb128163fba5600ece224bcd78c61b5eed98 WHIRLPOOL 56b7e8412d17d0e9298ac5ccb686ad09cc73aebcc4c0da9613268620a1938bd64041d94521dc6c5ff8dd172d9aa38943b232604b92b3311d28c81a186292efb2 +DIST otrs-5.0.22.tar.bz2 20611715 SHA256 497c600631c26f0c1b43083ceb6b805dac8741770db085ad728b70f30670ee8d SHA512 0511e13983c7ec8036bd7bbad78835e309c326822b6625e65df902e1b355bcb7dee03246e6326baa0b586b5d2c6b295b9608aaf61c973dafb7818eb1050aaa40 WHIRLPOOL 4567f62a6abb8a49ec3ee53a957821b2dfa3a46cd4a4d60f0579c63088218910b7732f28ce2a4437201d2ca059cf0fa685659fcaf4623b15ee695c5d6d12d812 diff --git a/www-apps/otrs/otrs-5.0.20.ebuild b/www-apps/otrs/otrs-5.0.20.ebuild deleted file mode 100644 index 16e682a03da4..000000000000 --- a/www-apps/otrs/otrs-5.0.20.ebuild +++ /dev/null @@ -1,153 +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 - 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-5.0.21.ebuild b/www-apps/otrs/otrs-5.0.21.ebuild new file mode 100644 index 000000000000..16e682a03da4 --- /dev/null +++ b/www-apps/otrs/otrs-5.0.21.ebuild @@ -0,0 +1,153 @@ +# 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 + 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-5.0.22.ebuild b/www-apps/otrs/otrs-5.0.22.ebuild new file mode 100644 index 000000000000..16e682a03da4 --- /dev/null +++ b/www-apps/otrs/otrs-5.0.22.ebuild @@ -0,0 +1,153 @@ +# 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 + 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" +} -- cgit v1.2.3-65-gdbad