freebsd-ports/security/squidclam/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

57 lines
1.3 KiB
Makefile

# New ports collection makefile for: squidclam
# Date created: 2005-06-26
# Whom: Alexander Novitsky <alecn2002@yandex.ru>
#
# $FreeBSD$
#
PORTNAME= squidclam
PORTVERSION= 0.11
PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= alecn2002@yandex.ru
COMMENT= Bridge betwean ClamAV antivirus software and Squid caching proxy
BUILD_DEPENDS= ${LOCALBASE}/bin/clamscan:${PORTSDIR}/security/clamav \
${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl
RUN_DEPENDS= ${BUILD_DEPENDS}
GNU_CONFIGURE= yes
USE_GMAKE= yes
NO_INSTALL_MANPAGES= yes
CFLAGS+= ${PTHREAD_LIBS}
PORTDOCS= README Changelog
SUB_FILES= pkg-message
PLIST_FILES= bin/squidclam %%EXAMPLESDIR%%/squidclam.conf
PLIST_DIRS= %%EXAMPLESDIR%%
BROKEN= Doesn't build with clamav-0.93
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
-e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|cl_perror|cl_strerror|g' \
${WRKSRC}/squidclam.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}/$f
.endfor
.endif
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/sample.conf ${EXAMPLESDIR}/${PORTNAME}.conf
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>