1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/security/squidclam/Makefile
Ade Lovett ccd0fca5ec Unbreak pthread-related issues on 5.x
Approved by:	portmgr
2007-11-26 17:45:55 +00:00

56 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= 2
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%%
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>