mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:17:15 +08:00
rebuild broken package cherokee
This commit is contained in:
parent
d6135aab25
commit
eea52087ce
@ -8,7 +8,7 @@
|
||||
|
||||
pkgname=cherokee
|
||||
pkgver=1.2.101
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A very fast, flexible and easy to configure Web Server"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.cherokee-project.com/"
|
||||
@ -27,15 +27,20 @@ backup=('etc/cherokee/cherokee.conf'
|
||||
'etc/logrotate.d/cherokee')
|
||||
source=(http://www.cherokee-project.com/download/1.2/$pkgver/cherokee-$pkgver.tar.gz
|
||||
cherokee.rc
|
||||
cherokee.logrotate)
|
||||
cherokee.logrotate
|
||||
fix-ctk-path-handler-match.patch)
|
||||
options=('!libtool')
|
||||
md5sums=('ef47003355a2e368e4d9596cd070ef23'
|
||||
'a2d2b69c6220fab57cda4f531b680f9f'
|
||||
'8d69341bd4002bffd69c6e82ff6c905f')
|
||||
'83d1d1f58357fedf549ceeaddaacf42e'
|
||||
'8d69341bd4002bffd69c6e82ff6c905f'
|
||||
'565326a51632bd803671b36b13d02f1d')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# Fix path matching bug in CTK apps (e.g. market)
|
||||
patch -Np1 -i "$srcdir/fix-ctk-path-handler-match.patch"
|
||||
|
||||
# Use subdirectory for logs
|
||||
sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
|
||||
|
||||
|
@ -63,3 +63,4 @@ case "$1" in
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
|
16
cherokee/fix-ctk-path-handler-match.patch
Normal file
16
cherokee/fix-ctk-path-handler-match.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff -upr cherokee-1.2.99.orig/admin/CTK/CTK/Server.py cherokee-1.2.99/admin/CTK/CTK/Server.py
|
||||
--- cherokee-1.2.99.orig/admin/CTK/CTK/Server.py 2011-06-06 14:17:35.000000000 +0300
|
||||
+++ cherokee-1.2.99/admin/CTK/CTK/Server.py 2011-09-16 03:31:06.000000000 +0300
|
||||
@@ -121,8 +121,11 @@ class ServerHandler (pyscgi.SCGIHandler)
|
||||
my_thread.scgi_conn = self
|
||||
my_thread.request_url = url
|
||||
|
||||
+ # Drop the query string before matching against the handlers
|
||||
+ path = url.split('?', 1)[0]
|
||||
+
|
||||
for published in server._web_paths:
|
||||
- if re.match (published._regex, url):
|
||||
+ if re.match (published._regex, path):
|
||||
# POST
|
||||
if published._method == 'POST':
|
||||
post = self._process_post()
|
Loading…
Reference in New Issue
Block a user