mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Fix build with clamav 0.90
- Bump PORTREVISION Reported by: krismail
This commit is contained in:
parent
3904a5b66a
commit
56cfde4f58
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185460
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= squidclam
|
||||
PORTVERSION= 0.11
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -34,6 +35,8 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
-e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|cl_perror|cl_strerror|g' \
|
||||
${WRKSRC}/squidclam.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= havp
|
||||
PORTVERSION= 0.82
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.server-side.de/download/ \
|
||||
http://bio3k.softboard.ru/uploads/arch/
|
||||
|
20
www/havp/files/patch-havp_scanners_clamlibscanner.cpp
Normal file
20
www/havp/files/patch-havp_scanners_clamlibscanner.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
--- havp/scanners/clamlibscanner.cpp.orig Sun Feb 18 15:32:07 2007
|
||||
+++ havp/scanners/clamlibscanner.cpp Sun Feb 18 15:32:35 2007
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
LogFile::ErrorMessage("ClamAV: Using database directory: %s\n", dbdir);
|
||||
|
||||
- if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )
|
||||
+ if ( (ret = cl_load(dbdir, &root, &no, CL_DB_STDOPT)) != 0 )
|
||||
{
|
||||
LogFile::ErrorMessage("ClamAV: Could not load database: %s\n", cl_strerror(ret));
|
||||
return false;
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
cl_settempdir(Params::GetConfigString("TEMPDIR").c_str(), 0);
|
||||
|
||||
- if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )
|
||||
+ if ( (ret = cl_load(dbdir, &root, &no, CL_DB_STDOPT)) != 0 )
|
||||
{
|
||||
LogFile::ErrorMessage("ClamAV: Could not reload database: %s\n", cl_strerror(ret));
|
||||
return false;
|
Loading…
Reference in New Issue
Block a user