Skip to content
Snippets Groups Projects
Commit ccc3af0c authored by Francesco Colista's avatar Francesco Colista
Browse files

testing/wok: new aport

parent 9ce79080
No related branches found
No related tags found
No related merge requests found
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wok
pkgver=2.3.0
pkgrel=0
pkgdesc="Webserver of Kimchi - a cherrypy framework for multi-purpose plug-ins"
url="http://kimchi-project.github.io/wok/"
arch="noarch"
license="APACHE LGPL2.1"
depends="python2 nginx logrotate py-cherrypy py2-jsonschema
py2-pyparted py2-pyldap py2-psutil py2-m2crypto py-cheetah
py2-augeas py2-pam py2-functools32 py2-lxml py2-libvirt py-cherrypy
ttf-opensans ttf-font-awesome"
makedepends="automake autoconf libtool gettext-dev
python2-dev pyflakes libxslt"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kimchi-project/$pkgname/archive/$pkgver.tar.gz
wokd.initd
alpine-specific-wokd.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
sh ./autogen.sh --system
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -D -m755 "$srcdir"/wokd.initd \
"$pkgdir"/etc/init.d/wokd || return 1
}
md5sums="25d785bf2800157cebdb959f3a749cd8 wok-2.3.0.tar.gz
eeff0e363218197c4e34101efd5ddbd2 wokd.initd
63ed561751a90ca6ddb23a62a9a49e7a alpine-specific-wokd.patch"
sha256sums="14ca498ab1f37ad18855616f132f8d89a2ed692f80252fcd9f99f7f4e8859257 wok-2.3.0.tar.gz
d3328855f2d6fa2b0b7fbf589bc610d2ff0ed20cb702d88e8ab3fd084a73981c wokd.initd
e896f92fc1e3c79d73068c4a5f552c945d013d87f094ae139db21cb05e0dfb84 alpine-specific-wokd.patch"
sha512sums="c10c3a8a0e34b5f91b4054fd74cba9e4fbd072ce5e4b32798aff8d85deb275f4059d0e08c22eb56a43431ccb2f7452da77618d617d0f8c1b9e7f6fbdbe2a6d40 wok-2.3.0.tar.gz
f1c6247ef1d26c997856d178adacddbbff6855a5f421a718fc58ecc541f5d29ab977699b426c1d51a5ab9c8abf49c5d6be2970df98c447d5467c0529df1cb141 wokd.initd
c47deb3ef8160162af5dbfd8b6975f86a12c69bff641ff627d4869a5edcbea8dc47551da6ee98ad5787d03a3dc93434edc42913031a19bc903a17c70a692c699 alpine-specific-wokd.patch"
diff --git a/src/nginx/wok.conf.in b/src/nginx/wok.conf.in
index 512b00b..116fce9 100644
--- a/src/nginx/wok.conf.in
+++ b/src/nginx/wok.conf.in
@@ -22,7 +22,8 @@
# This is a template file to be used to generate a nginx
# proxy config file at wokd script.
-client_max_body_size ${max_body_size}k;
+#Check nginx.conf which already have this directive
+#client_max_body_size ${max_body_size}k;
# Set timeout, based on configuration values, to avoid the 504 Gateway Timeout
# when Wok is processing a request.
diff --git a/src/wok/proxy.py b/src/wok/proxy.py
index 4b06fc2..15c1f8c 100644
--- a/src/wok/proxy.py
+++ b/src/wok/proxy.py
@@ -130,7 +130,7 @@ def start_proxy(options):
"""Start nginx reverse proxy."""
_create_proxy_config(options)
# Restart system's nginx service to reload wok configuration
- cmd = ['systemctl', 'restart', 'nginx.service']
+ cmd = ['rc-service', 'nginx', 'restart']
output, error, retcode = run_command(cmd, silent=True)
if retcode != 0:
raise OperationFailed('WOKPROXY0001E', {'error': error})
#!/sbin/openrc-run
# (c) 2016 Alpine Linux
name=wokd
command=/usr/bin/$name
command_background=YES
depend() {
use logger dns
need net
after libvirtd firewall
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment