summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>2009-12-15 21:20:59 +0000
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>2009-12-15 21:20:59 +0000
commit6c43cdb0313845b60385849a2a92c8c91b14ea74 (patch)
treeb59e2ea239b91ed4cc0eba658b5baea31d720193 /www-apps
parentmedia-video/image2mpeg: New Ebuild for bug 137362 (diff)
downloadsunrise-reviewed-6c43cdb0313845b60385849a2a92c8c91b14ea74.tar.gz
sunrise-reviewed-6c43cdb0313845b60385849a2a92c8c91b14ea74.tar.bz2
sunrise-reviewed-6c43cdb0313845b60385849a2a92c8c91b14ea74.zip
www-apps/flyspray: New ebuild for bug 91078, thanks to tommy[d] and sedzimir
svn path=/sunrise/; revision=9729
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/flyspray/ChangeLog10
-rw-r--r--www-apps/flyspray/Manifest6
-rw-r--r--www-apps/flyspray/files/flyspray-0.9.9.6-system-adodb.patch39
-rw-r--r--www-apps/flyspray/files/postinstall-en.txt10
-rw-r--r--www-apps/flyspray/flyspray-0.9.9.6.ebuild51
-rw-r--r--www-apps/flyspray/metadata.xml5
6 files changed, 121 insertions, 0 deletions
diff --git a/www-apps/flyspray/ChangeLog b/www-apps/flyspray/ChangeLog
new file mode 100644
index 000000000..67aae3ac4
--- /dev/null
+++ b/www-apps/flyspray/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-apps/flyspray
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 15 Dec 2009; Nathan Phillip Brink (ohnobinki)
+ <ohnobinki@ohnopublishing.net> +flyspray-0.9.9.6.ebuild,
+ +files/flyspray-0.9.9.6-system-adodb.patch, +files/postinstall-en.txt,
+ +metadata.xml:
+ New ebuild for bug 91078, thanks to tommy[d] and sedzimir
+
diff --git a/www-apps/flyspray/Manifest b/www-apps/flyspray/Manifest
new file mode 100644
index 000000000..0579d52f4
--- /dev/null
+++ b/www-apps/flyspray/Manifest
@@ -0,0 +1,6 @@
+AUX flyspray-0.9.9.6-system-adodb.patch 1397 RMD160 70b743edbcb7080af630d94f454c48ecf14fb406 SHA1 cb2298cc67ea75f38243f4431ffced56c7cf8760 SHA256 0a4c914a6bf263a14ac11f80c93c7d43515c76cdac264e879a6c31730cbb95e5
+AUX postinstall-en.txt 317 RMD160 61fc8a45c4aaa3ddf633860e636298df5fc0fc6c SHA1 444bacb8f99062d6a21d5359dfdfefdad7ce3985 SHA256 a2bde939f95165ce41d23a524e291c3f1be3ff2e7426736e144877ea780fbaa4
+DIST flyspray-0.9.9.6.zip 1573955 RMD160 dc56992c0a85662d71245400b50553e1dfd1dfc4 SHA1 3b0e8422081197998d7d83ee5fdb1d6a0fb4d90c SHA256 c5c728bb66aca8c8ded3533387a751a129a2096b230f9dd1c16f77d1767bbe6c
+EBUILD flyspray-0.9.9.6.ebuild 1220 RMD160 e390808a19550b7c468456f29adaf051c7496c10 SHA1 847fd650e81577e0c39ca48ae5726caa94b15c3b SHA256 cf3c490eda4422b253a15af681c2cde62e2e12fdea5a3fb3179e2e1160ce8410
+MISC ChangeLog 376 RMD160 e26b7904681f736444b41425221d3369edd1e889 SHA1 499b59931c458ba5af78aa284f7edb088dc692ed SHA256 87a5fdad283bf62ed5effff0355a2156e7d9ece0f452a712293a315bb8718a51
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/www-apps/flyspray/files/flyspray-0.9.9.6-system-adodb.patch b/www-apps/flyspray/files/flyspray-0.9.9.6-system-adodb.patch
new file mode 100644
index 000000000..0acea2a98
--- /dev/null
+++ b/www-apps/flyspray/files/flyspray-0.9.9.6-system-adodb.patch
@@ -0,0 +1,39 @@
+diff -u /var/tmp/portage/www-apps/flyspray-0.9.9.6/work.x86/includes/class.database.php /tmp/buffer-content-5978U1d
+--- a/includes/class.database.php 2009-04-19 10:22:30.000000000 -0400
++++ b/includes/class.database.php 2009-12-14 18:54:57.000000000 -0500
+@@ -16,7 +16,8 @@
+ die('Do not access this file directly.');
+ }
+
+-require_once dirname(dirname(__FILE__)) . '/adodb/adodb.inc.php';
++set_include_path(get_include_path() . ':' . dirname(dirname(__FILE__)));
++require_once 'adodb/adodb.inc.php';
+
+ class Database
+ {
+
+diff -u /var/tmp/portage/www-apps/flyspray-0.9.9.6/work.amd64/setup/index.php /tmp/buffer-content-5978h_j
+--- a/setup/index.php 2009-04-24 20:20:26.000000000 -0400
++++ b/setup/index.php 2009-12-14 19:33:48.000000000 -0500
+@@ -8,9 +8,9 @@
+
+ @set_time_limit(0);
+ session_start();
+-//do it fastest as possible.
++//do it as fast as possible.
+ ini_set('memory_limit', '64M');
+-
++set_include_path(get_include_path() . ':' . dirname(dirname(__FILE__)));
+
+ if (is_readable ('../flyspray.conf.php') && count(parse_ini_file('../flyspray.conf.php')) > 0)
+ {
+@@ -88,7 +88,7 @@
+ function Setup()
+ {
+ // Look for ADOdb
+- $this->mAdodbPath = APPLICATION_PATH . '/adodb/adodb.inc.php';
++ $this->mAdodbPath = 'adodb/adodb.inc.php';
+ $this->mProductName = 'Flyspray';
+ $this->mMinPasswordLength = 8;
+
+
diff --git a/www-apps/flyspray/files/postinstall-en.txt b/www-apps/flyspray/files/postinstall-en.txt
new file mode 100644
index 000000000..7a395775a
--- /dev/null
+++ b/www-apps/flyspray/files/postinstall-en.txt
@@ -0,0 +1,10 @@
+ To finish the installation, login to
+ http://${VHOST_HOSTNAME}${VHOST_APPDIR}
+ and follow the directions.
+
+ Make sure that php's safemode is disabled.
+
+ You also must make sure that your server can
+ write to the attachments and cache subdirectories.
+ The installation instructions will remind you to
+ do so.
diff --git a/www-apps/flyspray/flyspray-0.9.9.6.ebuild b/www-apps/flyspray/flyspray-0.9.9.6.ebuild
new file mode 100644
index 000000000..57a205d7e
--- /dev/null
+++ b/www-apps/flyspray/flyspray-0.9.9.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+# we need webapp's default pkg_setup()
+inherit eutils webapp
+
+DESCRIPTION="An uncomplicated web-based bug tracking system"
+HOMEPAGE="http://flyspray.org/"
+SRC_URI="http://flyspray.org/${P}.zip"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64"
+IUSE="graphviz"
+
+# need_apache and friends not used because they aren't EAPI="2" friendly
+DEPEND="app-arch/unzip"
+RDEPEND="graphviz? ( media-gfx/graphviz )
+ virtual/httpd-php[xml]
+ || ( virtual/httpd-php[mysql]
+ virtual/httpd-php[mysqli]
+ virtual/httpd-php[postgres] )
+ dev-php/adodb"
+
+src_prepare () {
+ #http://bugs.flyspray.org/task/1617
+ epatch "${FILESDIR}"/${P}-system-adodb.patch
+
+ mv htaccess.dist .htaccess || die
+ touch ${PN}.conf.php || die
+
+ rm -r adodb || die "removing bundled dev-php/adodb"
+}
+
+src_install () {
+ webapp_src_preinst
+
+ dodoc docs/*.txt || die
+ rm -r docs || die
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r . || die
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/{attachments,cache,${PN}.conf.php}
+ webapp_configfile "${MY_HTDOCSDIR}"/{.htaccess,${PN}.conf.php}
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}
diff --git a/www-apps/flyspray/metadata.xml b/www-apps/flyspray/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/www-apps/flyspray/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>