From af63a172d944c25782f7f689c95266ced9771d53 Mon Sep 17 00:00:00 2001 From: "Vance M. Allen" Date: Mon, 7 May 2018 11:23:01 -0600 Subject: Add support for www-apps/mediawiki-1.30.0 --- www-apps/mediawiki/Manifest | 5 ++ www-apps/mediawiki/files/postinstall-1.18-en.txt | 85 ++++++++++++++++++++++++ www-apps/mediawiki/files/postupgrade-1.16-en.txt | 44 ++++++++++++ www-apps/mediawiki/mediawiki-1.30.0.ebuild | 79 ++++++++++++++++++++++ www-apps/mediawiki/metadata.xml | 8 +++ 5 files changed, 221 insertions(+) create mode 100644 www-apps/mediawiki/Manifest create mode 100644 www-apps/mediawiki/files/postinstall-1.18-en.txt create mode 100644 www-apps/mediawiki/files/postupgrade-1.16-en.txt create mode 100644 www-apps/mediawiki/mediawiki-1.30.0.ebuild create mode 100644 www-apps/mediawiki/metadata.xml (limited to 'www-apps') diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest new file mode 100644 index 0000000..98d0394 --- /dev/null +++ b/www-apps/mediawiki/Manifest @@ -0,0 +1,5 @@ +AUX postinstall-1.18-en.txt 2611 BLAKE2B c4d110d0d7c3fc270b0dc7f134cf7de8f2ca4595692ac146c2e4cd1c3647e7399d44249059496960ae94490c5b188c986dab64d4b90901bd7fc44203493532a0 SHA512 2b6a0e00160c15466bf70189499816d18a5ea06f040ed79f2361842be93a584ea19033170dc59c1d78c590da85223a61b8d04730084e60bc7906648f2532578b +AUX postupgrade-1.16-en.txt 1514 BLAKE2B f2a7284a49638a2e1ca694a84b490f4a3348cab1afe1b022f617fc7df74c958be29e36e3c777514765b7a01758f11cfb653092e2190a5e7dc572884f5942196c SHA512 58d11cdf8daaa2ee62ca64dfeddad3ef2d10feac5b93b51f96e5802dd2915c3d969b8e99d059e79a9b62386ae70a7690db3c4e4d248501e839769bc7f24d2dd5 +DIST mediawiki-1.30.0.tar.gz 42680041 BLAKE2B 639e692acce6560b4be1c114b33c673b9ddaec3280a53ddf055a68c8aff2238051821a887d1e5d46af6784be16e1c69547ab09a249be52c7ada829e85e2d0566 SHA512 ec4aeb08c18af0e52aaf99124d43cd357328221934d593d87f38da804a2f4a5b172a114659f87f6de58c2140ee05ae14ec6a270574f655e7780a950a51178643 +EBUILD mediawiki-1.30.0.ebuild 2364 BLAKE2B 5026e3364ae048e973a6f11d898ae52831e541f3b682420bc41c4936504ec778826a1f5be34546bc2c9aa97a84c4a39a32fa571a5b73db1a2618679fdfe6bbdc SHA512 0adfcc39cfcb96f80e33d3d428e3d2cd243a36caf51a4505aed59456fde85c677b38252a383eff32d0d5946b19cd7a57516e0691961aaeab2fdcce701f204056 +MISC metadata.xml 246 BLAKE2B 6bdcea4d16a06756a1ab24fb076af6d88134c134f9239e658b7e5facb8cf6ed2f30d98938fd92bc8a3690e54273fd7f72420ccab04e7a6f7319e257a9f9ed618 SHA512 1181711d3b020b2ca7beae0a539a9b7f1abe70962cd8561900e5f06e14c9c871c61ca6088fb674de19ef3b844a1b3c29cf0f84f638b2d0cb7c030f60cd1d42ed diff --git a/www-apps/mediawiki/files/postinstall-1.18-en.txt b/www-apps/mediawiki/files/postinstall-1.18-en.txt new file mode 100644 index 0000000..bfed0d9 --- /dev/null +++ b/www-apps/mediawiki/files/postinstall-1.18-en.txt @@ -0,0 +1,85 @@ +To complete installation you need to proceed the following steps: +================================================================= + +1. Temporarily make the "mw-config" directory writable to the user the web +server is running as. The quickest way is to make the directory world +writable. For example: + +$ cd ${MY_INSTALLDIR} +$ chmod a+w mw-config + + +2. Configure database. +a.) If you know the root password on your database, the MediaWiki installation +script can create a new database for you. + +b.) If you don't know the root password, MediaWiki still needs database to +work with. So, please, read the following link and find solution which suits +your needs best: + +http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#Create_a_database + + +3. Now continue the installation through web browser by accessing the +following page: + +http://${VHOST_HOSTNAME}${VHOST_APPDIR}/mw-config/ + + +4. After the setup script has finished running successfully, a file called +LocalSettings.php is created in the "mw-config" directory. Move this file to the +root wiki directory (${MY_INSTALLDIR}): + +$ mv mw-config/LocalSettings.php . + +Set stringent permissions on the LocalSettings.php file: + +$ chown :root LocalSettings.php +$ chmod 600 LocalSettings.php + +And delete the "mw-config" directory: + +$ rm -rf mw-config + + +5. Once you have done the above, your wiki should be ready to use! + +http://${VHOST_HOSTNAME}${VHOST_APPDIR}/ + + +Enabling Optional Features and other configuration +================================================== + +Allow images and other files to be uploaded through the wiki +------------------------------------------------------------ + +If you wish to enable images and other files to be uploaded through wiki then +edit the LocalSettings.php file and set \$wgEnableUploads to 'true': + +\$wgEnableUploads = true; + +Now if MediaWiki was built with the imagemagick USE-flag the directory +permissions are correct, otherwise install ImageMagick and adjust permissions +on the images directory to allow the web server to write. For example: + +$ chown : ${MY_INSTALLDIR}/images + +IMPORTANT: Uploads need to be set up properly in order to be secure! For more +details take a look at the following page: + +http://www.mediawiki.org/wiki/Manual:$wgEnableUploads + + +Math Support +------------ + +Math support has been removed from the core mediawiki package from 1.18.0 +onwards. See http://www.mediawiki.org/wiki/Extension:Math to enable math +support. + + +Other +----- + +For other tweaks, continue with the following: +http://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#See_also diff --git a/www-apps/mediawiki/files/postupgrade-1.16-en.txt b/www-apps/mediawiki/files/postupgrade-1.16-en.txt new file mode 100644 index 0000000..e26939c --- /dev/null +++ b/www-apps/mediawiki/files/postupgrade-1.16-en.txt @@ -0,0 +1,44 @@ +These instructions help you to upgrade your mediawiki installation. + +Please NOTE: at this point it is supposed that you've already read +RELEASE-NOTES and done full wiki backup, as described here: +http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki + + +Run the update script +===================== + +Note: Make sure \$wgDBadminusr and \$wgDBadminpassword is set in your +LocalSettings.php file in your wiki root. The user needs full permissions +(shell access) on the database. + +The preferred method of performing the update is using the command-line +maintenance script, although it is also possible to re-run the web-based +installer. To run command-line maintenance script, change to the maintenance +directory and execute the update script: + +$ cd ${MY_INSTALLDIR}/maintenance +$ php update.php + +MediaWiki will inspect the existing schema and update it to work with the new +code, adding tables and columns as needed. + +For alternative ways to upgrade your wiki, please, take a look at: +http://www.mediawiki.org/wiki/Manual:Upgrading + + +Upgrade extensions +================== + +Certain extensions have been updated in order to work with MediaWiki 1.13. Be +sure to upgrade to the latest versions of such extensions. You might need to +perform manual updates to custom extensions. + + +Test the update +=============== + +Once the upgrade has completed, browse to the wiki and check basics such as +viewing and editing pages to ensure things still work as expected. + +Visit Special:Version and check that the version shown is correct. diff --git a/www-apps/mediawiki/mediawiki-1.30.0.ebuild b/www-apps/mediawiki/mediawiki-1.30.0.ebuild new file mode 100644 index 0000000..ce9c6e2 --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.30.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit webapp versionator + +MY_BRANCH=$(get_version_component_range 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" + +RDEPEND=">=dev-lang/php-5.5.9[json,mysql?,postgres?,session,xml,xmlreader] + imagemagick? ( virtual/imagemagick-tools ) + !imagemagick? ( dev-lang/php[gd] ) + sqlite? ( + dev-db/sqlite:3[fts3(+)] + >=dev-lang/php-5.5.9[pdo] + || ( dev-lang/php[sqlite] dev-lang/php[sqlite3] ) + ) + virtual/httpd-php" + +need_httpd_cgi + +RESTRICT="test" + +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 RELEASE-NOTES-${PV:0:4} UPGRADE" + dodoc ${DOCS} docs/*.txt + docinto php-memcached + dodoc docs/php-memcached/* + + # Clean everything not used at the site... + rm -rf ${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 + 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/metadata.xml b/www-apps/mediawiki/metadata.xml new file mode 100644 index 0000000..f2f2ba9 --- /dev/null +++ b/www-apps/mediawiki/metadata.xml @@ -0,0 +1,8 @@ + + + + + web-apps@gentoo.org + Gentoo Webapps + + -- cgit v1.2.3-65-gdbad