2004-04-18 19:01:11 +02:00
|
|
|
# New ports collection makefile for: mod_clamav
|
|
|
|
# Date created: Sun Oct 19
|
|
|
|
# Whom: Clement Laforet <clement@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_clamav
|
2009-05-09 20:58:19 +02:00
|
|
|
PORTVERSION= 0.23
|
2010-08-31 03:13:56 +02:00
|
|
|
PORTREVISION= 4
|
2004-04-18 19:01:11 +02:00
|
|
|
CATEGORIES= www security
|
2008-08-15 08:53:14 +02:00
|
|
|
MASTER_SITES= http://software.othello.ch/mod_clamav/ \
|
|
|
|
http://www.kommunity.net/download/mod_clamav/
|
2010-05-25 22:17:37 +02:00
|
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
2004-04-18 19:01:11 +02:00
|
|
|
|
|
|
|
MAINTAINER= tmueko@kommunity.net
|
2008-08-15 08:53:14 +02:00
|
|
|
COMMENT= Scans content delivered by the Apache20 proxy module for viruses
|
2004-04-18 19:01:11 +02:00
|
|
|
|
2010-08-31 03:13:56 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2009-05-21 22:45:34 +02:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2011-08-20 21:00:12 +02:00
|
|
|
USE_APACHE= 22
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-04-18 19:01:11 +02:00
|
|
|
|
2010-08-31 03:13:56 +02:00
|
|
|
OPTIONS= CLAMAVDEVEL "Use development version of CLAMAV" off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2004-04-18 19:01:11 +02:00
|
|
|
.if defined(WITH_CLAMAVDEVEL)
|
2010-04-06 14:01:56 +02:00
|
|
|
LIB_DEPENDS+= clamav.7:${PORTSDIR}/security/clamav-devel
|
2004-04-18 19:01:11 +02:00
|
|
|
.else
|
|
|
|
CLAMAV_PORT= security/clamav
|
2010-04-06 14:01:56 +02:00
|
|
|
LIB_DEPENDS+= clamav.7:${PORTSDIR}/security/clamav
|
2004-04-18 19:01:11 +02:00
|
|
|
.endif
|
|
|
|
|
2009-04-29 03:41:18 +02:00
|
|
|
CONFIGURE_ARGS= --with-apxs=${APXS} \
|
2004-04-18 19:01:11 +02:00
|
|
|
--libdir=${PREFIX}/lib/apache2
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2004-04-21 22:39:23 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include \
|
|
|
|
${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib \
|
|
|
|
${PTHREAD_LIBS}
|
2004-04-18 19:01:11 +02:00
|
|
|
|
2009-05-09 20:58:19 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,REG_EXTENDED,AP_REG_EXTENDED,' \
|
|
|
|
${WRKSRC}/config.c
|
|
|
|
@${REINPLACE_CMD} -e '/^AC_CHECK_HEADERS/ s,regex.h ,,g' \
|
|
|
|
${WRKSRC}/configure.in
|
|
|
|
|
2004-04-18 19:01:11 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2009-04-29 03:41:18 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|