aboutsummaryrefslogtreecommitdiffstats
path: root/main/patchwork/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-23 10:11:32 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-23 10:11:32 +0200
commit62bce78b03ac257d215b380922a4021c8cbf637a (patch)
tree7386f46f7e62cac0826249fd25e02a06fa03d4bb /main/patchwork/APKBUILD
parentcd463e40cd7a1572c3a6c5d0d02e0a3ac2f0f65f (diff)
downloadaports-62bce78b03ac257d215b380922a4021c8cbf637a.tar.bz2
aports-62bce78b03ac257d215b380922a4021c8cbf637a.tar.xz
testing/patchwork: move to main
Diffstat (limited to 'main/patchwork/APKBUILD')
-rw-r--r--main/patchwork/APKBUILD90
1 files changed, 90 insertions, 0 deletions
diff --git a/main/patchwork/APKBUILD b/main/patchwork/APKBUILD
new file mode 100644
index 0000000000..7a1eb129cb
--- /dev/null
+++ b/main/patchwork/APKBUILD
@@ -0,0 +1,90 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=patchwork
+pkgver=0_git20150420
+pkgrel=5
+pkgdesc="Web-based patch tracking system "
+url="http://jk.ozlabs.org/projects/patchwork/"
+arch="noarch"
+license="GPL"
+depends="py-django1.5 py-django-registration git"
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc $pkgname-apache2-wsgi:apache2_wsgi $pkgname-mysql
+ $pkgname-postgresql pwclient:pwclient"
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
+ 0001-support-busybox-readlink.patch
+ 0001-use-webapps-dir-structure.patch
+ 0001-pwclient-set-default-url-to-alpine-patchwork.patch"
+giturl="git://ozlabs.org/home/jk/git/patchwork"
+disturl="dev.alpinelinux.org:/archive/$pkgname/"
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/share/webapps/$pkgname
+ install -Dm644 COPYING \
+ "$pkgdir"/usr/share/doc/$pkgname/COPYING || return 1
+ rm -f COPYING
+ install -Dm644 apps/settings.py \
+ "$pkgdir"/etc/$pkgname/local_settings.py || return 1
+ mv * "$pkgdir"/usr/share/webapps/$pkgname
+ cd "$pkgdir"/usr/share/webapps/patchwork/apps
+ ln -sf /etc/patchwork/local_settings.py || return 1
+}
+
+apache2_wsgi() {
+ pkgdesc="$pkgname apache2 wsgi support"
+ depends="apache2 apache2-mod-wsgi"
+ install_if="apache2-mod-wsgi"
+ install -Dm644 "$pkgdir"/usr/share/webapps/patchwork/lib/apache2/patchwork.wsgi.conf \
+ "$subpkgdir"/etc/apache2/conf.d/patchwork.wsgi.conf || return 1
+}
+
+mysql() {
+ pkgdesc="$pkgname mysql support"
+ depends="py-mysqldb"
+ mkdir -p "$subpkgdir"
+}
+
+postgresql() {
+ pkgdesc="$pkgname postgresql support"
+ depends="py-psycopg2"
+ mkdir -p "$subpkgdir"
+}
+
+pwclient() {
+ pkgdesc="command-line client for patchwork"
+ depends="python"
+ install -Dm775 "$pkgdir"/usr/share/webapps/patchwork/apps/patchwork/bin/pwclient \
+ "$subpkgdir"/usr/bin/pwclient || return 1
+}
+
+md5sums="d327c8ca2f219f597855afadaa520c1d patchwork-0_git20150420.tar.gz
+597e39e9742fa8352b3d34f59f8d404e 0001-support-busybox-readlink.patch
+629ebd3fa8ed122b319a73161367c9c1 0001-use-webapps-dir-structure.patch
+82d64c7d30a19789798af8630b7b4da7 0001-pwclient-set-default-url-to-alpine-patchwork.patch"
+sha256sums="769f6839f4e25321ecedaf8e7561e1a5e71e2fdb942c33aefb0798f651ed0914 patchwork-0_git20150420.tar.gz
+b87b6ab985e30e75d641d31cfae76420eb3dc5e90b7484f217dd92454e3495af 0001-support-busybox-readlink.patch
+6266599432e20b2c638023417346d94840e4fbaaedd1899895904315376ad50f 0001-use-webapps-dir-structure.patch
+dc188344123594add1a3140e8f02d8fc453b06dc0237110f11e7d43791b9a00d 0001-pwclient-set-default-url-to-alpine-patchwork.patch"
+sha512sums="5e0f93afa3d9afbb97a7e44e355f0f6fae87e77ea8a7d960637984f8f33751a0acd937efc583e6ec6405ca3ff7eb86d100b8ae66e565961afac572fd72587a25 patchwork-0_git20150420.tar.gz
+09fc0d88ce766bce53a0789276e6ad3e52049771e3945ae6a9e6b61cc706f5a44d398de5ae23055b2d205fd3844b84fca538617142e194c5ca149263b9afa0bb 0001-support-busybox-readlink.patch
+429df7faef59701d3754b001a0834fe4a91c13f20a2f50d407d21b145f167ce241fea046e8c251b1993c2e8b7e0aeb29bf69227446ca2236db0e5dd576f38477 0001-use-webapps-dir-structure.patch
+1a5007f28ca7f1ed98dfa7c43e4388d76833d6f80b102e30f850517d8ceb1c86277c0c9c048a8987ede20001bc208e2be8147d20ec9354216bd2e751c72ebc97 0001-pwclient-set-default-url-to-alpine-patchwork.patch"