aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-03-08 13:54:51 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-03-08 13:55:17 +0000
commit34fedfa778a0df3632ccac2a9dc5cbd01f15ff07 (patch)
treee8456632e61c042ca13c451cd9906b82be7d9be3
parentcb4713be9963d0414847d424dc81767fa31fb819 (diff)
downloadaports-34fedfa778a0df3632ccac2a9dc5cbd01f15ff07.tar.bz2
aports-34fedfa778a0df3632ccac2a9dc5cbd01f15ff07.tar.xz
testing/charybdis: patch to avoid limit of 4096 fd
-rw-r--r--testing/charybdis/APKBUILD23
-rw-r--r--testing/charybdis/avoid-fd-4096.patch13
2 files changed, 31 insertions, 5 deletions
diff --git a/testing/charybdis/APKBUILD b/testing/charybdis/APKBUILD
index 9051e34748..2fb9be527c 100644
--- a/testing/charybdis/APKBUILD
+++ b/testing/charybdis/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=charybdis
pkgver=3.4.2
-pkgrel=0
+pkgrel=1
pkgdesc="A highly-scalable IRCv3-compliant IRC daemon"
url="http://www.atheme.org/project/charybdis"
arch="all"
@@ -15,8 +15,18 @@ install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="saveas-http://www.stack.nl/~jilles/irc/$pkgname-$pkgver.tbz2/$pkgname-$pkgver.tar.bz2
$pkgname.initd
- $pkgname.confd"
+ $pkgname.confd
+ avoid-fd-4096.patch"
_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build() {
cd "$_builddir"
./configure \
@@ -51,10 +61,13 @@ package() {
md5sums="54245396b829f8d19d3958cde9c3bd65 charybdis-3.4.2.tar.bz2
ce8dc0025b4e50fbec2aa643a947c1b0 charybdis.initd
-11d70cc7c9fa0eb5ad52af35801d57c6 charybdis.confd"
+11d70cc7c9fa0eb5ad52af35801d57c6 charybdis.confd
+d6a17f178bbd7e73312501ca0ad92a56 avoid-fd-4096.patch"
sha256sums="8a38e67072d90147c40202918c82237765e339cbc849456da54994ce6e31b754 charybdis-3.4.2.tar.bz2
3bd4b0b58189518fa72b9d0c2226e83499ab718189f054a889f4e680f3a20e18 charybdis.initd
-3d1d8b8e722efe6a9eb3171a65d96651bb93c8d6265bd4980bcbb4b8d500f6ad charybdis.confd"
+3d1d8b8e722efe6a9eb3171a65d96651bb93c8d6265bd4980bcbb4b8d500f6ad charybdis.confd
+845caa6a82fa8b75c72532df6f398624b8ad04c6d62115cf3025219b860a7640 avoid-fd-4096.patch"
sha512sums="4bd4126cbb023e8ca1ec3003d92893dd44f9bdd8ce5d3fb471fed0b62eb4aa5ff410a6e769ee7daab4864492d49ff594e3e8c7fea05318eb2308efc2195dc8a3 charybdis-3.4.2.tar.bz2
fef24d361acd96f1e5891e484cbba8ef1dd4a0091550e6a7ae7fe6d053311b80fcdfe4f2307ebf1c4af7ec08ce35ba15bf4a8d499a0c9eb4956b00cd28cf8487 charybdis.initd
-1886b312b0ea40945de45db7a379bff2a3af426155fb77676e03f21f8d1d733e057fb5c3cb65fb72bb56008c4c92f3d2d0010563f871fd0802446de443ddfd5e charybdis.confd"
+1886b312b0ea40945de45db7a379bff2a3af426155fb77676e03f21f8d1d733e057fb5c3cb65fb72bb56008c4c92f3d2d0010563f871fd0802446de443ddfd5e charybdis.confd
+47b420beab2e423c31d4b764d342e094ed013cee7678d5f221857c229a9d41b3dc70b190890aa4aae446cc676635b8d7088485bb8e8afcf22101f1b893434ffa avoid-fd-4096.patch"
diff --git a/testing/charybdis/avoid-fd-4096.patch b/testing/charybdis/avoid-fd-4096.patch
new file mode 100644
index 0000000000..8649849854
--- /dev/null
+++ b/testing/charybdis/avoid-fd-4096.patch
@@ -0,0 +1,13 @@
+diff --git a/include/hash.h b/include/hash.h
+index 6dc2d4e..a103241 100644
+--- a/include/hash.h
++++ b/include/hash.h
+@@ -46,7 +46,7 @@ extern struct Dictionary *nd_dict;
+ #define U_MAX 131072 /* 2^17 */
+
+ /* Client fd hash table size, used in hash.c */
+-#define CLI_FD_MAX 4096
++#define CLI_FD_MAX 16384
+
+ /* Channel hash table size, hash.c/s_debug.c */
+ #define CH_MAX_BITS 16