summaryrefslogtreecommitdiff
path: root/www-apps
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2015-10-25 18:10:49 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2015-10-25 18:50:24 +0000
commitef2d20a20ecf977ed5b942776b12f1b59692b3af (patch)
tree55c15f8492577f16741e833f2365e070743e8e90 /www-apps
parentwww-client/arcanist: Version bump (diff)
downloadportage-ef2d20a20ecf977ed5b942776b12f1b59692b3af.tar.xz
www-apps/phabricator: Version bump
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/phabricator/ChangeLog7
-rw-r--r--www-apps/phabricator/Manifest4
-rw-r--r--www-apps/phabricator/files/20151024-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch46
-rw-r--r--www-apps/phabricator/phabricator-20151024.ebuild175
4 files changed, 231 insertions, 1 deletions
diff --git a/www-apps/phabricator/ChangeLog b/www-apps/phabricator/ChangeLog
index 6594189a..6dc0817b 100644
--- a/www-apps/phabricator/ChangeLog
+++ b/www-apps/phabricator/ChangeLog
@@ -2,6 +2,13 @@
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*phabricator-20151024 (25 Oct 2015)
+
+ 25 Oct 2015; Bertrand Jacquin <bertrand@jacquin.bzh>
+ +files/20151024-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch,
+ +phabricator-20151024.ebuild:
+ www-apps/phabricator: Version bump
+
09 Oct 2015; Bertrand Jacquin <bertrand@jacquin.bzh> files/webapp-hook:
www-apps/phabricator: Do not stop web server while updating storage
diff --git a/www-apps/phabricator/Manifest b/www-apps/phabricator/Manifest
index e6400544..8f824d33 100644
--- a/www-apps/phabricator/Manifest
+++ b/www-apps/phabricator/Manifest
@@ -2,6 +2,7 @@ AUX 20150414-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1671 SHA
AUX 20150727-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1671 SHA256 38f283fb57b7c148f232d8d2c3c8aff021e287efe28e5317bf793ceb350cd32c WHIRLPOOL 3bd3a1c19314dbecd1d9c1e94140437c7e712a79c72868ea636bbae13024bb99215669fd88efd69c57116ee3e6df46ebfce43ba40a7240081d4e0e318fabd62e
AUX 20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1671 SHA256 38f283fb57b7c148f232d8d2c3c8aff021e287efe28e5317bf793ceb350cd32c WHIRLPOOL 3bd3a1c19314dbecd1d9c1e94140437c7e712a79c72868ea636bbae13024bb99215669fd88efd69c57116ee3e6df46ebfce43ba40a7240081d4e0e318fabd62e
AUX 20151005-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1671 SHA256 4900969a7718ec252bdbf9de49c8cacf47ffcc26b611649b7d523303a2b8e0d3 WHIRLPOOL 04e302e04a9f048e7aa2938fc6bb58beeb739ebf15be24b6633f81390360d567fef773be2658e27e08a8063f33fada3a06544b82b6014b77b775f2ae134fcaa9
+AUX 20151024-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1671 SHA256 61647aafcd53dbb9b259fea0cb55160701b0f6bacb7444b1aa9306a22166c0f2 WHIRLPOOL 85c15de0f58b6c049452719f571b7adca59cbac48cc8d808c30194f982cdc993a020d44477f2c0d21d57e97259e2a496db5cdb3939d8cde42a983c255e2df961
AUX 9999-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1671 SHA256 38f283fb57b7c148f232d8d2c3c8aff021e287efe28e5317bf793ceb350cd32c WHIRLPOOL 3bd3a1c19314dbecd1d9c1e94140437c7e712a79c72868ea636bbae13024bb99215669fd88efd69c57116ee3e6df46ebfce43ba40a7240081d4e0e318fabd62e
AUX aphlictd.confd 220 SHA256 da99929f9aab168889e4a6d871b61947a3dcad4e12e1ca206967ff09cd20d558 WHIRLPOOL 51db9a92af0acbf2b3ca9ce2b5e64edf625011805312bec5a3cf38d3a491d1dfc8215828b8981eca7b3c8dc6d0297f7b06df365dac9914bdac196f72dc78df53
AUX aphlictd.initd 1618 SHA256 1d02bad1035b511969ffd4ea27b1b4929e87995a773575555e26adbf14d4f877 WHIRLPOOL 2dca73e8986b3ce19902e43f29f0dc86c18764c37afb06d1d85fbff7a60d6e02dad6d784397c80843b7f5f6c0f394fb1337cf358496f68f39498c190e6f51775
@@ -14,6 +15,7 @@ EBUILD phabricator-20150414.ebuild 4681 SHA256 622e6533f7edecba06190089218c6245f
EBUILD phabricator-20150727.ebuild 4681 SHA256 d1b7cc3d883f147e141842f09a7ef55846f0fab2a9749c9585a79be47ecfaa4e WHIRLPOOL 26605826bc523b8d593ccba998e9cc2674e2f50e6d9154dc16efe84c849615b29c56ae97453e89b1aef5c1dc9e9edc8d9be80fd2ba443a25817b615fd6151ec5
EBUILD phabricator-20150815.ebuild 4681 SHA256 9c1da4fe9a55c5d01e4a8d0aaf8a3aebf65ebeab6297696505229ce9d8172708 WHIRLPOOL a7cc4cb87475e19ad91534e1b79cec997a240056e491b84a9a98e1ceca1afc2d87e4febbaf8be11291f4d6f46c7c8d7b0a21f7afa46cee94697162a6602c20ed
EBUILD phabricator-20151005.ebuild 4700 SHA256 a3b882ba8b137a43b0f6b7f270cedea5e835d659460b905bbaf9bf0a08f614d1 WHIRLPOOL 4064a6cb8d553a7731dcfcab4adfc3f19f70e1765fe3f5ef2a5158f4f2fba58bca5679406231d1aee6f4ceda2eb68e97cb2355e8c31e792706315c9c5e0abbcf
+EBUILD phabricator-20151024.ebuild 4700 SHA256 d9d2ca64b6452da39dd7431f2c458dee83170bbfc9be109c1f7921a361d47101 WHIRLPOOL f1beacdc0f8f0e44bf3370067ec88b01dc3dea4c0ea213c291ee9936fbfa46c055f65596328014aac743bd6552c9b1b26df64d66b02298ac30212559e5b580db
EBUILD phabricator-9999.ebuild 4579 SHA256 b79fbc9bc79ea393e59d52ed24ce92fe518de31b573c31dd87fdbaed44950de8 WHIRLPOOL 8e23dd67e2b6f5c10863cc352fbd7962bb0e2933f5c27335995e2e43223d1217ee6d52a40f192e28c751ebf82b0d39217201cea9d3c414c4d6af9cdfbfba811d
-MISC ChangeLog 9649 SHA256 e728fab0f5ade8099828f42f6401d1566e74036d1ab98b5e707fbb88d606625c WHIRLPOOL 895ca399797d64ce6490ec80bf75b592b390a00913dc705d4674cd746cbdef257da058b25563ffaa1d7b759dcbc592597390d839c79abd296913d4d7bbed1ec3
+MISC ChangeLog 9889 SHA256 29be5a6c3b65ff067f85726960ac2d52f671b843ced326d6bf545c7df925ff91 WHIRLPOOL 05c1dea168e50e4a4823da2eb8ce2762f0c58fc580d3b52e02c52ef2ff30753810e9032ed2dc4c3ab443a12c1f766a57b94fe9e6529071e10f8e505f0b12c66c
MISC metadata.xml 655 SHA256 0a90f5e0e963495bd177d96a2c5b04a940a2bab969b6921e02655eb9d959493c WHIRLPOOL e817700577f9691c696b0d4b18df79be591a4fc2318af0ebd0add1fbe323de169b8ff03384883734ac7c2d6c93414e1b6edcadf69ea25a35225945b8bdf118c1
diff --git a/www-apps/phabricator/files/20151024-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch b/www-apps/phabricator/files/20151024-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch
new file mode 100644
index 00000000..53b13f51
--- /dev/null
+++ b/www-apps/phabricator/files/20151024-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch
@@ -0,0 +1,46 @@
+From 09494055660adef6427a8b0a94f0f179d0dd435b Mon Sep 17 00:00:00 2001
+From: Bertrand Jacquin <bertrand@jacquin.bzh>
+Date: Sat, 22 Feb 2014 18:31:14 +0100
+Subject: [PATCH] MEDIUM: Get VERSION for files in /usr/share/<PN>/VERSION
+ rather than from git
+
+---
+ .../config/controller/PhabricatorConfigAllController.php | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/src/applications/config/controller/PhabricatorConfigAllController.php b/src/applications/config/controller/PhabricatorConfigAllController.php
+index 17bf65f..5f6b6c7 100644
+--- a/src/applications/config/controller/PhabricatorConfigAllController.php
++++ b/src/applications/config/controller/PhabricatorConfigAllController.php
+@@ -105,22 +105,24 @@ final class PhabricatorConfigAllController
+ ),
+ array(
+ 'name' => pht('libphutil Version'),
+- 'root' => 'phutil',
++ 'root' => 'libphutil',
+ ),
+ );
+
+ $futures = array();
+ foreach ($specs as $key => $spec) {
+- $root = dirname(phutil_get_library_root($spec['root']));
+- $futures[$key] = id(new ExecFuture('git log --format=%%H -n 1 --'))
+- ->setCWD($root);
++ $vfile = "/usr/share/" . $spec['root'] . "/VERSION";
++ if (file_exists($vfile)) {
++ $futures[$key] = file_get_contents($vfile);
++ } else {
++ $futures[$key] = '';
++ }
+ }
+
+ $results = array();
+ foreach ($futures as $key => $future) {
+- list($err, $stdout) = $future->resolve();
+- if (!$err) {
+- $name = trim($stdout);
++ if (!empty($future)) {
++ $name = trim($future);
+ } else {
+ $name = pht('Unknown');
+ }
diff --git a/www-apps/phabricator/phabricator-20151024.ebuild b/www-apps/phabricator/phabricator-20151024.ebuild
new file mode 100644
index 00000000..7edd3e77
--- /dev/null
+++ b/www-apps/phabricator/phabricator-20151024.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WEBAPP_NO_AUTO_INSTALL=yes
+WEBAPP_MANUAL_SLOT=yes
+inherit git-r3 webapp
+
+DESCRIPTION="Collection of web applications which makes it easier to scale software companies"
+HOMEPAGE="http://phabricator.org"
+EGIT_REPO_URI="git://github.com/phacility/phabricator.git"
+EGIT_BRANCH="stable"
+EGIT_COMMIT="9520a6b0ed2ee110d517a3b33df8fc5d90cbc2d8"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="git highlight mail mercurial subversion ssl test abi_x86_x32"
+REQUIRED_USE="test? ( git mercurial subversion )"
+
+DEPEND="virtual/awk:0
+ test? (
+ =www-client/arcanist-20151024:0[test]
+ )"
+RDEPEND=">=app-admin/webapp-config-1.51-r1:0
+ sys-apps/gentoo-functions
+ || (
+ >=www-servers/apache-2.2.7:2[apache2_modules_rewrite]
+ www-servers/nginx:0
+ www-servers/lighttpd:0
+ )
+ app-misc/jq:0
+ >=dev-lang/php-5.2.3[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,ssl?,unicode]
+ dev-php/pecl-apcu
+ virtual/mysql
+ =dev-php/libphutil-20151024:0
+ !abi_x86_x32? ( net-libs/nodejs:0 )
+ =www-client/arcanist-20151024:0[git?,mercurial?,subversion?]
+ git? ( dev-vcs/git:0 )
+ mercurial? ( dev-vcs/mercurial:0 )
+ subversion? ( dev-vcs/subversion:0 )
+ highlight? ( dev-python/pygments:0 )
+ mail? ( dev-php/pecl-mailparse:0 )"
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if use test ; then
+ einfo "Environnement variables you can tweak for database tests"
+ einfo " PHABRICATOR_MYSQL_HOST (default my.cnf[client].host || my.cnf[client].socket)"
+ einfo " PHABRICATOR_MYSQL_USER (default my.cnf[client].user || current user)"
+ einfo " PHABRICATOR_MYSQL_PASS (default my.cnf[client].password || empty)"
+ einfo
+ einfo "src_test() may fail if such variable are not defined"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch"
+
+ echo "${EGIT_VERSION}" > "${S}/VERSION"
+
+ find -type f -name .gitignore -print0 \
+ | xargs -0 --no-run-if-empty -- \
+ rm
+
+ rm -r scripts/install
+
+ # Replace 'env' shebang to files it point to
+ find -type f \
+ | sort \
+ | xargs -n 1 --no-run-if-empty -- \
+ awk 'NR == 1 && /^#!\/usr\/bin\/env/ {print FILENAME}' \
+ | while read ; do
+ set -- $(sed -ne '1 s:^#!\([^ ]*\) ::p;q' ${REPLY})
+ cmd="$1" ; shift ; args="$@"
+
+ case "${cmd}" in
+ bash|php) ;;
+ *) continue ;;
+ esac
+
+ path="$(type -p ${cmd})" || continue
+ [[ -z "${path}" ]] && continue
+
+ einfo "Changing ${REPLY} shebang to #!${path} ${args}"
+ sed -i \
+ -e "1 s:^#!.*:#!${path} ${args}:" \
+ "${REPLY}"
+ eend $?
+ done
+}
+
+src_test() {
+ local BASE_URI="http://localhost.localdomain"
+
+ einfo "Setting phabricator.base-uri='${BASE_URI}'"
+ bin/config set phabricator.base-uri "${BASE_URI}" > /dev/null
+ eend $?
+
+ if [[ -n "${PHABRICATOR_MYSQL_HOST}" ]] ; then
+ einfo "Setting mysql.host='${PHABRICATOR_MYSQL_HOST}'"
+ bin/config set mysql.host "${PHABRICATOR_MYSQL_HOST}" > /dev/null
+ eend $?
+ fi
+
+ if [[ -n "${PHABRICATOR_MYSQL_USER}" ]] ; then
+ einfo "Setting mysql.user='${PHABRICATOR_MYSQL_USER}'"
+ bin/config set mysql.user "${PHABRICATOR_MYSQL_USER}" > /dev/null
+ eend $?
+ fi
+
+ if [[ -n "${PHABRICATOR_MYSQL_PASS}" ]] ; then
+ einfo "Setting mysql.pass='${PHABRICATOR_MYSQL_PASS}'"
+ bin/config set mysql.pass "${PHABRICATOR_MYSQL_PASS}" > /dev/null
+ eend $?
+ fi
+
+ arc unit --everything --no-coverage || die "arc unit failed"
+
+ # Cleanup tests only config files
+ rm conf/local/local.json
+}
+
+src_install() {
+ insinto "/usr/share/${PN}"
+ doins VERSION
+
+ webapp_src_preinst
+
+ # All directories must be private (ie accessible in hostroot),
+ # expect webroot that will become htdocs
+ insinto "${MY_HOSTROOTDIR}"
+ doins -r bin conf externals resources scripts src support
+
+ # All files and directories present in webroot/ will be
+ # installed in htdocs
+ insinto "${MY_HTDOCSDIR}"
+ doins -r webroot/*
+
+ newins "${FILESDIR}/htaccess" .htaccess
+
+ # Make executable all shebanged files
+ find "${ED}" -type f \
+ | xargs -n 1 --no-run-if-empty -- \
+ awk 'NR == 1 && /^#!/ {print FILENAME}' \
+ | sed -e "s:${ED}:/:" \
+ | xargs --no-run-if-empty -- \
+ fperms 755
+
+ webapp_configfile "${MY_HTDOCSDIR}/.htaccess"
+ webapp_hook_script "${FILESDIR}/webapp-hook"
+
+ webapp_src_install
+
+ newinitd "${FILESDIR}/phd.initd" phd
+ newconfd "${FILESDIR}/phd.confd" phd
+
+ newinitd "${FILESDIR}/aphlictd.initd" aphlictd
+ newconfd "${FILESDIR}/aphlictd.confd" aphlictd
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotate" "${PN}"
+
+ dodoc NOTICE README.md
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+
+ elog
+ elog "For more info about how to configure, see"
+ elog " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html"
+}