From d39b2406e1496a2848b3f450a5737ae3dbd8c6f7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 2 Oct 2024 01:26:11 +0100 Subject: gentoo auto-resync : 02:10:2024 - 01:26:10 --- www-apps/Manifest.gz | Bin 12980 -> 13150 bytes www-apps/mediawiki/Manifest | 12 +- www-apps/mediawiki/mediawiki-1.39.10.ebuild | 90 +++++++ www-apps/mediawiki/mediawiki-1.39.8.ebuild | 90 ------- www-apps/mediawiki/mediawiki-1.41.2.ebuild | 92 -------- www-apps/mediawiki/mediawiki-1.41.4.ebuild | 92 ++++++++ www-apps/mediawiki/mediawiki-1.42.1.ebuild | 92 -------- www-apps/mediawiki/mediawiki-1.42.3.ebuild | 92 ++++++++ www-apps/rt/Manifest | 7 + www-apps/rt/files/config.layout-gentoo | 26 +++ www-apps/rt/files/postinstall-en.txt | 19 ++ www-apps/rt/files/reconfig | 56 +++++ .../rt-makefile-serialize-install-prereqs.patch | 12 + www-apps/rt/metadata.xml | 17 ++ www-apps/rt/rt-5.0.6.ebuild | 260 +++++++++++++++++++++ 15 files changed, 677 insertions(+), 280 deletions(-) create mode 100644 www-apps/mediawiki/mediawiki-1.39.10.ebuild delete mode 100644 www-apps/mediawiki/mediawiki-1.39.8.ebuild delete mode 100644 www-apps/mediawiki/mediawiki-1.41.2.ebuild create mode 100644 www-apps/mediawiki/mediawiki-1.41.4.ebuild delete mode 100644 www-apps/mediawiki/mediawiki-1.42.1.ebuild create mode 100644 www-apps/mediawiki/mediawiki-1.42.3.ebuild create mode 100644 www-apps/rt/Manifest create mode 100644 www-apps/rt/files/config.layout-gentoo create mode 100644 www-apps/rt/files/postinstall-en.txt create mode 100644 www-apps/rt/files/reconfig create mode 100644 www-apps/rt/files/rt-makefile-serialize-install-prereqs.patch create mode 100644 www-apps/rt/metadata.xml create mode 100644 www-apps/rt/rt-5.0.6.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index b96da0837453..6b9589d36898 100644 Binary files a/www-apps/Manifest.gz and b/www-apps/Manifest.gz differ diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest index cc498f7ff832..6502c8acae3e 100644 --- a/www-apps/mediawiki/Manifest +++ b/www-apps/mediawiki/Manifest @@ -1,9 +1,9 @@ AUX postinstall-1.18-en.txt 2611 BLAKE2B c4d110d0d7c3fc270b0dc7f134cf7de8f2ca4595692ac146c2e4cd1c3647e7399d44249059496960ae94490c5b188c986dab64d4b90901bd7fc44203493532a0 SHA512 2b6a0e00160c15466bf70189499816d18a5ea06f040ed79f2361842be93a584ea19033170dc59c1d78c590da85223a61b8d04730084e60bc7906648f2532578b AUX postupgrade-1.16-en.txt 1519 BLAKE2B 39cf00073c5d12e04dd69126c7671acb5876bcdd592526d6aca475b98f9ed7abcb6d2691cef8642be04d8041fcbdaee0555937f1480f71a82c3f367f2a3d99b6 SHA512 495a2ea3074e96e570ed83e557691786524aea878fa6ee489080245a9bb1669d93e318c3871ce44918225d0e64d09e1e644538627bfb35a4a2a12d27365dc89d -DIST mediawiki-1.39.8.tar.gz 58857901 BLAKE2B 3d3bbc238b0d6fbbbc57886c0b99db728fe03ba34bfcfddd8e1ae6226683ee3cb8825b618730153ca8fb822deabd4e26cf8a6ab7769049b3a4c3bd22022a7d76 SHA512 1f5c44ef9cdd6e37c551e4c75ad59b10ce6babe019df9aba2edbd4665497a8209906cfdbaf0e34ef8c17468be19e58da24bfc9875cd654aaafd23285eedcb932 -DIST mediawiki-1.41.2.tar.gz 116284183 BLAKE2B 6f3644cbcea4b4d535416a0a9ba338b0defe1c5596c88c6b05b002735079e96dabc31baa0e94c1432be279dad31ba055dc1214e57b76c2b0c6ee86ee132dddb2 SHA512 9d99e1f317822f84aade70ddd67bcee53cf79f3d85c4924b376e290ff07fada7a2f28db7c944f39f5dea86990688926be0de13619f8217e50baa15eded0728a4 -DIST mediawiki-1.42.1.tar.gz 89149379 BLAKE2B 694b73fce98c70ba073dfcf4ccaa71caa1946b024bd35ecdce6e5804bd35ceca19f5d2c60965757ccecf1cc7b6e07583551220f49e752942e016449fae316050 SHA512 867472d0f1d462f1bcc7f52aa92ee161ddd100fbe70c7ab7dea6e01209ff81fa51990d53a0e07c34da8601af5994bdace784549bd843bedb34615609055bf73b -EBUILD mediawiki-1.39.8.ebuild 2786 BLAKE2B a5defdca5a327b1ec4b9c7b151bfd57efd2f240e0e3cb682a48259bace6c09ea5a371ec204f925920002ed645bbb95343c49c88575ecaafc88504be2877459eb SHA512 dd13685be9be9963f46b9de541a492249d4c8e1d3ff5827eb2302d3d297a48386c113f6c847ca2407b58c6c07ab40f94142dcf32581ba3521b1af62752e8220c -EBUILD mediawiki-1.41.2.ebuild 2788 BLAKE2B 071750f6a4cd0e9c4b547cced13d21792060a20056cad524c42d28b1f2765b14c9fb4af3e03e0cdc85ae308c2d4a6d31d2fd3dd91cf6e456800d78a796dcb838 SHA512 13097cde4dd9adfd9cce84a6a8c10408d5e1d07c0b2e65f990d134f4fbecf0709ba8d851199ea9dece1a4d8ac07ff42317e9affb9365ee4ba06760350dced855 -EBUILD mediawiki-1.42.1.ebuild 2788 BLAKE2B 071750f6a4cd0e9c4b547cced13d21792060a20056cad524c42d28b1f2765b14c9fb4af3e03e0cdc85ae308c2d4a6d31d2fd3dd91cf6e456800d78a796dcb838 SHA512 13097cde4dd9adfd9cce84a6a8c10408d5e1d07c0b2e65f990d134f4fbecf0709ba8d851199ea9dece1a4d8ac07ff42317e9affb9365ee4ba06760350dced855 +DIST mediawiki-1.39.10.tar.gz 59269713 BLAKE2B b7cba0baa498a296bc0f3cba7fe2fb3d089255485fda69546a99ebcd54de855a9689864af56a0e1f0b4650a40f05962594edfc956990c8d07db3b630a43a37d8 SHA512 f1e911668dbc34f290342fa5b845825c02f2505adf336b052b71b7ad7ddc919ea42a684ec82d5639c80c5392e898ace9f02b2b97388556c5da8f611b36d40a98 +DIST mediawiki-1.41.4.tar.gz 116745261 BLAKE2B 32639732635111e74de0f75af0d8e88d074bb39409dfa15b33288772f82921343fae2c57c8f1e717731d4dfb7f896702acc0ea28e2ef8eacef5e8e60ff60b151 SHA512 d6d9d1894a523cf6688c0c4cd1122a8b4fe2cfb7ece32d9c027e58c2b8998a58e1bf93d259a4fc524330eab4ce199f8fe4d9426611a6a4d567176b34b85f8c24 +DIST mediawiki-1.42.3.tar.gz 89632118 BLAKE2B c66fd061e36866d2dda5b5a6866bb48ba322c46ba8d12b02b2fd02549a0e95b2371fd0b91bd58351f2eb8445ae292a126361b9d135acd06bba5f4728ebaedae9 SHA512 3d8e65cf58df61ab9d9d4e90751d795c22215a91ae670687480a274a036cf124fa0bfb9487c50ca8c4a16f78e74976509f94537533321769853e583a2dbfeae2 +EBUILD mediawiki-1.39.10.ebuild 2786 BLAKE2B a5defdca5a327b1ec4b9c7b151bfd57efd2f240e0e3cb682a48259bace6c09ea5a371ec204f925920002ed645bbb95343c49c88575ecaafc88504be2877459eb SHA512 dd13685be9be9963f46b9de541a492249d4c8e1d3ff5827eb2302d3d297a48386c113f6c847ca2407b58c6c07ab40f94142dcf32581ba3521b1af62752e8220c +EBUILD mediawiki-1.41.4.ebuild 2788 BLAKE2B 071750f6a4cd0e9c4b547cced13d21792060a20056cad524c42d28b1f2765b14c9fb4af3e03e0cdc85ae308c2d4a6d31d2fd3dd91cf6e456800d78a796dcb838 SHA512 13097cde4dd9adfd9cce84a6a8c10408d5e1d07c0b2e65f990d134f4fbecf0709ba8d851199ea9dece1a4d8ac07ff42317e9affb9365ee4ba06760350dced855 +EBUILD mediawiki-1.42.3.ebuild 2788 BLAKE2B 071750f6a4cd0e9c4b547cced13d21792060a20056cad524c42d28b1f2765b14c9fb4af3e03e0cdc85ae308c2d4a6d31d2fd3dd91cf6e456800d78a796dcb838 SHA512 13097cde4dd9adfd9cce84a6a8c10408d5e1d07c0b2e65f990d134f4fbecf0709ba8d851199ea9dece1a4d8ac07ff42317e9affb9365ee4ba06760350dced855 MISC metadata.xml 359 BLAKE2B 79703ba1428aafa7d5ab14386601405a4ec03015fe7920b9c8f9bc3e1fbaefce4345a77410acc429689f42610c7526fd501667230d4aa786c3d02b9241f3fd50 SHA512 6d35f7bd19d1af197137a66ac215e25e2e3b551f2b1be1b234fce56f09c3b62c3056810b154a332ce018597d759434c54148e93cc4d6013698bce8cf1d370561 diff --git a/www-apps/mediawiki/mediawiki-1.39.10.ebuild b/www-apps/mediawiki/mediawiki-1.39.10.ebuild new file mode 100644 index 000000000000..d7c84e6df37c --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.39.10.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit webapp + +MY_BRANCH=$(ver_cut 1-2) + +DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" +HOMEPAGE="http://www.mediawiki.org" +SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" +IUSE="imagemagick mysql postgres +sqlite" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] + imagemagick? ( virtual/imagemagick-tools ) + !imagemagick? ( dev-lang/php[gd] ) + mysql? ( dev-lang/php[mysql,mysqli] ) + sqlite? ( + dev-db/sqlite[fts3(+)] + dev-lang/php[pdo,sqlite] + ) + virtual/httpd-php" + +need_httpd_cgi + +RESTRICT="test" + +src_unpack() { + default + + # remove lua binaries (bug #631554) + rm -r "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" +} + +src_install() { + webapp_src_preinst + + # First we install docs and then copy everything left into htdocs dir + # to avoid bugs like #236411. + + # We ensure the directories are prepared for writing. The post- + # install instructions guide the user to enable the feature. + local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" + dodoc ${DOCS} docs/*.txt + docinto databases + dodoc docs/databases/* + # Clean everything not used at the site... + rm -r ${DOCS} COPYING tests docs || die + find . -name Makefile -delete || die + # and install + insinto "${MY_HTDOCSDIR}" + doins -r . + + # If imagemagick is enabled then setup for image upload. + # We ensure the directory is prepared for writing. + if use imagemagick ; then + webapp_serverowned "${MY_HTDOCSDIR}"/images + fi + + webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" + webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + + if [[ -n ${REPLACING_VERSIONS} ]]; then + echo + elog "=== Consult the release notes ===" + elog "Before doing anything, stop and consult the release notes" + elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" + echo + elog "These detail bug fixes, new features and functionality, and any" + elog "particular points that may need to be noted during the upgrade procedure." + echo + elog "If you plan to use the Scribunto extension with Lua, make sure to configure" + elog "path to Lua executable using this documentation:" + elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary" + echo + ewarn "Back up existing files and the database before upgrade." + ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" + ewarn "provides an overview of the backup process." + echo + fi +} diff --git a/www-apps/mediawiki/mediawiki-1.39.8.ebuild b/www-apps/mediawiki/mediawiki-1.39.8.ebuild deleted file mode 100644 index d7c84e6df37c..000000000000 --- a/www-apps/mediawiki/mediawiki-1.39.8.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -inherit webapp - -MY_BRANCH=$(ver_cut 1-2) - -DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" -HOMEPAGE="http://www.mediawiki.org" -SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" -IUSE="imagemagick mysql postgres +sqlite" -REQUIRED_USE="|| ( mysql postgres sqlite )" - -RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] - imagemagick? ( virtual/imagemagick-tools ) - !imagemagick? ( dev-lang/php[gd] ) - mysql? ( dev-lang/php[mysql,mysqli] ) - sqlite? ( - dev-db/sqlite[fts3(+)] - dev-lang/php[pdo,sqlite] - ) - virtual/httpd-php" - -need_httpd_cgi - -RESTRICT="test" - -src_unpack() { - default - - # remove lua binaries (bug #631554) - rm -r "${S}"/extensions/Scribunto/includes/engines/LuaStandalone/binaries || die "Failed to remove lua binaries" -} - -src_install() { - webapp_src_preinst - - # First we install docs and then copy everything left into htdocs dir - # to avoid bugs like #236411. - - # We ensure the directories are prepared for writing. The post- - # install instructions guide the user to enable the feature. - local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" - dodoc ${DOCS} docs/*.txt - docinto databases - dodoc docs/databases/* - # Clean everything not used at the site... - rm -r ${DOCS} COPYING tests docs || die - find . -name Makefile -delete || die - # and install - insinto "${MY_HTDOCSDIR}" - doins -r . - - # If imagemagick is enabled then setup for image upload. - # We ensure the directory is prepared for writing. - if use imagemagick ; then - webapp_serverowned "${MY_HTDOCSDIR}"/images - fi - - webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" - webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - if [[ -n ${REPLACING_VERSIONS} ]]; then - echo - elog "=== Consult the release notes ===" - elog "Before doing anything, stop and consult the release notes" - elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" - echo - elog "These detail bug fixes, new features and functionality, and any" - elog "particular points that may need to be noted during the upgrade procedure." - echo - elog "If you plan to use the Scribunto extension with Lua, make sure to configure" - elog "path to Lua executable using this documentation:" - elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary" - echo - ewarn "Back up existing files and the database before upgrade." - ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" - ewarn "provides an overview of the backup process." - echo - fi -} diff --git a/www-apps/mediawiki/mediawiki-1.41.2.ebuild b/www-apps/mediawiki/mediawiki-1.41.2.ebuild deleted file mode 100644 index 3fb4f2d19a77..000000000000 --- a/www-apps/mediawiki/mediawiki-1.41.2.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -inherit webapp - -MY_BRANCH=$(ver_cut 1-2) - -DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" -HOMEPAGE="http://www.mediawiki.org" -SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" -IUSE="imagemagick mysql postgres +sqlite" -REQUIRED_USE="|| ( mysql postgres sqlite )" - -RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] - imagemagick? ( virtual/imagemagick-tools ) - !imagemagick? ( dev-lang/php[gd] ) - mysql? ( dev-lang/php[mysql,mysqli] ) - sqlite? ( - dev-db/sqlite[fts3(+)] - dev-lang/php[pdo,sqlite] - ) - virtual/httpd-php" - -need_httpd_cgi - -RESTRICT="test" - -src_unpack() { - default - - # remove lua binaries (bug #631554) - rm -r "${S}"/extensions/Scribunto/includes/Engines/LuaStandalone/binaries || die "Failed to remove Lua binaries" -} - -src_install() { - webapp_src_preinst - - # First we install docs and then copy everything left into htdocs dir - # to avoid bugs like #236411. - - # We ensure the directories are prepared for writing. The post- - # install instructions guide the user to enable the feature. - local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" - dodoc ${DOCS} docs/*.txt - docinto databases - dodoc docs/databases/* - - # Clean everything not used at the site... - rm -r ${DOCS} COPYING tests docs || die - find . -name Makefile -delete || die - - # and install - insinto "${MY_HTDOCSDIR}" - doins -r . - - # If imagemagick is enabled then setup for image upload. - # We ensure the directory is prepared for writing. - if use imagemagick ; then - webapp_serverowned "${MY_HTDOCSDIR}"/images - fi - - webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" - webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - if [[ -n ${REPLACING_VERSIONS} ]]; then - echo - elog "=== Consult the release notes ===" - elog "Before doing anything, stop and consult the release notes" - elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" - echo - elog "These detail bug fixes, new features and functionality, and any" - elog "particular points that may need to be noted during the upgrade procedure." - echo - elog "If you plan to use the Scribunto extension with Lua, make sure to configure" - elog "path to Lua executable using this documentation:" - elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary" - echo - ewarn "Back up existing files and the database before upgrade." - ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" - ewarn "provides an overview of the backup process." - echo - fi -} diff --git a/www-apps/mediawiki/mediawiki-1.41.4.ebuild b/www-apps/mediawiki/mediawiki-1.41.4.ebuild new file mode 100644 index 000000000000..3fb4f2d19a77 --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.41.4.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit webapp + +MY_BRANCH=$(ver_cut 1-2) + +DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" +HOMEPAGE="http://www.mediawiki.org" +SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" +IUSE="imagemagick mysql postgres +sqlite" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] + imagemagick? ( virtual/imagemagick-tools ) + !imagemagick? ( dev-lang/php[gd] ) + mysql? ( dev-lang/php[mysql,mysqli] ) + sqlite? ( + dev-db/sqlite[fts3(+)] + dev-lang/php[pdo,sqlite] + ) + virtual/httpd-php" + +need_httpd_cgi + +RESTRICT="test" + +src_unpack() { + default + + # remove lua binaries (bug #631554) + rm -r "${S}"/extensions/Scribunto/includes/Engines/LuaStandalone/binaries || die "Failed to remove Lua binaries" +} + +src_install() { + webapp_src_preinst + + # First we install docs and then copy everything left into htdocs dir + # to avoid bugs like #236411. + + # We ensure the directories are prepared for writing. The post- + # install instructions guide the user to enable the feature. + local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" + dodoc ${DOCS} docs/*.txt + docinto databases + dodoc docs/databases/* + + # Clean everything not used at the site... + rm -r ${DOCS} COPYING tests docs || die + find . -name Makefile -delete || die + + # and install + insinto "${MY_HTDOCSDIR}" + doins -r . + + # If imagemagick is enabled then setup for image upload. + # We ensure the directory is prepared for writing. + if use imagemagick ; then + webapp_serverowned "${MY_HTDOCSDIR}"/images + fi + + webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" + webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + + if [[ -n ${REPLACING_VERSIONS} ]]; then + echo + elog "=== Consult the release notes ===" + elog "Before doing anything, stop and consult the release notes" + elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" + echo + elog "These detail bug fixes, new features and functionality, and any" + elog "particular points that may need to be noted during the upgrade procedure." + echo + elog "If you plan to use the Scribunto extension with Lua, make sure to configure" + elog "path to Lua executable using this documentation:" + elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary" + echo + ewarn "Back up existing files and the database before upgrade." + ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" + ewarn "provides an overview of the backup process." + echo + fi +} diff --git a/www-apps/mediawiki/mediawiki-1.42.1.ebuild b/www-apps/mediawiki/mediawiki-1.42.1.ebuild deleted file mode 100644 index 3fb4f2d19a77..000000000000 --- a/www-apps/mediawiki/mediawiki-1.42.1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -inherit webapp - -MY_BRANCH=$(ver_cut 1-2) - -DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" -HOMEPAGE="http://www.mediawiki.org" -SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" -IUSE="imagemagick mysql postgres +sqlite" -REQUIRED_USE="|| ( mysql postgres sqlite )" - -RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] - imagemagick? ( virtual/imagemagick-tools ) - !imagemagick? ( dev-lang/php[gd] ) - mysql? ( dev-lang/php[mysql,mysqli] ) - sqlite? ( - dev-db/sqlite[fts3(+)] - dev-lang/php[pdo,sqlite] - ) - virtual/httpd-php" - -need_httpd_cgi - -RESTRICT="test" - -src_unpack() { - default - - # remove lua binaries (bug #631554) - rm -r "${S}"/extensions/Scribunto/includes/Engines/LuaStandalone/binaries || die "Failed to remove Lua binaries" -} - -src_install() { - webapp_src_preinst - - # First we install docs and then copy everything left into htdocs dir - # to avoid bugs like #236411. - - # We ensure the directories are prepared for writing. The post- - # install instructions guide the user to enable the feature. - local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" - dodoc ${DOCS} docs/*.txt - docinto databases - dodoc docs/databases/* - - # Clean everything not used at the site... - rm -r ${DOCS} COPYING tests docs || die - find . -name Makefile -delete || die - - # and install - insinto "${MY_HTDOCSDIR}" - doins -r . - - # If imagemagick is enabled then setup for image upload. - # We ensure the directory is prepared for writing. - if use imagemagick ; then - webapp_serverowned "${MY_HTDOCSDIR}"/images - fi - - webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" - webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" - webapp_src_install -} - -pkg_postinst() { - webapp_pkg_postinst - - if [[ -n ${REPLACING_VERSIONS} ]]; then - echo - elog "=== Consult the release notes ===" - elog "Before doing anything, stop and consult the release notes" - elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" - echo - elog "These detail bug fixes, new features and functionality, and any" - elog "particular points that may need to be noted during the upgrade procedure." - echo - elog "If you plan to use the Scribunto extension with Lua, make sure to configure" - elog "path to Lua executable using this documentation:" - elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary" - echo - ewarn "Back up existing files and the database before upgrade." - ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" - ewarn "provides an overview of the backup process." - echo - fi -} diff --git a/www-apps/mediawiki/mediawiki-1.42.3.ebuild b/www-apps/mediawiki/mediawiki-1.42.3.ebuild new file mode 100644 index 000000000000..3fb4f2d19a77 --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.42.3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit webapp + +MY_BRANCH=$(ver_cut 1-2) + +DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" +HOMEPAGE="http://www.mediawiki.org" +SRC_URI="http://releases.wikimedia.org/${PN}/${MY_BRANCH}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 ~arm ~arm64 ppc x86" +IUSE="imagemagick mysql postgres +sqlite" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND="dev-lang/php[calendar,ctype,fileinfo,iconv,intl,json(+),postgres?,session,ssl,unicode,xml,xmlreader] + imagemagick? ( virtual/imagemagick-tools ) + !imagemagick? ( dev-lang/php[gd] ) + mysql? ( dev-lang/php[mysql,mysqli] ) + sqlite? ( + dev-db/sqlite[fts3(+)] + dev-lang/php[pdo,sqlite] + ) + virtual/httpd-php" + +need_httpd_cgi + +RESTRICT="test" + +src_unpack() { + default + + # remove lua binaries (bug #631554) + rm -r "${S}"/extensions/Scribunto/includes/Engines/LuaStandalone/binaries || die "Failed to remove Lua binaries" +} + +src_install() { + webapp_src_preinst + + # First we install docs and then copy everything left into htdocs dir + # to avoid bugs like #236411. + + # We ensure the directories are prepared for writing. The post- + # install instructions guide the user to enable the feature. + local DOCS="FAQ HISTORY INSTALL README.md RELEASE-NOTES-${PV:0:4} UPGRADE" + dodoc ${DOCS} docs/*.txt + docinto databases + dodoc docs/databases/* + + # Clean everything not used at the site... + rm -r ${DOCS} COPYING tests docs || die + find . -name Makefile -delete || die + + # and install + insinto "${MY_HTDOCSDIR}" + doins -r . + + # If imagemagick is enabled then setup for image upload. + # We ensure the directory is prepared for writing. + if use imagemagick ; then + webapp_serverowned "${MY_HTDOCSDIR}"/images + fi + + webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt" + webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + + if [[ -n ${REPLACING_VERSIONS} ]]; then + echo + elog "=== Consult the release notes ===" + elog "Before doing anything, stop and consult the release notes" + elog "/usr/share/doc/${PF}/RELEASE-NOTES-${PV:0:4}.bz2" + echo + elog "These detail bug fixes, new features and functionality, and any" + elog "particular points that may need to be noted during the upgrade procedure." + echo + elog "If you plan to use the Scribunto extension with Lua, make sure to configure" + elog "path to Lua executable using this documentation:" + elog "https://www.mediawiki.org/wiki/Extension:Scribunto#Lua_binary" + echo + ewarn "Back up existing files and the database before upgrade." + ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" + ewarn "provides an overview of the backup process." + echo + fi +} diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest new file mode 100644 index 000000000000..d873f758e6b1 --- /dev/null +++ b/www-apps/rt/Manifest @@ -0,0 +1,7 @@ +AUX config.layout-gentoo 741 BLAKE2B 9d817baa9be850f9da41cdbd9db49b2bc3fbfc394bbe2ea0cd66dc497f43cb426c83765cff371ab9c922d24cd0b57cb58f205bf954b8239c6f1c6478d0626159 SHA512 d3cb968a528ccb19f64ef249f2df503e82d1763a22ea939cd202b9a0626c1d335e2b8a8db65b191e2cff105926e422670c6d435b579069a10d9c433e6bd1e0fb +AUX postinstall-en.txt 620 BLAKE2B a57e1a705fa31a2c5abb080be8e9ddea41017132c51429eb89b2ccf6f39b2052cab9d3b04b99aa0eb403187db809c8c0b35d13aa72123a0e1ec7fb75cc308383 SHA512 473acd53f962299a96b012b6c6e044590feb347efed208158ac8a1d4722c673fcddde2487556cf40fb97d201608fe066a9c243cd3f1682bea5e4039a4b5fb8dd +AUX reconfig 2133 BLAKE2B fb5fdf3d68c1ff06b0e1becd25594b4544515aea3399ef2a563cbc541aa8ccf18f0781cbd08f97504bba0980010a7756a657c5ca0d7caa227cebf15b0d0f3231 SHA512 bfeedd02918240fb1b79fe9a5f62b6bda85e3f9df2c55dd9a93deb490495bb269579a999a71bd135fe43f247774039e34947c39689461ef4083b482f02fa3c56 +AUX rt-makefile-serialize-install-prereqs.patch 543 BLAKE2B 543b6e449635278aa6f114280acd4b882115bcc22f06815bc448907ca7e03ad230671e278f382de38c902075f1e345d6404b1df4d4114deb81cb1db8da555ad4 SHA512 9ba05dfe85f9575abccce23fff4b92a55890a8b657a60f00f436b15549ea8d354cf51b2d653372d199be01beb0c64a11f2f135123085a8c60af2e96fd57e8d1d +DIST rt-5.0.6.tar.gz 19771599 BLAKE2B c4bfe5fc869f502ff27436fd53c1279144c6461102bd24d42aff1b7e7523dc3149dd5ab8fbdd5882d88a89960b32fd6a89df776b9fc0434969e98c346785f3b3 SHA512 7743967b55ad9eb606d09fc84d6ec2067431bc438515f5ec83b87222b2591e46002782f96c2fb488b5269875eb86dc0f96923dfb677239ed561494ec60db18c8 +EBUILD rt-5.0.6.ebuild 6432 BLAKE2B b7745b15cada24b64c31df0a17affbdacc16bace6b5d4022a395557fb4d6f1d91ba075ae2002fc8b9398d47ceab91a4d19643866148f31372bd4ef27c860c22a SHA512 588b0704312c6965889642503e8ec7ac5fcf4c0e123134dd2be3ba514869daa96fbf085286f7b2a8c881954959053f4459d55df5b17f2385ad523dfe02479d87 +MISC metadata.xml 595 BLAKE2B 421d99335da7358ed5669c9557912f355bed71f2df383354c4515355ca79e5c7788f2cb362e3cf54848bc0dda53be50d3a0437d438d6282682c3f7421b3750c2 SHA512 820114ed922534ace1f18028e1e01f16cfdaf9b15dab62868b74eb4cd3f778973c5ee6aaaabfb3c5e9c3e04b9edec0f62f939392b24e2d124616b29782bc4d1b diff --git a/www-apps/rt/files/config.layout-gentoo b/www-apps/rt/files/config.layout-gentoo new file mode 100644 index 000000000000..39dde0a3a7ba --- /dev/null +++ b/www-apps/rt/files/config.layout-gentoo @@ -0,0 +1,26 @@ + + + prefix: PREFIX + exec_prefix: ${prefix} + bindir: ${exec_prefix}/bin + sbindir: ${exec_prefix}/sbin + sysconfdir: ${prefix}/etc + mandir: ${prefix}/man + libdir: ${prefix}/lib + datadir: ${prefix}/share + htmldir: HTMLDIR + fontdir: ${datadir}/fonts + lexdir: ${datadir}/po + manualdir: ${datadir}/doc + staticdir: ${datadir}/static + localstatedir: ${prefix}/var + logfiledir: ${localstatedir}/log + masonstatedir: ${localstatedir}/mason_data + sessionstatedir: ${localstatedir}/session_data + customdir: ${prefix}/local + custometcdir: ${customdir}/etc + customhtmldir: ${customdir}/html + customlexdir: ${customdir}/po + customstaticdir: ${customdir}/static + customlibdir: ${customdir}/lib + diff --git a/www-apps/rt/files/postinstall-en.txt b/www-apps/rt/files/postinstall-en.txt new file mode 100644 index 000000000000..daa11ed9d14c --- /dev/null +++ b/www-apps/rt/files/postinstall-en.txt @@ -0,0 +1,19 @@ +Please follow the Gentoo install guide found at: + + https://wiki.gentoo.org/wiki/Request_Tracker + +Your local config files are located here: + + ${VHOST_ROOT}/${PN}-${PVR}/etc + +************************************************************************ +* NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE * +************************************************************************ + +Some file locations have changed. Everything is now installed, for real +this time, into: + + ${VHOST_ROOT} + +RT executables are no longer in /usr/bin. You may need to modify your +existing configuration files accordingly. diff --git a/www-apps/rt/files/reconfig b/www-apps/rt/files/reconfig new file mode 100644 index 000000000000..9a1919965386 --- /dev/null +++ b/www-apps/rt/files/reconfig @@ -0,0 +1,56 @@ +#!/bin/bash +PF=${PN}-${PVR} + +die() { + echo "#####" + echo $1 + echo "#####" + exit 1 +} + +if [ $1 = "install" ]; then + # So, some craziness happens during the install process. First, we + # have doubled slashes, which the ebuild dutifully removes, but + # then, at some point, ${ED} is removed including its trailing + # slash, which leaves us with relative path references. That's why + # we remove the leading slash instead of the trailing slash in the + # variables below so that the sed statement will actually match + # what we mean. + echo "Replacing ${ROOT#/}${MY_HOSTROOTDIR#/} with ${VHOST_ROOT}/${PF}" + echo "Replacing ${ROOT#/}${MY_HTDOCSDIR#/} with ${MY_INSTALLDIR}" + echo "Replacing RT_DIR with ${VHOST_ROOT}/${PF}" + + for file in $(find ${VHOST_ROOT}/${PF} -type f) ; do + sed -e "s|${ROOT#/}${MY_HOSTROOTDIR#/}/${PF}|${VHOST_ROOT}/${PF}|g" \ + -e "s|${ROOT#/}${MY_HTDOCSDIR#/}|${MY_INSTALLDIR}|g" \ + -e "s|RT_DIR|${VHOST_ROOT}/${PF}|g" \ + -i "${file}" || die + done + + echo + echo "If you're upgrading RT, you may need to update your database." + echo "Take a look in:" + echo + echo " ${VHOST_ROOT}/${PF}/upgrade" + echo + echo "Iterate through each sub-directory, in order, whose name is greater" + echo "than your previously installed RT version, and run the following" + echo "commands:" + echo + for step in schema acl insert ; do + echo " ${VHOST_ROOT}/${PF}/sbin/rt-setup-database \\" + echo " --action ${step} --dba DBSUPERUSER --prompt-for-dba-password \\" + echo " --datadir ${VHOST_ROOT}/${PF}/upgrade/ " + echo + done + echo "Note that some upgrade directories don't have all 3 items (schema," + echo "acl, insert) and you can skip them safely." + echo + echo "Don't forget to read the online installation guide for more details" +elif [ $1 = "clean" ]; then + echo "Please examine the contents of the following directories and delete" + echo "anything that is no longer necessary:" + echo + echo " ${VHOST_ROOT}/${PF}" + echo " ${MY_INSTALLDIR}" +fi diff --git a/www-apps/rt/files/rt-makefile-serialize-install-prereqs.patch b/www-apps/rt/files/rt-makefile-serialize-install-prereqs.patch new file mode 100644 index 000000000000..9565ea83e0d6 --- /dev/null +++ b/www-apps/rt/files/rt-makefile-serialize-install-prereqs.patch @@ -0,0 +1,12 @@ +diff -Naruw rt-4.2.11.orig/Makefile.in rt-4.2.11/Makefile.in +--- rt-4.2.11.orig/Makefile.in 2015-04-27 20:56:16.000000000 -0400 ++++ rt-4.2.11/Makefile.in 2015-05-14 13:50:05.279292835 -0400 +@@ -359,6 +359,8 @@ + rm -rf $(DESTDIR)$(MASON_DATA_PATH)/etc/* + rm -rf $(DESTDIR)$(MASON_DATA_PATH)/obj/* + ++.NOTPARALLEL: install ++ + install: testdeps config-install dirs files-install fixperms instruct + + files-install: libs-install etc-install config-install bin-install sbin-install html-install doc-install font-install po-install static-install diff --git a/www-apps/rt/metadata.xml b/www-apps/rt/metadata.xml new file mode 100644 index 000000000000..2deb9517c7c6 --- /dev/null +++ b/www-apps/rt/metadata.xml @@ -0,0 +1,17 @@ + + + + + titanofold@gentoo.org + Aaron W. Swenson + + + web-apps@gentoo.org + Gentoo Webapps + + + Add www-servers/apache support + Add www-servers/lighttpd support + Add www-servers/nginx support + + diff --git a/www-apps/rt/rt-5.0.6.ebuild b/www-apps/rt/rt-5.0.6.ebuild new file mode 100644 index 000000000000..279a82837ac6 --- /dev/null +++ b/www-apps/rt/rt-5.0.6.ebuild @@ -0,0 +1,260 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit webapp depend.apache + +DESCRIPTION="RT is an enterprise-grade ticketing system" +HOMEPAGE="https://bestpractical.com/rt/" +SRC_URI="https://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64" +IUSE="mysql +postgres fastcgi lighttpd nginx +apache" +REQUIRED_USE="^^ ( mysql postgres ) ^^ ( lighttpd nginx apache )" + +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/DBIx-SearchBuilder-1.800.0 + >=dev-perl/Date-Extract-0.07 + >=dev-perl/DateTime-Format-Natural-0.67 + >=dev-perl/Email-Address-1.912.0 + >=dev-perl/Email-Address-List-0.60.0 + >=dev-perl/Locale-Maketext-Lexicon-0.32 + >=dev-perl/MIME-tools-5.425 + >=dev-perl/Module-Versions-Report-1.05 + >=dev-perl/Role-Basic-0.12 + >=dev-perl/Symbol-Global-Name-0.05 + >=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 + >=virtual/perl-Locale-Maketext-1.06 + dev-perl/Business-Hours + dev-perl/CGI-Emulate-PSGI + dev-perl/CGI-PSGI + dev-perl/CSS-Minifier-XS + dev-perl/Class-Accessor + dev-perl/Convert-Color + dev-perl/Crypt-Eksblowfish + dev-perl/Crypt-X509 + dev-perl/Data-GUID + dev-perl/Data-ICal + dev-perl/Data-Page + dev-perl/Date-Manip + dev-perl/Encode-Detect + dev-perl/Encode-HanExtra + dev-perl/File-ShareDir + dev-perl/GnuPG-Interface + dev-perl/HTML-FormatExternal + dev-perl/HTML-FormatText-WithLinks + dev-perl/HTML-FormatText-WithLinks-AndTables + dev-perl/HTML-Gumbo + dev-perl/HTML-Mason + dev-perl/HTML-Mason-PSGIHandler + dev-perl/HTML-Parser + dev-perl/HTML-Quoted + dev-perl/HTML-RewriteAttributes + dev-perl/HTML-Scrubber + dev-perl/HTTP-Message + dev-perl/IPC-Run3 + dev-perl/JSON + dev-perl/JavaScript-Minifier-XS + dev-perl/List-MoreUtils + dev-perl/Locale-Maketext-Fuzzy + dev-perl/libwww-perl + dev-perl/MIME-Types + dev-perl/Module-Path + dev-perl/Module-Refresh + dev-perl/Moose + dev-perl/MooseX-NonMoose + dev-perl/MooseX-Role-Parameterized + dev-perl/Net-CIDR + dev-perl/Net-IP + dev-perl/Parallel-ForkManager + dev-perl/Path-Dispatcher + dev-perl/PerlIO-eol + dev-perl/Plack + dev-perl/Regexp-Common + dev-perl/Regexp-Common-net-CIDR + dev-perl/Regexp-IPv6 + dev-perl/Scope-Upper + dev-perl/Starlet + dev-perl/String-ShellQuote + dev-perl/Text-Password-Pronounceable + dev-perl/Text-Template + dev-perl/Text-WordDiff + dev-perl/Text-Wrapper + dev-perl/Time-ParseDate + dev-perl/Web-Machine + + fastcgi? ( + dev-perl/FCGI + dev-perl/FCGI-ProcManager + ) + apache? ( + dev-perl/Apache-DBI + !fastcgi? ( >=www-apache/mod_perl-2 ) + ) + lighttpd? ( dev-perl/FCGI ) + nginx? ( + dev-perl/FCGI + ) + mysql? ( >=dev-perl/DBD-mysql-2.1018 ) + postgres? ( >=dev-perl/DBD-Pg-1.43 ) +" + +RDEPEND="${DEPEND} + virtual/mta + apache? ( ${APACHE2_DEPEND} ) + lighttpd? ( + >=www-servers/lighttpd-1.3.13 + sys-apps/openrc + ) + nginx? ( + www-servers/nginx + sys-apps/openrc + www-servers/spawn-fcgi + ) +" + +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 apache ; then + web="apache" + if use fastcgi ; then + myconf+=" --with-web-handler=fastcgi" + depsconf+=" --with-FASTCGI" + else + myconf+=" --with-web-handler=modperl2" + depsconf+=" --with-MODPERL2" + fi + elif use lighttpd ; then + web="lighttpd" + myconf+=" --with-web-handler=fastcgi" + depsconf+=" --with-FASTCGI" + elif use nginx ; then + myconf+=" --with-web-handler=fastcgi" + depsconf+=" --with-FASTCGI" + web="nginx" + else + die "Pick a webserver" + 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