mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	The cargo vars are now set in abuild.conf by default.
Newlines done with:
    find . -name APKBUILD -exec sed -i '/^$/N;/^\n$/D' {} \;
See also: https://stackoverflow.com/a/4522043
		
	
			
		
			
				
	
	
		
			73 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Con#tributor: Francesco Colista <fcolista@alpinelinux.org>
 | |
| # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 | |
| pkgname=patchwork
 | |
| pkgver=3.1.1
 | |
| pkgrel=0
 | |
| pkgdesc="Web-based patch tracking system"
 | |
| url="https://github.com/getpatchwork/patchwork"
 | |
| arch="noarch"
 | |
| license="GPL-2.0-or-later"
 | |
| options="!check"
 | |
| depends="
 | |
| 	py3-django
 | |
| 	py3-django-rest-framework
 | |
| 	py3-django-filter
 | |
| 	py3-psycopg2
 | |
| 	py3-sqlparse
 | |
| 	"
 | |
| subpackages="
 | |
| 	$pkgname-doc
 | |
| 	$pkgname-uwsgi-apache2:apache2_wsgi
 | |
| 	$pkgname-uwsgi-nginx:nginx_wsgi
 | |
| 	"
 | |
| source="patchwork-$pkgver.tar.gz::https://github.com/getpatchwork/patchwork/archive/v$pkgver.tar.gz
 | |
| 	0001-support-busybox-readlink.patch
 | |
| 	0002-remove-uneeded-bashism-from-tools-and-change-path.patch
 | |
| 	nginx-uwsgi-patchwork-conf.ini
 | |
| 	nginx-patchwork.conf
 | |
| 	"
 | |
| 
 | |
| # secfixes:
 | |
| #   2.0.1-r1:
 | |
| #     - CVE-2019-13122
 | |
| 
 | |
| package() {
 | |
| 	mkdir -p "$pkgdir"/usr/share/webapps/$pkgname
 | |
| 	install -Dm644 COPYING \
 | |
| 		"$pkgdir"/usr/share/doc/$pkgname/COPYING
 | |
| 	rm -f COPYING
 | |
| 	install -Dm644 patchwork/settings/production.example.py \
 | |
| 		"$pkgdir"/etc/$pkgname/production.py
 | |
| 	mv * "$pkgdir"/usr/share/webapps/$pkgname
 | |
| 	cd "$pkgdir"/usr/share/webapps/patchwork/patchwork/settings
 | |
| 	ln -sf /etc/patchwork/production.py
 | |
| }
 | |
| 
 | |
| apache2_wsgi() {
 | |
| 	pkgdesc="$pkgname apache2 wsgi support"
 | |
| 	depends="apache2 apache2-mod-wsgi"
 | |
| 	replaces="$pkgname-apache2-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
 | |
| }
 | |
| 
 | |
| nginx_wsgi() {
 | |
| 	pkgdesc="$pkgname nginx wsgi support"
 | |
| 	depends="nginx uwsgi-python"
 | |
| 	replaces="$pkgname-nginx_wsgi"
 | |
| 	install_if="$pkgname=$pkgver-r$pkgrel nginx uwsgi"
 | |
| 	install -Dm644 "$srcdir"/nginx-patchwork.conf \
 | |
| 		"$subpkgdir"/etc/nginx/conf.d/patchwork.conf
 | |
| 	install -Dm644 "$srcdir"/nginx-uwsgi-patchwork-conf.ini \
 | |
| 		"$subpkgdir"/etc/uwsgi/conf.d/patchwork.ini
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 6d1fa0f55686226acd476513f81f9174f0235fc5349b27fe94586e4ee648e6a729fe75add4d36f3773cebf5cc215fcfd6dddb76cfd376a5f1ae1f11dc28f3399  patchwork-3.1.1.tar.gz
 | |
| 5facc2c2620b2d614011bcdc06bb481fb1481c79333579e5a7fa5b8bc4f97d1651cc8c4632a5e150b62674d64c00345341229319f1edb2016721868e84146826  0001-support-busybox-readlink.patch
 | |
| 432b7981679499183ebb5ad8caa560a059ba11bad1e6489256f2a44808846110a1aaf08728509869cb0d898514b4368f8924316e7bde9d5f5db2ffea7d471813  0002-remove-uneeded-bashism-from-tools-and-change-path.patch
 | |
| 28911a25e00a254237f7214fb681e5e984a2eae331e610be62967d5e246958e0f8d3f84861d8fd17c1190c1df72a25f28ddb33843b3679a3864beb00cb4b4961  nginx-uwsgi-patchwork-conf.ini
 | |
| 862dd2522236a0b18d2a8d06f1ad91ad0fd0936fa502d95e09556641e67d42e1212821bfd7fb98923e4fe8b8a7369ded8c23831fb496b1e2833d9831c1b23725  nginx-patchwork.conf
 | |
| "
 |