summaryrefslogtreecommitdiff
path: root/community/cherokee
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-15 23:14:29 +0000
committerroot <root@rshg054.dnsready.net>2011-10-15 23:14:29 +0000
commit8fd7bc607a8e4b26853b4263153a736767b163cd (patch)
tree0ce4c6dc95dd97a16e544cc72db4e90973588f4c /community/cherokee
parent4232b74445f80f4175c1485a53a02c79b37a63f1 (diff)
Sat Oct 15 23:14:29 UTC 2011
Diffstat (limited to 'community/cherokee')
-rw-r--r--community/cherokee/PKGBUILD10
-rw-r--r--community/cherokee/cherokee-admin-socket-bind.patch23
2 files changed, 29 insertions, 4 deletions
diff --git a/community/cherokee/PKGBUILD b/community/cherokee/PKGBUILD
index 93b88a2d1..10c60f529 100644
--- a/community/cherokee/PKGBUILD
+++ b/community/cherokee/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 56629 2011-10-09 09:37:35Z foutrelis $
+# $Id: PKGBUILD 56833 2011-10-14 14:02:14Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Link Dupont <link@subpop.net>
pkgname=cherokee
pkgver=1.2.100
-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/"
@@ -26,11 +26,13 @@ options=('!libtool')
source=(http://www.cherokee-project.com/download/1.2/$pkgver/cherokee-$pkgver.tar.gz
cherokee.rc
cherokee.logrotate
- fix-ctk-path-handler-match.patch)
+ fix-ctk-path-handler-match.patch
+ cherokee-admin-socket-bind.patch)
sha1sums=('2ed95504c7f156227f9b688a901608be21cf3dff'
'85e24ccc94e6e97858226222ac62cca79c17bc80'
'266064ab6d3ebd206d7207e1d97b003d2021b2e4'
- '6d64371dfb23f43c29a24e37e7ae99e08a0c84cc')
+ '6d64371dfb23f43c29a24e37e7ae99e08a0c84cc'
+ '3c0b407e7282542657125d7cfb1c64eb3521ed8c')
build() {
cd "$srcdir/$pkgname-$pkgver"
diff --git a/community/cherokee/cherokee-admin-socket-bind.patch b/community/cherokee/cherokee-admin-socket-bind.patch
new file mode 100644
index 000000000..0b266a245
--- /dev/null
+++ b/community/cherokee/cherokee-admin-socket-bind.patch
@@ -0,0 +1,23 @@
+diff --git a/cherokee/main_admin.c b/cherokee/main_admin.c
+index 861473f..e52b2d6 100644
+--- a/cherokee/main_admin.c
++++ b/cherokee/main_admin.c
+@@ -89,9 +89,9 @@ find_empty_port (int starting, int *port)
+ cherokee_buffer_add_str (&bind_, "127.0.0.1");
+
+ cherokee_socket_init (&s);
+- cherokee_socket_create_fd (&s, AF_INET);
+
+ while (true) {
++ cherokee_socket_create_fd (&s, AF_INET);
+ ret = cherokee_socket_bind (&s, p, &bind_);
+ if (ret == ret_ok)
+ break;
+@@ -104,6 +104,7 @@ find_empty_port (int starting, int *port)
+ }
+ }
+
++ cherokee_socket_close (&s);
+ cherokee_socket_mrproper (&s);
+ cherokee_buffer_mrproper (&bind_);
+