1 # Created by: Ilja Dejs <ilja.dejs@gmail.com>
8 MASTER_SITES= http://tsatsenko.ru/ports/distfiles/
10 MAINTAINER= m.tsatsenko@gmail.com
11 COMMENT= IM transparent proxy with monitoring, blocking, and content-filtering
15 CFLAGS+= -fPIC -I ${LOCALBASE}/include -DHAVE_SSL
18 USE_LDCONFIG= ${LOCALBASE}/lib/imspector
20 CONFIG_FILES= imspector.conf badwords.txt acl.txt
22 USE_RC_SUBR= ${PORTNAME}
24 MAKE_ENV+= ETCDIR=${ETCDIR}
26 OPTIONS_DEFINE= IPFW PLUGINS
30 IPFW_DESC= Add IPFW support
31 PLUGINS_DESC= Build plugins
33 IPFW_CFLAGS= -DIPFW_TRANSPARENT=1
34 PLUGINS_USE= MYSQL=yes SQLITE=yes PGSQL=yes
36 .include <bsd.port.options.mk>
39 @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
42 @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
43 ${WRKSRC}/imspector.conf \
45 @${REINPLACE_CMD} -e 's,= SSLv23_method(),= (SSL_METHOD *) SSLv23_method(),g' \
46 ${WRKSRC}/sslstate.cpp
47 @${REINPLACE_CMD} -e 's,%%ICONV_LIB%%,${ICONV_LIB},' \
49 .if ${PORT_OPTIONS:MPLUGINS}
50 @${REINPLACE_CMD} -e 's,#ADD_PLUGINS,ADD_PLUGINS,' \
54 .include <bsd.port.mk>