diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-13 12:10:07 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-13 13:43:22 +0000 |
commit | 01e2813e4c87dd1bd2dbe00a96aaca566533a1ad (patch) | |
tree | b44c11fb79e7a0cea2504c10389b7b27feb322a9 /main/patchwork | |
parent | dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6 (diff) | |
download | aports-01e2813e4c87dd1bd2dbe00a96aaca566533a1ad.tar.bz2 aports-01e2813e4c87dd1bd2dbe00a96aaca566533a1ad.tar.xz |
main/patchwork: improved uwsgi and nginx subpkg
Diffstat (limited to 'main/patchwork')
-rw-r--r-- | main/patchwork/APKBUILD | 23 | ||||
-rw-r--r-- | main/patchwork/nginx-patchwork.conf | 33 | ||||
-rw-r--r-- | main/patchwork/nginx-uwsgi-patchwork-conf.ini | 2 | ||||
-rw-r--r-- | main/patchwork/uwsgi.patchwork.confd | 11 |
4 files changed, 46 insertions, 23 deletions
diff --git a/main/patchwork/APKBUILD b/main/patchwork/APKBUILD index 7243ed9638..5f1fde1d43 100644 --- a/main/patchwork/APKBUILD +++ b/main/patchwork/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=patchwork pkgver=1.1.1 -pkgrel=0 +pkgrel=1 pkgdesc="Web-based patch tracking system " url="http://jk.ozlabs.org/projects/patchwork/" arch="noarch" @@ -17,7 +17,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/getpatchwork/$pkgname/archiv 0001-support-busybox-readlink.patch 0002-remove-uneeded-bashism-from-tools-and-change-path.patch nginx-uwsgi-patchwork-conf.ini - uwsgi.patchwork.confd" + nginx-patchwork.conf" _builddir="$srcdir"/$pkgname-$pkgver prepare() { @@ -59,12 +59,13 @@ apache2_wsgi() { nginx_wsgi() { pkgdesc="$pkgname nginx wsgi support" depends="nginx uwsgi-python" - install -Dm644 "$pkgdir"/usr/share/webapps/patchwork/lib/nginx/patchwork.conf \ + install_if="nginx patchwork uwsgi" + install -Dm644 "$srcdir"/nginx-patchwork.conf \ "$subpkgdir"/etc/nginx/conf.d/patchwork.conf || return 1 install -Dm644 "$srcdir"/nginx-uwsgi-patchwork-conf.ini \ "$subpkgdir"/etc/patchwork/patchwork.ini || return 1 - install -Dm644 "$srcdir"/uwsgi.patchwork.confd \ - "$subpkgdir"/etc/conf.d/uwsgi.patchwork || return 1 + mkdir -p "$subpkgdir"/etc/uwsgi/conf.d + ln -sf /etc/patchwork/patchwork.ini "$subpkgdir"/etc/uwsgi/conf.d/patchwork.ini } mysql() { @@ -89,15 +90,15 @@ pwclient() { md5sums="9d665f68edc1afc6883873bb89dafe48 patchwork-1.1.1.tar.gz c0bf2a78294773e6a5dc5fb5c9b525cf 0001-support-busybox-readlink.patch 2dde450ee27a24ea4b0448b1331e7cc9 0002-remove-uneeded-bashism-from-tools-and-change-path.patch -698b5d0dedc03e76b6f9a33738c44e79 nginx-uwsgi-patchwork-conf.ini -e3b6d46baf11e59a6547c8c0ff11935e uwsgi.patchwork.confd" +f8807b30cceec56ec8428803a957537a nginx-uwsgi-patchwork-conf.ini +1ada6412b1e22c084a08563bf75637d0 nginx-patchwork.conf" sha256sums="e5bb8c453b2d042d13f87b51cba10360bd1d84ff181d6f2ee011c3b600c613f0 patchwork-1.1.1.tar.gz 43159a12dbbd4161ae1476c38b5435517dbc7260a1e25aa6263038cc4c267b99 0001-support-busybox-readlink.patch 499fc47ac715901fe0a5f5043f7ee722ab39e694451c70982830e1c728ea136d 0002-remove-uneeded-bashism-from-tools-and-change-path.patch -51c1f9c32aff324b685b2d34200f528953d9f0e774eefd69d3b7788c1b16b3d8 nginx-uwsgi-patchwork-conf.ini -e9054b0b7510f40e240619d6edf58200d3a759f3d87cbf78bcf4a5177ece1569 uwsgi.patchwork.confd" +d1d952c2c22d5d11256d17745fb9845d73ebef290982c671b48d1344b32431f6 nginx-uwsgi-patchwork-conf.ini +1d869db2b0e11c8f0e57bc4e69ac6939cfaad759850ce072c6e349b2803633cc nginx-patchwork.conf" sha512sums="2f2f9114a2185ca34d493a87d34f16cfb4bc05f4c6c261f533faa9cbaded7b77a37f202715668bb428462848733ff042a130271addb28f89445ad22e212376d7 patchwork-1.1.1.tar.gz a5d4e24741b66092a39c1ef4fdc76dffa1ddf87a69544ab0c374fb0701b0f7340a62ead86835d9bb412df5713f3ea3c0218e9e2e0cd01d9a1aad9414a3cc75fa 0001-support-busybox-readlink.patch 12d1b184c6cb1d3f2c51adab6b60638e4869e055e677897bb66ee1a52312e77817bec543842324e2cbc2c226f3ab9d11c3782b5ef3a6f5f5712996cadbc6c9c9 0002-remove-uneeded-bashism-from-tools-and-change-path.patch -6bafda9fbd067b8f54fbff13cb28afe99ee1f26bb1b6f212264a8c9f3eb2723394b9c9ccea2fe97677505f32b324462f1646ac1990f1cce41cfbbbd19de9f701 nginx-uwsgi-patchwork-conf.ini -a06c6176e44f5e2c04eb8609e3b8595ea59782e6f6167dcbb50a0af3163e484096c876bcb0cd67b18cb826eef4665f368aa8d9e5ccd32eab9bd5ca2ca8e2d080 uwsgi.patchwork.confd" +28911a25e00a254237f7214fb681e5e984a2eae331e610be62967d5e246958e0f8d3f84861d8fd17c1190c1df72a25f28ddb33843b3679a3864beb00cb4b4961 nginx-uwsgi-patchwork-conf.ini +862dd2522236a0b18d2a8d06f1ad91ad0fd0936fa502d95e09556641e67d42e1212821bfd7fb98923e4fe8b8a7369ded8c23831fb496b1e2833d9831c1b23725 nginx-patchwork.conf" diff --git a/main/patchwork/nginx-patchwork.conf b/main/patchwork/nginx-patchwork.conf new file mode 100644 index 0000000000..575bc3e0ba --- /dev/null +++ b/main/patchwork/nginx-patchwork.conf @@ -0,0 +1,33 @@ +server { + listen 80; + server_name domain.tld; + access_log /var/log/nginx/patchwork.log; + error_log /var/log/nginx/patchwork-error.log; + + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 2048; + + gzip on; + gzip_proxied any; + gzip_types text/plain text/css text/javascript application/x-javascript + text/xml application/xml image/svg+xml + application/vnd.ms-fontobject application/x-font-ttf font/opentype; + + location = favicon.ico { + access_log off; + log_not_found off; + } + + location /static { + alias /usr/share/webapps/patchwork/htdocs; + expires 3h; + } + + location / { + include uwsgi_params; + uwsgi_pass unix:/run/uwsgi/patchwork.sock; + uwsgi_modifier1 30; + } +} diff --git a/main/patchwork/nginx-uwsgi-patchwork-conf.ini b/main/patchwork/nginx-uwsgi-patchwork-conf.ini index bc487ca276..2f76b80ddf 100644 --- a/main/patchwork/nginx-uwsgi-patchwork-conf.ini +++ b/main/patchwork/nginx-uwsgi-patchwork-conf.ini @@ -20,7 +20,7 @@ uid = %(user) gid = %(group) daemonize = /var/log/%(project).log -socket = /run/%(project).sock +socket = /run/uwsgi/%(project).sock chown-socket = nginx:www-data chmod-socket = 665 vacuum = true diff --git a/main/patchwork/uwsgi.patchwork.confd b/main/patchwork/uwsgi.patchwork.confd deleted file mode 100644 index febc0b5494..0000000000 --- a/main/patchwork/uwsgi.patchwork.confd +++ /dev/null @@ -1,11 +0,0 @@ -UWSGI_SOCKET= -UWSGI_THREADS=0 -UWSGI_PROGRAM= -UWSGI_XML_CONFIG= -UWSGI_PROCESSES=5 -UWSGI_LOG_FILE= -UWSGI_CHROOT= -UWSGI_DIR= -UWSGI_USER= -UWSGI_GROUP= -UWSGI_EXTRA_OPTIONS="--ini /etc/patchwork/patchwork.ini" |