summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apps/wordpress/Manifest1
-rw-r--r--www-apps/wordpress/wordpress-4.5.2.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
index 4704d617400e..6125acf77b20 100644
--- a/www-apps/wordpress/Manifest
+++ b/www-apps/wordpress/Manifest
@@ -1,3 +1,4 @@
DIST wordpress-4.4.2.tar.gz 7099520 SHA256 c8a74c0f7cfc0d19989d235759e70cebd90f42aa0513bd9bc344230b0f79e08b SHA512 dfced463ece13f266c15e1b45d8e7882e58ce9cd3b7146c81a4671bc51c58998ae318bd6e45b1f7bc657e2d49d7d39f971d814998e074375129c8dff7cfcac63 WHIRLPOOL c74b1b6d303bbdb3c66c432838e12528f06c124475c3258ccbc6472143e4a9cf56bda4293d7556564eb878d0f701f0853f46f3be7a37b9a2eb035bc08815e6d4
DIST wordpress-4.5.1.tar.gz 7772980 SHA256 7bf2912bc23633fd69c80494d7ab83f69d3d222a4ca8300c7e8348e394264bb7 SHA512 5570ffce5d5da53b43ac864e000174c62a4d3e870832cce3d25337e5036171a6fec1577f5db1dcee01fd0869aa895d4bafd032a3bce9734d1cd625eaa604c00e WHIRLPOOL 7f2f943c94f7ea873247c4be2ed3926a7da8a1a228fefb5825e7654ccc3d7b9c8f7c32e3169e98a7309b98e5f4aca25601a142cf5a7e27e941b45f0cb8a68589
+DIST wordpress-4.5.2.tar.gz 7770470 SHA256 1a4d9f05142701e72413609cc30029f66af0f3b29d4ff051e888f48026d20ac9 SHA512 543a0a201881677ac249b65c281e9633f108327dc866ccd47b512734913aad3c30a8df5026ae7dca6d7cc9a38a8fd96669c53d3a4ca706d7bb77b45bf88e63bb WHIRLPOOL a18a721194dbfa3b58d064ec2735abfb3f79c883652d55d426a64f331f636397dbfb2ae60e4d8b9760d598476c55a92995bf7fa3b638c3ab886a372624a6b58d
DIST wordpress-4.5.tar.gz 7762865 SHA256 d99c9599d982c3e42e917e03628c2ced6b6b87b2a6fd05b38ebb724b4057faf0 SHA512 2d3b5f0629be434e5e0785e373ca4e8d53171ecdde8720e26d70df661afcf0e2475087a54c3b3629a4d6101e11c1840ab90db38608eca4470436b34908d4c5a7 WHIRLPOOL fa0ea4833c2237d343ebec510f966c57d5cb960bdd93abd746b25b2954adb7b103971112c7f101821fa74bb727e15ec5c1452c6a066cff6f8f9fd9f2aec71eca
diff --git a/www-apps/wordpress/wordpress-4.5.2.ebuild b/www-apps/wordpress/wordpress-4.5.2.ebuild
new file mode 100644
index 000000000000..3f425a51116b
--- /dev/null
+++ b/www-apps/wordpress/wordpress-4.5.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit webapp
+
+DESCRIPTION="Wordpress PHP and MySQL based content management system (CMS)"
+HOMEPAGE="https://wordpress.org/"
+SRC_URI="https://wordpress.org/${P/_rc/-RC}.tar.gz"
+
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="virtual/httpd-php
+ || ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
+
+S=${WORKDIR}/${PN}
+
+need_httpd_cgi
+
+IUSE="+akismet examples +themes vhosts"
+
+src_install() {
+ webapp_src_preinst
+
+ dohtml readme.html
+ rm readme.html license.txt || die
+
+ if ! use akismet ; then
+ rm -R wp-content/plugins/akismet/ || die
+ fi
+ if ! use examples ; then
+ rm wp-content/plugins/hello.php || die
+ fi
+ if ! use themes ; then
+ rm -R wp-content/themes/*/ || die
+ fi
+
+ [[ -f wp-config.php ]] || cp wp-config-sample.php wp-config.php
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r .
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/index.php
+ webapp_serverowned "${MY_HTDOCSDIR}"/wp-admin/menu.php
+ webapp_serverowned "${MY_HTDOCSDIR}"
+
+ webapp_configfile "${MY_HTDOCSDIR}"/wp-config.php
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
+
+ webapp_src_install
+}