81bc2d2a99
- Fix build with custom PREFIX PR: 141211 Submitted by: Sahil Tandon <sahil@tandon.net>
37 lines
915 B
Makefile
37 lines
915 B
Makefile
# New ports collection makefile for: squidclamav
|
|
# Date created: 2008-06-02
|
|
# Whom: Laurent LEVIER <llevier@argosnet.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= squidclamav
|
|
PORTVERSION= 4.1
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF \
|
|
http://www.samse.fr/GPL/squidclamav/ \
|
|
http://www.darold.net/projects/squidclamav/
|
|
|
|
MAINTAINER= llevier@argosnet.com
|
|
COMMENT= Squid interface to ClamAV
|
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
NO_LATEST_LINK= yes
|
|
SUB_FILES= pkg-message
|
|
|
|
PLIST_FILES= bin/squidclamav etc/squidclamav.conf.dist
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -E 's|^(LDFLAGS = ).*|\1-L${LOCALBASE}/lib|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/squidclamav ${PREFIX}/bin
|
|
@${INSTALL_DATA} ${WRKSRC}/squidclamav.conf.dist ${PREFIX}/etc
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|