From 9cd7e710ac676c1a318d09e665ca3558bb5c5323 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 29 Oct 2022 16:01:29 +0100 Subject: gentoo auto-resync : 29:10:2022 - 16:01:29 --- www-apps/rt/Manifest | 2 +- www-apps/rt/rt-4.4.4-r2.ebuild | 266 ----------------------------------------- www-apps/rt/rt-4.4.4-r3.ebuild | 266 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 267 insertions(+), 267 deletions(-) delete mode 100644 www-apps/rt/rt-4.4.4-r2.ebuild create mode 100644 www-apps/rt/rt-4.4.4-r3.ebuild (limited to 'www-apps/rt') diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest index 55155aa380f3..15997a5cbdd6 100644 --- a/www-apps/rt/Manifest +++ b/www-apps/rt/Manifest @@ -3,5 +3,5 @@ AUX postinstall-en.txt 620 BLAKE2B a57e1a705fa31a2c5abb080be8e9ddea41017132c5142 AUX reconfig 2133 BLAKE2B fb5fdf3d68c1ff06b0e1becd25594b4544515aea3399ef2a563cbc541aa8ccf18f0781cbd08f97504bba0980010a7756a657c5ca0d7caa227cebf15b0d0f3231 SHA512 bfeedd02918240fb1b79fe9a5f62b6bda85e3f9df2c55dd9a93deb490495bb269579a999a71bd135fe43f247774039e34947c39689461ef4083b482f02fa3c56 AUX rt-makefile-serialize-install-prereqs.patch 596 BLAKE2B 65427cbc4425fe47bd4ee5a624df45f802ff1153fa778493a619120db0ce5082876e05d802c411e2cbeb6293fa7899e374c462f7e2c83225a8d423baec162316 SHA512 0ae2ad3ac5faf7ecc65545cfbba210034a2f532c4b1fa82b37956731b35d7e42e3d3ca4714834f2797ecec7292f19dca0be295ad92ed3931374d07af02ed10a1 DIST rt-4.4.4.tar.gz 9977845 BLAKE2B bc27a68c880d305e43069887bd4c2dbf09e82413ee9b7f1e0e19252ad5249430f17bd980c94a4c74386a8c7fefc79af50a0e572adbb0ef707e46a4be63e8d3e4 SHA512 95335cfa9e7107300670a5e8631ffb6f402895dae051201d051ac01885b0cb185f838a666acaec773e0f670e1b9d16b7cede72f37ce9832fd83a9da8514e6972 -EBUILD rt-4.4.4-r2.ebuild 6767 BLAKE2B bf6da2f65b83d06f7abed1f33759b5abb81bcd552b32d41327f9e3f699b71731db751395e54b2dfc2d11bd0bbea73b72187e214758372caf109c4ab2afb300fe SHA512 faad290fe8aebb417faf35eb543c6e2bacc06c610e0befc38be9ddbdd4ca10a584c63f6e9eccc045ec29101853f30603dc1549487919d745ec1c6ab57780ea69 +EBUILD rt-4.4.4-r3.ebuild 6782 BLAKE2B 094e3656f886c762a61da8d09861930177a8cab6e7b41d24a072e68fe753bfee162f4aeb22bb3c5e2ac7bc620f0b30319e461f3279126ae3ccd756e272288558 SHA512 af52df1030132679df097d4b0a388c7070c91c93fe439ac36c78a15fef563a39e07ebb4f5f6f09eb143f66a97a986fc319647776a003f0e57b3c6c1485d11411 MISC metadata.xml 455 BLAKE2B 6664934a9bce66ae07c6b3b0c57a7ea118f0a0d0c582d4a5323765ffc185e2735afb85c359e1041f25f1d73be41cd279e460196c6c05cde4ca4df094ff6107e3 SHA512 31a8433cff9f603152dfe31356e0645872e91c08027e52d58919b16ed346d1707de442ef6eea52f1a06052cd6ba9001a64fd258b8d98f0df2e5943b91f58a704 diff --git a/www-apps/rt/rt-4.4.4-r2.ebuild b/www-apps/rt/rt-4.4.4-r2.ebuild deleted file mode 100644 index efcf278b94c6..000000000000 --- a/www-apps/rt/rt-4.4.4-r2.ebuild +++ /dev/null @@ -1,266 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit webapp depend.apache - -DESCRIPTION="RT is an enterprise-grade ticketing system" -HOMEPAGE="https://www.bestpractical.com/rt/" -SRC_URI="https://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" - -KEYWORDS="~amd64" -LICENSE="GPL-2" -IUSE="mysql +postgres fastcgi lighttpd" -REQUIRED_USE="^^ ( mysql postgres )" - -RESTRICT="test" - -DEPEND=" - acct-group/rt - acct-user/rt - >=dev-lang/perl-5.10.1 - >=dev-perl/Apache-Session-1.53 - >=dev-perl/CGI-4 - >=dev-perl/CSS-Squish-0.06 - >=dev-perl/Class-Accessor-0.34 - >=dev-perl/Class-ReturnValue-0.550.0-r1 - >=dev-perl/DBI-1.37 - >=dev-perl/Date-Extract-0.02 - >=dev-perl/DateTime-Format-Natural-0.67 - >=dev-perl/Devel-StackTrace-1.19 - >=dev-perl/Email-Address-1.912.0 - >=dev-perl/Email-Address-List-0.60.0 - >=dev-perl/HTML-FormatText-WithLinks-0.14 - >=dev-perl/HTML-Mason-1.43 - >=dev-perl/HTML-Scrubber-0.08 - >=dev-perl/HTTP-Server-Simple-0.34 - >=dev-perl/HTTP-Server-Simple-Mason-0.14 - >=dev-perl/Locale-Maketext-Lexicon-0.32 - >=dev-perl/Log-Dispatch-2.410.0 - >=dev-perl/MIME-tools-5.425 - >=dev-perl/MailTools-1.60 - >=dev-perl/Module-Versions-Report-1.05 - >=dev-perl/Role-Basic-0.12 - >=dev-perl/Symbol-Global-Name-0.04 - >=dev-perl/Text-Quoted-2.80.0 - >=dev-perl/Text-WikiFormat-0.76 - >=dev-perl/Tree-Simple-1.04 - >=dev-perl/XML-RSS-1.05 - >=dev-perl/DBIx-SearchBuilder-1.660.0 - >=virtual/perl-Digest-MD5-2.27 - >=virtual/perl-Encode-2.730.0 - >=virtual/perl-File-Spec-0.8 - >=virtual/perl-Getopt-Long-2.24 - >=virtual/perl-Locale-Maketext-1.06 - >=virtual/perl-Storable-2.08 - dev-perl/Business-Hours - dev-perl/CGI-Emulate-PSGI - dev-perl/CGI-PSGI - dev-perl/Cache-Simple-TimedExpiry - dev-perl/Calendar-Simple - dev-perl/Convert-Color - dev-perl/Crypt-Eksblowfish - dev-perl/Crypt-SSLeay - dev-perl/Crypt-X509 - dev-perl/CSS-Minifier-XS - dev-perl/Data-Page-Pageset - dev-perl/DBD-SQLite - dev-perl/Data-GUID - dev-perl/Data-ICal - dev-perl/Date-Manip - dev-perl/Devel-GlobalDestruction - dev-perl/File-ShareDir - dev-perl/File-Which - dev-perl/GDGraph - dev-perl/GDTextUtil - dev-perl/GD[png(+),gif(+)] - dev-perl/GnuPG-Interface - dev-perl/GraphViz - dev-perl/HTML-Formatter - dev-perl/HTML-FormatText-WithLinks-AndTables - dev-perl/HTML-Gumbo - dev-perl/HTML-Mason-PSGIHandler - dev-perl/HTML-Parser - dev-perl/HTML-Quoted - dev-perl/HTML-RewriteAttributes - dev-perl/HTML-Tree - dev-perl/IPC-Run3 - dev-perl/JSON - dev-perl/JavaScript-Minifier-XS - dev-perl/MIME-Types - dev-perl/Module-Refresh - dev-perl/Mozilla-CA - dev-perl/Net-CIDR - dev-perl/PerlIO-eol - dev-perl/Plack - dev-perl/Regexp-Common-net-CIDR - dev-perl/Regexp-IPv6 - dev-perl/Scope-Upper - dev-perl/Starlet - dev-perl/String-ShellQuote - dev-perl/TermReadKey - dev-perl/Text-Autoformat - dev-perl/Text-Password-Pronounceable - dev-perl/Time-ParseDate - dev-perl/TimeDate - dev-perl/UNIVERSAL-require - dev-perl/libwww-perl - dev-perl/Locale-Maketext-Fuzzy - dev-perl/Net-IP - dev-perl/Net-Server - dev-perl/Regexp-Common - dev-perl/Text-Template - dev-perl/Text-Wrapper - virtual/perl-Digest - virtual/perl-File-Temp - virtual/perl-Scalar-List-Utils - virtual/perl-Time-HiRes - virtual/perl-libnet - - fastcgi? ( - dev-perl/FCGI - dev-perl/FCGI-ProcManager - ) - !lighttpd? ( - dev-perl/Apache-DBI - !fastcgi? ( >=www-apache/mod_perl-2 ) - ) - lighttpd? ( dev-perl/FCGI ) - mysql? ( >=dev-perl/DBD-mysql-2.1018 ) - postgres? ( >=dev-perl/DBD-Pg-1.43 ) -" - -RDEPEND="${DEPEND} - virtual/mta - !lighttpd? ( ${APACHE2_DEPEND} ) - lighttpd? ( - >=www-servers/lighttpd-1.3.13 - sys-apps/openrc - ) -" - -need_httpd_cgi - -pkg_setup() { - webapp_pkg_setup - - ewarn - ewarn "If you are upgrading from an existing RT installation" - ewarn "make sure to read the related upgrade documentation in" - ewarn "${ROOT}usr/share/doc/${PF}." - ewarn -} - -src_prepare() { - # add Gentoo-specific layout - cat "${FILESDIR}"/config.layout-gentoo >> config.layout - sed -e "s|PREFIX|${EPREFIX}/${MY_HOSTROOTDIR}/${PF}|g" \ - -e "s|HTMLDIR|${EPREFIX}/${MY_HTDOCSDIR}|g" \ - -e 's|/\+|/|g' \ - -i ./config.layout || die 'config sed failed' - - # don't need to check dev dependencies - sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" \ - -i sbin/rt-test-dependencies.in || die 'dev sed failed' - - eapply "${FILESDIR}/rt-makefile-serialize-install-prereqs.patch" - eapply_user -} - -src_configure() { - local web - local myconf - local depsconf - - if use mysql ; then - myconf="--with-db-type=mysql --with-db-dba=root" - depsconf="--with-MYSQL" - elif use postgres ; then - myconf="--with-db-type=Pg --with-db-dba=postgres" - depsconf="--with-PG" - else - die "Pick a database backend" - fi - - if use fastcgi ; then - myconf+=" --with-web-handler=fastcgi" - web="apache" - depsconf+=" --with-FASTCGI" - elif use lighttpd ; then - myconf+=" --with-web-handler=fastcgi" - web="lighttpd" - depsconf+=" --with-FASTCGI" - else - myconf+=" --with-web-handler=modperl2" - web="apache" - depsconf+=" --with-MODPERL2" - fi - # Any loading Date::Manip from here on - # may fail if TZ=Factory as it is on gentoo install - # media ( affects install as well ) - export TZ=UTC - - ./configure --enable-layout=Gentoo \ - --with-bin-owner=rt \ - --with-libs-owner=rt \ - --with-libs-group=rt \ - --with-rt-group=rt \ - --with-web-user=${web} \ - --with-web-group=${web} \ - ${myconf} - - # check for missing deps and ask to report if something is broken - /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t - if grep -q "MISSING" "${T}"/t; then - ewarn "Missing Perl dependency!" - ewarn - cat "${T}"/t | grep MISSING - ewarn - ewarn "Please run perl-cleaner. If the problem persists," - ewarn "please file a bug in the Gentoo Bugzilla with the information above" - die "Missing dependencies." - fi -} - -src_compile() { :; } - -src_install() { - webapp_src_preinst - emake install - - dodoc -r docs/* - # Disable compression because `perldoc` doesn't decompress transparently - docompress -x /usr/share/doc - - # make sure we don't clobber existing site configuration - rm -f "${ED}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm - - # fix paths - find "${ED}" -type f -print0 | xargs -0 sed -i -e "s:${ED}::g" - - # copy upgrade files - insinto "${MY_HOSTROOTDIR}/${PF}" - doins -r etc/upgrade - - # require the web server's permissions - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_hook_script "${FILESDIR}"/reconfig - - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - if use lighttpd ; then - elog "We no longer install initscripts as Best Practical's recommended" - elog "implementation is to let Lighttpd manage the FastCGI instance." - elog - elog "You may find the following helpful:" - elog " perldoc /usr/share/doc/${P}/web_deployment.pod" - fi -} diff --git a/www-apps/rt/rt-4.4.4-r3.ebuild b/www-apps/rt/rt-4.4.4-r3.ebuild new file mode 100644 index 000000000000..f346018e2508 --- /dev/null +++ b/www-apps/rt/rt-4.4.4-r3.ebuild @@ -0,0 +1,266 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit webapp depend.apache + +DESCRIPTION="RT is an enterprise-grade ticketing system" +HOMEPAGE="https://www.bestpractical.com/rt/" +SRC_URI="https://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" + +KEYWORDS="~amd64" +LICENSE="GPL-2" +IUSE="mysql +postgres fastcgi lighttpd" +REQUIRED_USE="^^ ( mysql postgres )" + +RESTRICT="test" + +DEPEND=" + acct-group/rt + acct-user/rt + >=dev-lang/perl-5.10.1 + >=dev-perl/Apache-Session-1.53 + >=dev-perl/CGI-4 + >=dev-perl/CSS-Squish-0.06 + >=dev-perl/Class-Accessor-0.34 + >=dev-perl/Class-ReturnValue-0.550.0-r1 + >=dev-perl/DBI-1.37 + >=dev-perl/Date-Extract-0.02 + >=dev-perl/DateTime-Format-Natural-0.67 + >=dev-perl/Devel-StackTrace-1.19 + >=dev-perl/Email-Address-1.912.0 + >=dev-perl/Email-Address-List-0.60.0 + >=dev-perl/HTML-FormatText-WithLinks-0.14 + >=dev-perl/HTML-Mason-1.43 + >=dev-perl/HTML-Scrubber-0.08 + >=dev-perl/HTTP-Server-Simple-0.34 + >=dev-perl/HTTP-Server-Simple-Mason-0.14 + >=dev-perl/Locale-Maketext-Lexicon-0.32 + >=dev-perl/Log-Dispatch-2.410.0 + >=dev-perl/MIME-tools-5.425 + >=dev-perl/MailTools-1.60 + >=dev-perl/Module-Versions-Report-1.05 + >=dev-perl/Role-Basic-0.12 + >=dev-perl/Symbol-Global-Name-0.04 + >=dev-perl/Text-Quoted-2.80.0 + >=dev-perl/Text-WikiFormat-0.76 + >=dev-perl/Tree-Simple-1.04 + >=dev-perl/XML-RSS-1.05 + >=dev-perl/DBIx-SearchBuilder-1.660.0 + >=virtual/perl-Digest-MD5-2.27 + >=virtual/perl-Encode-2.730.0 + >=virtual/perl-File-Spec-0.8 + >=virtual/perl-Getopt-Long-2.24 + >=virtual/perl-Locale-Maketext-1.06 + >=virtual/perl-Storable-2.08 + dev-perl/Business-Hours + dev-perl/CGI-Emulate-PSGI + dev-perl/CGI-PSGI + dev-perl/Cache-Simple-TimedExpiry + dev-perl/Calendar-Simple + dev-perl/Convert-Color + dev-perl/Crypt-Eksblowfish + dev-perl/Crypt-SSLeay + dev-perl/Crypt-X509 + dev-perl/CSS-Minifier-XS + dev-perl/Data-Page-Pageset + dev-perl/DBD-SQLite + dev-perl/Data-GUID + dev-perl/Data-ICal + dev-perl/Date-Manip + dev-perl/Devel-GlobalDestruction + dev-perl/File-ShareDir + dev-perl/File-Which + dev-perl/GDGraph + dev-perl/GDTextUtil + dev-perl/GD[png(+),gif(+)] + dev-perl/GnuPG-Interface + dev-perl/GraphViz + dev-perl/HTML-Formatter + dev-perl/HTML-FormatText-WithLinks-AndTables + dev-perl/HTML-Gumbo + dev-perl/HTML-Mason-PSGIHandler + dev-perl/HTML-Parser + dev-perl/HTML-Quoted + dev-perl/HTML-RewriteAttributes + dev-perl/HTML-Tree + dev-perl/IPC-Run3 + dev-perl/JSON + dev-perl/JavaScript-Minifier-XS + dev-perl/MIME-Types + dev-perl/Module-Refresh + dev-perl/Mozilla-CA + dev-perl/Net-CIDR + dev-perl/PerlIO-eol + dev-perl/Plack + dev-perl/Regexp-Common-net-CIDR + dev-perl/Regexp-IPv6 + dev-perl/Scope-Upper + dev-perl/Starlet + dev-perl/String-ShellQuote + dev-perl/TermReadKey + dev-perl/Text-Autoformat + dev-perl/Text-Password-Pronounceable + dev-perl/Time-ParseDate + dev-perl/TimeDate + dev-perl/UNIVERSAL-require + dev-perl/libwww-perl + dev-perl/Locale-Maketext-Fuzzy + dev-perl/Net-IP + dev-perl/Net-Server + dev-perl/Regexp-Common + dev-perl/Text-Template + dev-perl/Text-Wrapper + virtual/perl-Digest + virtual/perl-File-Temp + virtual/perl-Scalar-List-Utils + virtual/perl-Time-HiRes + virtual/perl-libnet + + fastcgi? ( + dev-perl/FCGI + dev-perl/FCGI-ProcManager + ) + !lighttpd? ( + dev-perl/Apache-DBI + !fastcgi? ( >=www-apache/mod_perl-2 ) + ) + lighttpd? ( dev-perl/FCGI ) + mysql? ( >=dev-perl/DBD-mysql-2.1018 ) + postgres? ( >=dev-perl/DBD-Pg-1.43 ) +" + +RDEPEND="${DEPEND} + virtual/mta + !lighttpd? ( ${APACHE2_DEPEND} ) + lighttpd? ( + >=www-servers/lighttpd-1.3.13 + sys-apps/openrc + ) +" + +need_httpd_cgi + +pkg_setup() { + webapp_pkg_setup + + ewarn + ewarn "If you are upgrading from an existing RT installation" + ewarn "make sure to read the related upgrade documentation in" + ewarn "${ROOT}usr/share/doc/${PF}." + ewarn +} + +src_prepare() { + # add Gentoo-specific layout + cat "${FILESDIR}"/config.layout-gentoo >> config.layout + sed -e "s|PREFIX|${EPREFIX}/${MY_HOSTROOTDIR}/${PF}|g" \ + -e "s|HTMLDIR|${EPREFIX}/${MY_HTDOCSDIR}|g" \ + -e 's|/\+|/|g' \ + -i ./config.layout || die 'config sed failed' + + # don't need to check dev dependencies + sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" \ + -i sbin/rt-test-dependencies.in || die 'dev sed failed' + + eapply "${FILESDIR}/rt-makefile-serialize-install-prereqs.patch" + eapply_user +} + +src_configure() { + local web + local myconf + local depsconf + + if use mysql ; then + myconf="--with-db-type=mysql --with-db-dba=root" + depsconf="--with-MYSQL" + elif use postgres ; then + myconf="--with-db-type=Pg --with-db-dba=postgres" + depsconf="--with-PG" + else + die "Pick a database backend" + fi + + if use fastcgi ; then + myconf+=" --with-web-handler=fastcgi" + web="apache" + depsconf+=" --with-FASTCGI" + elif use lighttpd ; then + myconf+=" --with-web-handler=fastcgi" + web="lighttpd" + depsconf+=" --with-FASTCGI" + else + myconf+=" --with-web-handler=modperl2" + web="apache" + depsconf+=" --with-MODPERL2" + fi + # Any loading Date::Manip from here on + # may fail if TZ=Factory as it is on gentoo install + # media ( affects install as well ) + export TZ=UTC + + ./configure --enable-layout=Gentoo \ + --with-bin-owner=rt \ + --with-libs-owner=rt \ + --with-libs-group=rt \ + --with-rt-group=rt \ + --with-web-user=${web} \ + --with-web-group=${web} \ + ${myconf} + + # check for missing deps and ask to report if something is broken + /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t + if grep -q "MISSING" "${T}"/t; then + ewarn "Missing Perl dependency!" + ewarn + cat "${T}"/t | grep MISSING + ewarn + ewarn "Please run perl-cleaner. If the problem persists," + ewarn "please file a bug in the Gentoo Bugzilla with the information above" + die "Missing dependencies." + fi +} + +src_compile() { :; } + +src_install() { + webapp_src_preinst + emake DESTDIR="${D}" install + + dodoc -r docs/* + # Disable compression because `perldoc` doesn't decompress transparently + docompress -x /usr/share/doc + + # make sure we don't clobber existing site configuration + rm -f "${ED}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm + + # fix paths + find "${ED}" -type f -print0 | xargs -0 sed -i -e "s:${ED}::g" + + # copy upgrade files + insinto "${MY_HOSTROOTDIR}/${PF}" + doins -r etc/upgrade + + # require the web server's permissions + webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var + webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_hook_script "${FILESDIR}"/reconfig + + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + + if use lighttpd ; then + elog "We no longer install initscripts as Best Practical's recommended" + elog "implementation is to let Lighttpd manage the FastCGI instance." + elog + elog "You may find the following helpful:" + elog " perldoc /usr/share/doc/${P}/web_deployment.pod" + fi +} -- cgit v1.2.3