diff options
author | Renato Botelho <garga@FreeBSD.org> | 2009-03-27 11:53:07 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2009-03-27 11:53:07 +0000 |
commit | b5a9f423503aebaca704f1f6cf4ae2f485fc5ea1 (patch) | |
tree | e217dbc778a52087c20ecaea92beea91b2266052 /www | |
parent | d253acf464b19446c05f5daaeadfa06ee7126cb7 (diff) | |
download | ports-b5a9f423503aebaca704f1f6cf4ae2f485fc5ea1.tar.gz ports-b5a9f423503aebaca704f1f6cf4ae2f485fc5ea1.zip |
- Bump necessary PORTREVISIONS and fix some ports to new clamav API
Notes
Notes:
svn path=/head/; revision=231108
Diffstat (limited to 'www')
-rw-r--r-- | www/c-icap/Makefile | 2 | ||||
-rw-r--r-- | www/c-icap/distinfo | 6 | ||||
-rw-r--r-- | www/gurlchecker/Makefile | 4 | ||||
-rw-r--r-- | www/havp/Makefile | 8 | ||||
-rw-r--r-- | www/havp/distinfo | 6 | ||||
-rw-r--r-- | www/mod_clamav/Makefile | 6 | ||||
-rw-r--r-- | www/mod_clamav/files/patch-mod_clamav.c | 122 | ||||
-rw-r--r-- | www/raqdevil/Makefile | 2 |
8 files changed, 139 insertions, 17 deletions
diff --git a/www/c-icap/Makefile b/www/c-icap/Makefile index a5128eb2ab09..31736d855e3f 100644 --- a/www/c-icap/Makefile +++ b/www/c-icap/Makefile @@ -11,7 +11,7 @@ PORTEPOCH= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -DISTNAME= c_icap-${PORTVERSION} +DISTNAME= c_icap-${PORTVERSION}rc2 MAINTAINER= tofig@freebsd.az COMMENT= An implementation of an ICAP server diff --git a/www/c-icap/distinfo b/www/c-icap/distinfo index c2ff1c48f954..29a64f11c397 100644 --- a/www/c-icap/distinfo +++ b/www/c-icap/distinfo @@ -1,3 +1,3 @@ -MD5 (c_icap-060708.tar.gz) = 3f66d0647a9f8494b341e275f23cb194 -SHA256 (c_icap-060708.tar.gz) = 45348651329ef31770cbcd259187acca5fb22bd9c40f472e460edbb11192b7e0 -SIZE (c_icap-060708.tar.gz) = 481338 +MD5 (c_icap-060708rc2.tar.gz) = b501c420c071bdd499a117e9b416ed4f +SHA256 (c_icap-060708rc2.tar.gz) = b2d3c620f65deb2a237bb8e7a39c8f8c744f8614f06f9837fc24734c756c1453 +SIZE (c_icap-060708rc2.tar.gz) = 435659 diff --git a/www/gurlchecker/Makefile b/www/gurlchecker/Makefile index 654aa9c0bea2..599593f2a151 100644 --- a/www/gurlchecker/Makefile +++ b/www/gurlchecker/Makefile @@ -7,7 +7,7 @@ PORTNAME= gurlchecker PORTVERSION= 0.10.1 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= www gnome MASTER_SITES= http://labs.libre-entreprise.org/frs/download.php/%SUBDIR%/ MASTER_SITE_SUBDIR= 547 @@ -51,7 +51,7 @@ CONFIGURE_ARGS+= --disable-tidy .endif .if defined(WITH_CLAMAV) -LIB_DEPENDS+= clamav.5:${PORTSDIR}/security/clamav +LIB_DEPENDS+= clamav.6:${PORTSDIR}/security/clamav .else CONFIGURE_ARGS+= --disable-clamav .endif diff --git a/www/havp/Makefile b/www/havp/Makefile index 46469231fd8e..1fe6e2b09205 100644 --- a/www/havp/Makefile +++ b/www/havp/Makefile @@ -6,16 +6,16 @@ # PORTNAME= havp -PORTVERSION= 0.88 -PORTREVISION= 1 +PORTVERSION= 0.90 CATEGORIES= www MASTER_SITES= http://www.server-side.de/download/ \ - http://bio3k.softboard.ru/uploads/arch/ + http://bio3k.softboard.ru/uploads/arch/ \ + http://havp.hege.li/download/ MAINTAINER= b3k@mail.ru COMMENT= HTTP Antivirus Proxy -LIB_DEPENDS= clamav.5:${PORTSDIR}/security/clamav +LIB_DEPENDS= clamav.6:${PORTSDIR}/security/clamav GNU_CONFIGURE= yes USE_GMAKE= yes diff --git a/www/havp/distinfo b/www/havp/distinfo index 371aed03b210..7fe2b3450154 100644 --- a/www/havp/distinfo +++ b/www/havp/distinfo @@ -1,3 +1,3 @@ -MD5 (havp-0.88.tar.gz) = 751d1811bdc3f0d0cbc9e4ae451fdb2a -SHA256 (havp-0.88.tar.gz) = 2de6babce45bac9e9b57ec7783ff6719cb3ef996331009c111ad8e263c9e6e3c -SIZE (havp-0.88.tar.gz) = 116217 +MD5 (havp-0.90.tar.gz) = 7f3dc82f8472e2385869223bc0500431 +SHA256 (havp-0.90.tar.gz) = 01dee1f017bb93378e3fa7b4eab9deec031b8baa5e75442a147a58ee29460d65 +SIZE (havp-0.90.tar.gz) = 118013 diff --git a/www/mod_clamav/Makefile b/www/mod_clamav/Makefile index 1d1b03c48da8..5d87fd94a6bb 100644 --- a/www/mod_clamav/Makefile +++ b/www/mod_clamav/Makefile @@ -7,7 +7,7 @@ PORTNAME= mod_clamav PORTVERSION= 0.22 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= www security MASTER_SITES= http://software.othello.ch/mod_clamav/ \ http://www.kommunity.net/download/mod_clamav/ @@ -27,10 +27,10 @@ IGNORE= mod_clamav only compile and run with apache-2.0.x .endif .if defined(WITH_CLAMAVDEVEL) -LIB_DEPENDS+= clamav.5:${PORTSDIR}/security/clamav-devel +LIB_DEPENDS+= clamav.6:${PORTSDIR}/security/clamav-devel .else CLAMAV_PORT= security/clamav -LIB_DEPENDS+= clamav.5:${PORTSDIR}/security/clamav +LIB_DEPENDS+= clamav.6:${PORTSDIR}/security/clamav .endif CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \ diff --git a/www/mod_clamav/files/patch-mod_clamav.c b/www/mod_clamav/files/patch-mod_clamav.c new file mode 100644 index 000000000000..f94a0e570f3a --- /dev/null +++ b/www/mod_clamav/files/patch-mod_clamav.c @@ -0,0 +1,122 @@ +--- mod_clamav.c.orig 2008-01-05 14:14:27.000000000 -0200 ++++ mod_clamav.c 2009-03-25 15:07:37.000000000 -0300 +@@ -130,7 +130,7 @@ + } cl_daemon_t; + + typedef struct cl_local_t { +- struct cl_node *engine; ++ struct cl_engine *engine; + time_t lastreload; + } cl_local_t; + +@@ -159,7 +159,9 @@ + const char *dbdir; /* local: where are virus patterns */ + int port; /* daemon: clamd port number */ + char *socket; /* daemon: unix domain socket path */ +- struct cl_limits lim; /* clamav limits structure */ ++ int maxfiles; ++ int maxfilesize; ++ int maxreclevel; + int trickle_interval; + int trickle_size; + int sizelimit; +@@ -464,11 +466,20 @@ + unsigned int signo = 0; + clamav_ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, f->r, "[%d] local init", + (int)getpid()); ++ ++ /* initializa clam */ ++ if (0 != (ret = cl_init(CL_INIT_DEFAULT))) { ++ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, f->r, ++ "[%d] cannot initialize clamav: %s", (int)getpid(), ++ cl_strerror(ret)); ++ return -1; ++ } ++ + /* make sure that rec->common->local is allocated */ + if (NULL == rec->common->local) { + rec->common->local = (cl_local_t *)apr_palloc(rec->pool, + sizeof(cl_local_t)); +- rec->common->local->engine = NULL; ++ rec->common->local->engine = cl_engine_new(); + rec->common->local->lastreload = 0; + } + +@@ -478,7 +489,7 @@ + } + + /* reload the database from the directory */ +- if (0 != (ret = cl_load(rec->dbdir, &rec->common->local->engine, ++ if (0 != (ret = cl_load(rec->dbdir, rec->common->local->engine, + &signo, CL_DB_STDOPT))) { + ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, f->r, + "[%d] cannot load clamav patterns: %s", (int)getpid(), +@@ -706,7 +717,7 @@ + case MOD_CLAMAV_LOCAL: + /* virus scan using local clamav library */ + return cl_scanfile(ctx->filename, virname, (unsigned long *)len, +- rec->common->local->engine, &rec->lim, CL_ARCHIVE); ++ rec->common->local->engine, CL_SCAN_ARCHIVE); + break; + case MOD_CLAMAV_DAEMON: + /* set reasonable defaults for virname */ +@@ -1752,9 +1763,14 @@ + cfg->extendedlogging = 0; + cfg->perms = 0640; + cfg->sizelimit = 0; +- cfg->lim.maxfiles = 100; +- cfg->lim.maxfilesize = 10 * 1048576; +- cfg->lim.maxreclevel = 8; ++ ++ cfg->maxfiles = 100; ++ cl_engine_set_num(cfg->common->local->engine, CL_ENGINE_MAX_FILES, &cfg->maxfiles); ++ cfg->maxfilesize = 10 * 1048576; ++ cl_engine_set_num(cfg->common->local->engine, CL_ENGINE_MAX_FILESIZE, &cfg->maxfilesize); ++ cfg->maxreclevel = 8; ++ cl_engine_set_num(cfg->common->local->engine, CL_ENGINE_MAX_RECURSION, &cfg->maxreclevel); ++ + cfg->safetypes = apr_table_make(p, 0); + cfg->safepatterns = apr_array_make(p, 64, sizeof(clamav_safepattern)); + cfg->safeuris = apr_array_make(p, 64, sizeof(clamav_safeuri)); +@@ -1800,12 +1816,12 @@ + child->shmname = parent->shmname; + if (child->mutexname == NULL) + child->mutexname = parent->mutexname; +- if (child->lim.maxfiles == 0) +- child->lim.maxfiles = parent->lim.maxfiles; +- if (child->lim.maxfilesize == 0) +- child->lim.maxfilesize = parent->lim.maxfilesize; +- if (child->lim.maxreclevel == 0) +- child->lim.maxreclevel = parent->lim.maxreclevel; ++ if (child->maxfiles == 0) ++ child->maxfiles = parent->maxfiles; ++ if (child->maxfilesize == 0) ++ child->maxfilesize = parent->maxfilesize; ++ if (child->maxreclevel == 0) ++ child->maxreclevel = parent->maxreclevel; + if ((!child->tmpdir) && (parent->tmpdir)) + child->tmpdir = (char *)apr_pstrdup(p, parent->tmpdir); + if (apr_is_empty_table(child->safetypes)) +@@ -2065,19 +2081,19 @@ + ), + AP_INIT_TAKE1( + "ClamavMaxfiles", ap_set_int_slot, +- (void *)APR_OFFSETOF(clamav_config_rec, lim.maxfiles), ++ (void *)APR_OFFSETOF(clamav_config_rec, maxfiles), + RSRC_CONF, + "Maximum number of files in an archive" + ), + AP_INIT_TAKE1( + "ClamavMaxfilesize", ap_set_int_slot, +- (void *)APR_OFFSETOF(clamav_config_rec, lim.maxfilesize), ++ (void *)APR_OFFSETOF(clamav_config_rec, maxfilesize), + RSRC_CONF, + "Maximum archive size" + ), + AP_INIT_TAKE1( + "ClamavRecursion", ap_set_int_slot, +- (void *)APR_OFFSETOF(clamav_config_rec, lim.maxreclevel), ++ (void *)APR_OFFSETOF(clamav_config_rec, maxreclevel), + RSRC_CONF, + "Maximum recursion depth when analyzing archives" + ), diff --git a/www/raqdevil/Makefile b/www/raqdevil/Makefile index bb1c8691359b..7333326cfa4e 100644 --- a/www/raqdevil/Makefile +++ b/www/raqdevil/Makefile @@ -7,7 +7,7 @@ PORTNAME= raqdevil PORTVERSION= 1.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= www sysutils MASTER_SITES= http://www.raqdevil.com/ |