mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
- update to version 0.67-1
PR: 63065 Reviewed by: Angelo Turetta <aturetta@commit.it> Approved by: maintainer timeout (2 weeks)
This commit is contained in:
parent
cf915cd0dd
commit
8b8a6523a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103131
@ -6,11 +6,11 @@
|
||||
#
|
||||
|
||||
PORTNAME= clamav
|
||||
PORTVERSION= 0.65
|
||||
PORTREVISION= 7
|
||||
#PORTVERSION= ${DISTVERSION:S/-/./g}
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
||||
MASTER_SITE_SUBDIR= clamav
|
||||
#DISTNAME= ${PORTNAME}-${DISTVERSION}
|
||||
|
||||
MAINTAINER= markun@onohara.to
|
||||
COMMENT= Command line virus scanner written entirely in C
|
||||
@ -23,6 +23,8 @@ RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \
|
||||
arc:${PORTSDIR}/archivers/arc \
|
||||
unzip:${PORTSDIR}/archivers/unzip
|
||||
|
||||
DISTVERSION= 0.67-1
|
||||
|
||||
USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
@ -57,6 +59,7 @@ SED_CONF= -E -e 's|^\#?(Example)$$|\#\1|' \
|
||||
-e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \
|
||||
-e 's|^\#?(User) .*$$|\1 clamav|' \
|
||||
-e 's|^\#?(AllowSupplementaryGroups)$$|\1|' \
|
||||
-e 's|^\#?(FixStaleSocket)$$|\1|' \
|
||||
-e 's|^\#?(ScanMail)$$|\1|'
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -88,17 +91,11 @@ post-patch:
|
||||
${WRKSRC}/clamav-milter/clamav-milter.c
|
||||
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -e 's|clamav.conf|&.default|' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
|
||||
${CONFIGURE_WRKSRC}/etc/Makefile.in
|
||||
.ifdef USE_LIBTOOL_VER
|
||||
@${REINPLACE_CMD} -e '/^LIBTOOL=/s|\$$(top_builddir)/libtool|${LIBTOOL}|' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
@${SED} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamav.conf \
|
||||
>${BUILD_WRKSRC}/etc/clamav.conf.default
|
||||
@${REINPLACE_CMD} ${SED_CONF} ${BUILD_WRKSRC}/etc/clamav.conf
|
||||
@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL}
|
||||
@${SED} ${SED_SCRIPT} ${FILESDIR}/clamav-clamd.sh \
|
||||
>${WRKDIR}/clamav-clamd.sh
|
||||
@ -114,18 +111,23 @@ pre-install:
|
||||
${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${BUILD_WRKSRC}/etc/clamav.conf.default \
|
||||
${PREFIX}/etc/clamav.conf.default
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \
|
||||
${RC_DIR}/clamav-clamd${RC_SUFX}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-freshclam.sh \
|
||||
${RC_DIR}/clamav-freshclam${RC_SUFX}
|
||||
@${CHOWN} -R clamav:clamav ${DATADIR}
|
||||
@[ -f ${PREFIX}/etc/clamav.conf ] || \
|
||||
${CP} ${PREFIX}/etc/clamav.conf.default ${PREFIX}/etc/clamav.conf
|
||||
.for c in clamav freshclam
|
||||
@[ -f ${PREFIX}/etc/${c}.conf ] || \
|
||||
${CP} ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
|
||||
.endfor
|
||||
.if defined(WITH_MILTER)
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \
|
||||
${RC_DIR}/clamav-milter${RC_SUFX}
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${INSTALL_WRKSRC}/NEWS ${INSTALL_WRKSRC}/ChangeLog \
|
||||
${DOCSDIR}
|
||||
.endif
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
|
||||
|
@ -1 +1,2 @@
|
||||
MD5 (clamav-0.65.tar.gz) = f2b8473190b6dc1fd9c64b9ebc49a5ad
|
||||
MD5 (clamav-0.67-1.tar.gz) = e53d65fe2f7d4146f146c5720313381e
|
||||
SIZE (clamav-0.67-1.tar.gz) = 2282367
|
||||
|
@ -1,14 +1,5 @@
|
||||
--- clamav-milter/Makefile.in.orig Wed Nov 12 02:36:48 2003
|
||||
+++ clamav-milter/Makefile.in Fri Nov 21 18:23:35 2003
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
@BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@clamav_milter_LDADD = ../clamd/cfgfile.o ../clamd/others.o ../clamscan/getopt.o
|
||||
|
||||
-@BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@man_MANS = ../docs/clamav-milter.8
|
||||
+@BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@man_MANS = ../docs/man/clamav-milter.8
|
||||
|
||||
DEFS = @DEFS@
|
||||
# CLAMD_LIBS is used, because clamav-milter requires the same libraries as clamd
|
||||
@@ -162,7 +162,7 @@
|
||||
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
|
28
security/clamav/files/patch-configure
Normal file
28
security/clamav/files/patch-configure
Normal file
@ -0,0 +1,28 @@
|
||||
--- configure.orig Thu Feb 19 14:18:40 2004
|
||||
+++ configure Thu Feb 19 14:19:31 2004
|
||||
@@ -9317,7 +9317,7 @@
|
||||
|
||||
|
||||
|
||||
-if test ! -r "$cfg_dir/clamav.conf"; then
|
||||
+if true; then
|
||||
INSTALL_CLAMAV_CONF_TRUE=
|
||||
INSTALL_CLAMAV_CONF_FALSE='#'
|
||||
else
|
||||
@@ -9327,7 +9327,7 @@
|
||||
|
||||
|
||||
|
||||
-if test ! -r "$cfg_dir/freshclam.conf"; then
|
||||
+if true; then
|
||||
INSTALL_FRESHCLAM_CONF_TRUE=
|
||||
INSTALL_FRESHCLAM_CONF_FALSE='#'
|
||||
else
|
||||
@@ -9564,6 +9564,7 @@
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
+#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; }
|
||||
_ACEOF
|
13
security/clamav/files/patch-etc::Makefile.in
Normal file
13
security/clamav/files/patch-etc::Makefile.in
Normal file
@ -0,0 +1,13 @@
|
||||
--- etc/Makefile.in.orig Thu Feb 19 14:17:02 2004
|
||||
+++ etc/Makefile.in Thu Feb 19 14:17:36 2004
|
||||
@@ -248,8 +248,8 @@
|
||||
|
||||
install:
|
||||
$(mkinstalldirs) $(DESTDIR)$(CFGINST)
|
||||
-@INSTALL_CLAMAV_CONF_TRUE@ @$(INSTALL_DATA) clamav.conf $(DESTDIR)$(CFGINST)
|
||||
-@INSTALL_FRESHCLAM_CONF_TRUE@ @$(INSTALL_DATA) freshclam.conf $(DESTDIR)$(CFGINST)
|
||||
+@INSTALL_CLAMAV_CONF_TRUE@ @$(INSTALL_DATA) clamav.conf $(DESTDIR)$(CFGINST)/clamav.conf.default
|
||||
+@INSTALL_FRESHCLAM_CONF_TRUE@ @$(INSTALL_DATA) freshclam.conf $(DESTDIR)$(CFGINST)/freshclam.conf.default
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
@ -1,27 +0,0 @@
|
||||
--- libclamav/message.c.orig Wed Nov 5 11:59:53 2003
|
||||
+++ libclamav/message.c Tue Feb 10 14:39:23 2004
|
||||
@@ -878,15 +878,20 @@
|
||||
if(strcasecmp(line, "end") == 0)
|
||||
break;
|
||||
|
||||
- assert(strlen(line) <= 62);
|
||||
if((line[0] & 0x3F) == ' ')
|
||||
break;
|
||||
|
||||
len = *line++ - ' ';
|
||||
|
||||
- assert((len >= 0) && (len <= 63));
|
||||
-
|
||||
- ptr = decode(line, ptr, uudecode, (len & 3) == 0);
|
||||
+ if(len < 0 || len > 63)
|
||||
+ /*
|
||||
+ * In practice this should never occur since
|
||||
+ * the maximum length of a uuencoded line is
|
||||
+ * 62 characters
|
||||
+ */
|
||||
+ cli_warnmsg("uudecode: buffer overflow stopped, attempting to ignore but decoding may fail");
|
||||
+ else
|
||||
+ ptr = decode(line, ptr, uudecode, (len & 3) == 0);
|
||||
break;
|
||||
|
||||
case BINARY:
|
@ -14,13 +14,18 @@ lib/libclamav.a
|
||||
@unexec if cmp -s %D/etc/clamav.conf %D/etc/clamav.conf.default; then rm -f %D/etc/clamav.conf; fi
|
||||
etc/clamav.conf.default
|
||||
@exec [ -f %B/clamav.conf ] || cp %B/%f %B/clamav.conf
|
||||
@unexec if cmp -s %D/etc/freshclam.conf %D/etc/freshclam.conf.default; then rm -f %D/etc/freshclam.conf; fi
|
||||
etc/freshclam.conf.default
|
||||
@exec [ -f %B/freshclam.conf ] || cp %B/%f %B/freshclam.conf
|
||||
etc/rc.d/clamav-clamd%%RC_SUFX%%
|
||||
etc/rc.d/clamav-freshclam%%RC_SUFX%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@owner clamav
|
||||
@group clamav
|
||||
%%DATADIR%%/daily.cvd
|
||||
%%DATADIR%%/main.cvd
|
||||
%%DATADIR%%/mirrors.txt
|
||||
@exec chown clamav:clamav %B
|
||||
@dirrm %%DATADIR%%
|
||||
@unexec rmdir /var/run/clamav 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user