1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/security/squidclam/Makefile
Renato Botelho 37c88c8e12 - Update security/clamav to 0.94 [1] and fix a remote DoS [2]
- Chase libclamav version bump on all dependant ports
- Bump necessary PORTREVISIONS
- Fix some BROKEN messages from ports that were already broken with clamav-0.93
- Mark security/klamav as BROKEN since it doesn't build with clamav-0.94

PR:		ports/127122 [1], ports/127310 [2]
Submitted by:	Gary Palmer <freebsd-gnats@in-addr.com> [1], delphij [2]
Approved by:	portmgr (pav)
2008-09-15 19:56:38 +00:00

58 lines
1.4 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 or higher
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>