1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/security/clamav-unofficial-sigs/Makefile
Adam Weinberger 4ca54cc2f2 STAGE support, and general cleanups. Some of the changes are a
bit more aggressive, but at this point, if I'm staging your port,
you've likely stopped caring what's done to it.
2014-05-01 01:42:38 +00:00

51 lines
1.7 KiB
Makefile

# Created by: Marko Njezic <sf@maxempire.com>
# $FreeBSD$
PORTNAME= clamav-unofficial-sigs
PORTVERSION= 3.7.2
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF/unofficial-sigs/
MAINTAINER= sf@maxempire.com
COMMENT= Update script for third-party ClamAV databases
RUN_DEPENDS= clamscan:${PORTSDIR}/security/clamav \
rsync:${PORTSDIR}/net/rsync \
curl:${PORTSDIR}/ftp/curl \
gpg:${PORTSDIR}/security/gnupg
USES= perl5
USE_PERL5= run
NO_BUILD= yes
SUB_FILES= pkg-message
SED_CONF= -e 's|%%CLAM_DBS%%|/var/db/clamav|g' \
-e 's|%%CLAMD_PID%%|/var/run/clamav/clamd.pid|g' \
-e 's|%%CLAMD_SOCKET%%|/var/run/clamav/clamd.sock|g' \
-e 's|%%START_CLAMD%%|${PREFIX}/etc/rc.d/clamav-clamd start|g' \
-e 's|%%WORK_DIR%%|/var/db/clamav-unofficial-sigs|g'
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/clamav-unofficial-sigs.sh
@${REINPLACE_CMD} ${SED_CONF} ${WRKSRC}/clamav-unofficial-sigs.conf
@${REINPLACE_CMD} ${SED_CONF} ${WRKSRC}/clamd-status.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/clamav-unofficial-sigs.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/clamav-unofficial-sigs.8 ${STAGEDIR}${MANPREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs.conf ${STAGEDIR}${PREFIX}/etc/clamav-unofficial-sigs.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG INSTALL LICENSE README ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs-cron ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs-logrotate ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/clamd-status.sh ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>