16eda7f1f8
(6.22.0.1 -> 6.23.0.1), a current virus definition file (6.23.0.1) and and updated antivir.conf adding new options for the new features in the current AV engine. If you are using the auto-update facility you should already have the updated AV engine and VDF. The new options available in antivir.conf are only relevant if you are using the update daemon mechanism (i.e. you are using `antivir --update-daemon` instead of running antivirupdater via cron(8)) or you own a true commercial license (i.e. no private license) and want to catch "unwanted files" e.g. dialers in addition to worms and viruses. - Be consistent in how PREFIX gets inserted in the avq script compared to the other patched files. The old way previously saved a patch which is no longer true. No change in the installed script. Submitted by: Marius Strobl <marius@alchemy.franken.de>
101 lines
3.1 KiB
Makefile
101 lines
3.1 KiB
Makefile
# New ports collection makefile for: antivir-milter
|
|
# Date created: 21 September 2003
|
|
# Whom: marius@alchemy.franken.de
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= antivir-milter
|
|
PORTVERSION= 1.0.6
|
|
PORTREVISION= 3
|
|
CATEGORIES= security mail
|
|
MASTER_SITES= ftp://ftp.antivir.de/freebsd/
|
|
DISTNAME= avfbmlt
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= marius@alchemy.franken.de
|
|
COMMENT= AntiVir Milter mail virusscanner for Sendmail
|
|
|
|
RESTRICTED= H+BEDV Datentechnik GmbH forbids any redistribution
|
|
NO_PACKAGE= ${RESTRICTED}
|
|
NO_CDROM= ${RESTRICTED}
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
NO_BUILD= yes
|
|
USE_REINPLACE= yes
|
|
# Auto re-fetch sucks!
|
|
FETCH_CMD= /usr/bin/fetch -A
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (!exists(/usr/lib/libmilter.a)) && (!exists(${PREFIX}/lib/libmilter.a))
|
|
IGNORE= requires Sendmail 8.12
|
|
.endif
|
|
|
|
.if ${OSVERSION} >= 500000
|
|
LIB_DEPENDS= c.4:${PORTSDIR}/misc/compat4x
|
|
.endif
|
|
|
|
post-patch:
|
|
.for i in etc/antivir.conf etc/avmilter.conf init/rc.avmilter script/avq
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}
|
|
.endfor
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
|
|
${WRKDIR}/pkg-message
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/antivirupdater.sh > \
|
|
${WRKDIR}/antivirupdater.sh
|
|
|
|
do-install:
|
|
@${INSTALL} -d -o daemon -g daemon -m 755 ${PREFIX}/AntiVir
|
|
@${INSTALL} -o daemon -g daemon -m 755 ${WRKSRC}/bin/antivir \
|
|
${PREFIX}/AntiVir/antivir-dist
|
|
.if !exists(${PREFIX}/AntiVir/antivir)
|
|
@${INSTALL} -o daemon -g daemon -m 755 ${WRKSRC}/bin/antivir \
|
|
${PREFIX}/AntiVir
|
|
.endif
|
|
@${INSTALL} -o daemon -g daemon -m 644 ${WRKSRC}/vdf/antivir.vdf \
|
|
${PREFIX}/AntiVir/antivir.vdf-dist
|
|
.if !exists(${PREFIX}/AntiVir/antivir.vdf)
|
|
@${INSTALL} -o daemon -g daemon -m 644 ${WRKSRC}/vdf/antivir.vdf \
|
|
${PREFIX}/AntiVir
|
|
.endif
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/script/avq ${PREFIX}/bin
|
|
.for i in antivir.conf avmilter.conf
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/${i} ${PREFIX}/etc/${i}.sample
|
|
.if !exists(${PREFIX}/etc/${i})
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/${i} ${PREFIX}/etc
|
|
.endif
|
|
.endfor
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/avmilter ${PREFIX}/sbin
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/antivirupdater.sh \
|
|
${PREFIX}/sbin/antivirupdater
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/init/rc.avmilter \
|
|
${PREFIX}/etc/rc.d/antivir-milter.sh
|
|
@${INSTALL} -d -o daemon -g daemon -m 700 /var/spool/avmilter
|
|
.for i in incoming outgoing rejected
|
|
@${INSTALL} -d -o daemon -g daemon -m 700 /var/spool/avmilter/${i}
|
|
.endfor
|
|
.for i in de en es hu it nl
|
|
@${INSTALL} -d ${EXAMPLESDIR}/templates/${i}
|
|
.for j in patho-administrator patho-recipient patho-sender virus-administrator \
|
|
virus-recipient virus-sender
|
|
@${INSTALL_DATA} ${WRKSRC}/templates/${i}/${j} \
|
|
${EXAMPLESDIR}/templates/${i}
|
|
.endfor
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
.for i in ChangeLog LICENSE LICENSE.DE
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.for i in avmilter_de.pdf avmilter_en.pdf
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
.endfor
|
|
@${INSTALL_DATA} ${WRKSRC}/pgp/antivir.gpg ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.post.mk>
|