aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flyspray
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2014-06-24 14:31:21 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2014-06-24 14:31:21 +0000
commit6bf91c4436ab7540842f0fa35d1b49841e069a17 (patch)
tree34da26e18918b8cbf499f6a17e2ef558fe2217aa /testing/flyspray
parent2100d5cd86cd0eb14d1d2cdba4133b92148cafc6 (diff)
downloadaports-6bf91c4436ab7540842f0fa35d1b49841e069a17.tar.bz2
aports-6bf91c4436ab7540842f0fa35d1b49841e069a17.tar.xz
testing/flyspray: new aport
Diffstat (limited to 'testing/flyspray')
-rw-r--r--testing/flyspray/APKBUILD53
-rw-r--r--testing/flyspray/flyspray.post-install3
2 files changed, 56 insertions, 0 deletions
diff --git a/testing/flyspray/APKBUILD b/testing/flyspray/APKBUILD
new file mode 100644
index 0000000000..9ad516fee5
--- /dev/null
+++ b/testing/flyspray/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=flyspray
+pkgver=0.9.9.7
+pkgrel=0
+pkgdesc="A PHP web-based bug tracker"
+url="http://www.flyspray.org/"
+arch="noarch"
+license="GPL2.1"
+depends="php php-xml"
+depends_dev=""
+makedepends="$depends_dev"
+install="$pkgname.post-install"
+pkggroups="www-data"
+subpackages="$pkgname-mysql $pkgname-pgsql"
+source="http://flyspray.org/$pkgname-$pkgver.zip"
+_builddir=$srcdir
+_instdir="/usr/share/webapps/$pkgname"
+prepare() {
+ sed -i -e "s/split/explode/" adodb/drivers/adodb-postgres64.inc.php
+}
+
+build() {
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p $pkgdir"$_instdir"
+ cp -ar $srcdir/* $pkgdir"$_instdir"
+ rm $pkgdir"$_instdir"/$pkgname-$pkgver.zip
+ echo "deny from all" > $pkgdir"$_instdir"/.htaccess
+ chgrp -R www-data $pkgdir"$_instdir"
+}
+
+pgsql() {
+ arch="noarch"
+ pkgdesc="Flyspray PostgreSQL support"
+ depends="flyspray php-pgsql php-pdo_pgsql php-pear-mdb2-driver-pgsql"
+ mkdir -p "$subpkgdir"$_instdir
+}
+
+mysql() {
+ arch="noarch"
+ pkgdesc="Flyspray MySQL support"
+ depends="flyspray php-mysql php-pdo_mysql php-pear-mdb2-driver-mysql"
+ mkdir -p "$subpkgdir"$_instdir
+}
+
+
+md5sums="3a218c5447d64af18f19bc63bb825e58 flyspray-0.9.9.7.zip"
+sha256sums="f05fb71d61ee3b4ab42a61efea7b2c4fc53fd4ad762c9f3ced7de664661c2f2d flyspray-0.9.9.7.zip"
+sha512sums="17d8126bfe393527ae7e64377c6580274a118e4fd449f1191190471e242479b6ed50f8451dd7074afc39fda430c0fa5dee3845092ee0ca83d3254ecc6f0b8885 flyspray-0.9.9.7.zip"
diff --git a/testing/flyspray/flyspray.post-install b/testing/flyspray/flyspray.post-install
new file mode 100644
index 0000000000..2e5bbf725c
--- /dev/null
+++ b/testing/flyspray/flyspray.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo -e "Remember to make a symlink from /usr/share/webapps/flyspray to the document root of your preferred webserver\n"
+exit 0