blob: 919fd7ff77394639d555a37ccf25949e1f147a3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=patchwork
pkgver=1.1.0
pkgrel=0
pkgdesc="Web-based patch tracking system "
url="http://jk.ozlabs.org/projects/patchwork/"
arch="noarch"
license="GPL"
depends="py-django py-django-registration git py-psycopg2"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc $pkgname-apache2-wsgi:apache2_wsgi $pkgname-mysql
$pkgname-postgresql pwclient:pwclient"
source="$pkgname-$pkgver.tar.gz::https://github.com/getpatchwork/$pkgname/archive/v$pkgver.tar.gz
0001-support-busybox-readlink.patch
0002-remove-uneeded-bashism-from-tools-and-change-path.patch"
_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 patchwork/settings/production.example.py \
"$pkgdir"/etc/$pkgname/production.py || return 1
mv * "$pkgdir"/usr/share/webapps/$pkgname
cd "$pkgdir"/usr/share/webapps/patchwork/patchwork/settings
ln -sf /etc/patchwork/production.py || return 1
}
apache2_wsgi() {
pkgdesc="$pkgname apache2 wsgi support"
depends="apache2 apache2-mod-wsgi"
install_if="$pkgname=$pkgver-r$pkgrel 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/patchwork/bin/pwclient \
"$subpkgdir"/usr/bin/pwclient || return 1
}
md5sums="4eb35ccb163b8effdbd200a4634177b8 patchwork-1.1.0.tar.gz
c0bf2a78294773e6a5dc5fb5c9b525cf 0001-support-busybox-readlink.patch
2dde450ee27a24ea4b0448b1331e7cc9 0002-remove-uneeded-bashism-from-tools-and-change-path.patch"
sha256sums="28fe96632b3eba23869aaba9d63cfc199440b772acfe38a8827241a5053629d0 patchwork-1.1.0.tar.gz
43159a12dbbd4161ae1476c38b5435517dbc7260a1e25aa6263038cc4c267b99 0001-support-busybox-readlink.patch
499fc47ac715901fe0a5f5043f7ee722ab39e694451c70982830e1c728ea136d 0002-remove-uneeded-bashism-from-tools-and-change-path.patch"
sha512sums="9b8308cb210fac58163a0f4acb3d8105593ed3c60c673f9e372b9ef27366aca3af34a0143a936939ef05a7fbb303e739924a427b31905e6773e24e19f938b57b patchwork-1.1.0.tar.gz
a5d4e24741b66092a39c1ef4fdc76dffa1ddf87a69544ab0c374fb0701b0f7340a62ead86835d9bb412df5713f3ea3c0218e9e2e0cd01d9a1aad9414a3cc75fa 0001-support-busybox-readlink.patch
12d1b184c6cb1d3f2c51adab6b60638e4869e055e677897bb66ee1a52312e77817bec543842324e2cbc2c226f3ab9d11c3782b5ef3a6f5f5712996cadbc6c9c9 0002-remove-uneeded-bashism-from-tools-and-change-path.patch"
|