2009-04-23 15:20:02 +02:00
|
|
|
# New ports collection makefile for: scamp
|
|
|
|
# Date created: 31 March 2009
|
|
|
|
# Whom: Gerard Seibert <gerard@seibercom.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= scamp
|
2009-05-28 17:59:18 +02:00
|
|
|
PORTVERSION= 5.2d
|
2009-04-23 15:20:02 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
|
|
|
MAINTAINER= gerard@seibercom.net
|
|
|
|
COMMENT= Download & Install additional definition files for Clamav
|
|
|
|
|
2009-05-28 17:59:18 +02:00
|
|
|
RUN_DEPENDS+= bash>=3.2.48_1:${PORTSDIR}/shells/bash \
|
2009-04-23 15:20:02 +02:00
|
|
|
clamav>=0.95.1:${PORTSDIR}/security/clamav \
|
|
|
|
gnupg>=2.0.11:${PORTSDIR}/security/gnupg \
|
2009-05-20 18:37:00 +02:00
|
|
|
rsync>=3.0.6:${PORTSDIR}/net/rsync
|
2009-04-23 15:20:02 +02:00
|
|
|
|
|
|
|
.if exists (${LOCALBASE}/bin/wget) && ! exists (${LOCALBASE}/bin/curl)
|
|
|
|
RUN_DEPENDS+= wget>=1.11.4:${PORTSDIR}/ftp/wget
|
|
|
|
.else
|
2009-05-28 17:59:18 +02:00
|
|
|
RUN_DEPENDS+= curl>=7.19.5:${PORTSDIR}/ftp/curl
|
2009-04-23 15:20:02 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
MAN1= scamp.1
|
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
|
|
|
post-patch:
|
2009-05-20 18:37:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|SIG_DB=$${SIG_DB:-""}|SIG_DB=$${SIG_DB:-/var/db/clamav}|g' ${WRKSRC}/${PORTNAME}.sh
|
|
|
|
@${REINPLACE_CMD} -e 's|CONFIG_DIR=$${CONFIG_DIR:-"/etc/scamp"}|CONFIG_DIR=$${CONFIG_DIR:-${PREFIX}/etc/scamp}|g' ${WRKSRC}/${PORTNAME}.sh
|
2009-04-23 15:20:02 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -d ${PREFIX}/etc/scamp ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/etc/scamp ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/default.sample ${PREFIX}/etc/scamp/
|
|
|
|
@if [ ! -f ${PREFIX}/etc/scamp/default ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/scamp/default.sample \
|
|
|
|
${PREFIX}/etc/scamp/default ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTNAME}.sh ${PREFIX}/bin
|
|
|
|
cd ${WRKSRC} && ${INSTALL_MAN} scamp.1 ${MANPREFIX}/man/man1
|
|
|
|
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} README CHANGE.LOG INSTALL Release.html ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|