www/mod_memcache_block: Update to 1.0

PR:		228053
This commit is contained in:
Bernard Spil 2018-05-07 19:07:52 +00:00
parent 58cd07eceb
commit 9fb995f70d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469310
3 changed files with 23 additions and 8 deletions

View file

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= mod_memcache_block
PORTVERSION= 20120821
PORTREVISION= 1
PORTVERSION= 1.0
CATEGORIES= www
DIST_SUBDIR= apache2
@ -13,10 +12,7 @@ COMMENT= Apache 2.2 module to block IPs from lists stored in memcache
LIB_DEPENDS+= libmemcached.so:databases/libmemcached
USE_GITHUB= yes
GH_ACCOUNT= netik
GH_TAGNAME= 7b1fcec
BROKEN= Does not currently work with Apache 2.4+
GH_ACCOUNT= gaod
USES= apache:2.4+
AP_FAST_BUILD= yes

View file

@ -1,2 +1,3 @@
SHA256 (apache2/netik-mod_memcache_block-20120821-7b1fcec_GH0.tar.gz) = ee33f298dcc08fee1239f99036076550272e69646713cfe65fe95773860672f5
SIZE (apache2/netik-mod_memcache_block-20120821-7b1fcec_GH0.tar.gz) = 13351
TIMESTAMP = 1525714521
SHA256 (apache2/gaod-mod_memcache_block-1.0_GH0.tar.gz) = bef6a3bf80e642a31f9fe3867787f83e93fb4cdb54db5f193c79d3adc03b37b5
SIZE (apache2/gaod-mod_memcache_block-1.0_GH0.tar.gz) = 13359

View file

@ -0,0 +1,18 @@
--- mod_memcache_block.c.orig 2018-05-08 02:01:33.125306000 +0800
+++ mod_memcache_block.c 2018-05-08 02:02:06.796426000 +0800
@@ -369,6 +369,7 @@
if (s2conf->response_limiter != NULL) {
merged_config->response_limiter = apr_hash_copy(p, s2conf->response_limiter);
}
+ return (void*) merged_config;
}
static apr_status_t mb_child_exit(void *data)
@@ -416,6 +417,7 @@
/* finally, refresh the blocklist */
mb_refresh_blocklist(s);
+ return OK;
}
/* callback used when we walk the array */