diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/mediawiki |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/mediawiki')
-rw-r--r-- | www-apps/mediawiki/Manifest | 7 | ||||
-rw-r--r-- | www-apps/mediawiki/files/postinstall-1.18-en.txt | 85 | ||||
-rw-r--r-- | www-apps/mediawiki/files/postupgrade-1.16-en.txt | 44 | ||||
-rw-r--r-- | www-apps/mediawiki/mediawiki-1.27.3.ebuild | 79 | ||||
-rw-r--r-- | www-apps/mediawiki/metadata.xml | 8 |
5 files changed, 223 insertions, 0 deletions
diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest new file mode 100644 index 000000000000..5a24ef217e01 --- /dev/null +++ b/www-apps/mediawiki/Manifest @@ -0,0 +1,7 @@ +AUX postinstall-1.18-en.txt 2611 SHA256 8388d74e84d63c40cbc697e25639be5f07108ecc13497346fccf9d89ab0484eb SHA512 2b6a0e00160c15466bf70189499816d18a5ea06f040ed79f2361842be93a584ea19033170dc59c1d78c590da85223a61b8d04730084e60bc7906648f2532578b WHIRLPOOL 254b014ac9a7cf431958ade7827afadbf7e48ec255e1ea39e7ac3fa091f7d321376b760dad39d0be3af3a6cb342aaeac9d4e2329816bf3c6b3e4e55e1ac05d4b +AUX postupgrade-1.16-en.txt 1514 SHA256 5d7aedb456fbff83adf0335ca5e1c99062e694e178bc93d749615ff63dc883f4 SHA512 58d11cdf8daaa2ee62ca64dfeddad3ef2d10feac5b93b51f96e5802dd2915c3d969b8e99d059e79a9b62386ae70a7690db3c4e4d248501e839769bc7f24d2dd5 WHIRLPOOL f17f927bfedfdc502c752276c0876bebe771918242be98de32d5fc51003a054132f4f6b4a16caeca293c1ebb44c12bc322eee5efcefda228ea97136b00c6e1ee +DIST mediawiki-1.27.3.tar.gz 31509270 SHA256 11d470582b52a471b4e99735b36a44b230681847a97ef032c2fc050fd8aea823 SHA512 bc6228342b589a3acb0f5623b9ef45982d7aab032ff322aaf7bda7ac3ee16a7732b8013698d8f509da4310bbb65c12a73b7bbe4612d5e0e3d93965199efdc8eb WHIRLPOOL 23fd4432a52c454a8354fcd325d9081b888f14f199020e43798eaa3cb904c8b7fff70e5c38ee77fcf982d755deeaea2071cfcb2133b1b88a92a7afdab56577a9 +EBUILD mediawiki-1.27.3.ebuild 2364 SHA256 66e6bb62c33a6f5ef5009b279ac5c55e3f1df679bd0b09a35bc2eea25d1652fc SHA512 0adfcc39cfcb96f80e33d3d428e3d2cd243a36caf51a4505aed59456fde85c677b38252a383eff32d0d5946b19cd7a57516e0691961aaeab2fdcce701f204056 WHIRLPOOL 41ce11513758432314d33cc181479f5c1511e442ef942a2c83cbebfed2c156b1d182e8330b3bdd7a0d7fe34bde61192d72fdf0ce57083ff2f988052ab698b075 +MISC ChangeLog 5151 SHA256 a7c346cb02a8151ac1bdda0ea43cc8df8258e4e047024bc7d5215dda5a2a2719 SHA512 31b96eeb49f4e899cc62e29fd406bf4fa54c8c8810fc56aec1d76b5bbb0f5819202174634ac36845c0d87d981ce8164077e45b9b04fc88cb4255e510536dfa54 WHIRLPOOL fd4894448d6b27625b0876c4020155a90b378284ec50253e1fbd09e80a0e8e62b747b7e5c7dd934fd2e2111d3dc07c836c864dc36c565baec0e19120c7d5f00e +MISC ChangeLog-2015 48622 SHA256 47f0b0f7fe6213cbf5f5b0291158772413be515571e50fe38739eba16131609e SHA512 78861ff39da3d7d2862e59d8e9ced02df10de1d24d1601d33895b9af32381052c26eff0ba90e0990c08346d54b9bc85a0db25023ef6133817d6fadf653a21301 WHIRLPOOL 4c94dfb8852c60aa16f74775b12b62a57ca2de20cbbb3f64186b083dceb49f0faf0b20f31ee7c12ebdf5038bd7d30a796e930c4a706f038aa21064931b62ba30 +MISC metadata.xml 246 SHA256 f696b469729aeeb7810f246774e90471415680a9ebd6b55c56c13a5213057508 SHA512 1181711d3b020b2ca7beae0a539a9b7f1abe70962cd8561900e5f06e14c9c871c61ca6088fb674de19ef3b844a1b3c29cf0f84f638b2d0cb7c030f60cd1d42ed WHIRLPOOL fef696fa5b101de1ba4bdc0188a4757648d9eb40d4b01408cf17416d1f39909026a80e4b082d8497801aae1caea588b6d28616cd3853e1b03b94a8fd672f9c85 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 000000000000..bfed0d9215cd --- /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 <webserver-user>: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 <webserver-user>:<webserver-group> ${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 000000000000..e26939c36e3d --- /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.27.3.ebuild b/www-apps/mediawiki/mediawiki-1.27.3.ebuild new file mode 100644 index 000000000000..ce9c6e247e96 --- /dev/null +++ b/www-apps/mediawiki/mediawiki-1.27.3.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 000000000000..f2f2ba9e2823 --- /dev/null +++ b/www-apps/mediawiki/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |