mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- udpate to 20040129 (Various OLE2/VBA fixes)
Get default config files from BUILD_WRKSRC to fix upgrade when config files are untouched Really use the POST-INSTALL target PR: 62112 Submitted by: rob@debank.tv
This commit is contained in:
parent
389e88f486
commit
1ec728578a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99528
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= clamav
|
||||
PORTVERSION= 20040126
|
||||
PORTVERSION= 20040129
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://clamav.sourceforge.net/snapshot/
|
||||
PKGNAMESUFFIX= -devel
|
||||
@ -121,20 +121,21 @@ pre-install:
|
||||
${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/*pdf ${DOCSDIR}${PKGNAMESUFFIX}
|
||||
@${INSTALL_DATA} ${WRKSRC}/docs/*pdf ${DOCSDIR}${PKGNAMESUFFIX}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@[ -f ${PREFIX}/etc/clamav.conf ] || \
|
||||
${CP} ${PREFIX}/etc/clamav.conf.default \
|
||||
${CP} ${BUILD_WRKSRC}/etc/clamav.conf.default \
|
||||
${PREFIX}/etc/clamav.conf
|
||||
@[ -f ${PREFIX}/etc/freshclam.conf ] || \
|
||||
${CP} ${PREFIX}/etc/freshclam.conf.default \
|
||||
${CP} ${BUILD_WRKSRC}/etc/freshclam.conf.default \
|
||||
${PREFIX}/etc/freshclam.conf
|
||||
@${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DATADIR}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-clamd.sh \
|
||||
${RC_DIR}/clamav-clamd${RC_SUFX}
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/freshclam.sh ${RC_DIR}/freshclam${RC_SUFX}
|
||||
@${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
|
||||
.if defined(WITH_MILTER)
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/clamav-milter.sh \
|
||||
${RC_DIR}/clamav-milter${RC_SUFX}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (clamav-devel-20040126.tar.gz) = 71b7793bd733f59253c8e75419a49d4e
|
||||
MD5 (clamav-devel-20040129.tar.gz) = 8c0a73c2b832195b83edc163079285a4
|
||||
|
@ -45,7 +45,7 @@ fi
|
||||
|
||||
if [ "$2" = "POST-INSTALL" ]; then
|
||||
echo "===> Updating virus definitions..."
|
||||
freshclam -u $3 --datadir=$4
|
||||
freshclam
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user