mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
8f2d6777f1
Submitted by: antoine
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Created by: Ilja Dejs <ilja.dejs@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= imspector
|
|
PORTVERSION= 20111108
|
|
PORTREVISION= 2
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= http://tsatsenko.ru/ports/distfiles/
|
|
|
|
MAINTAINER= m.tsatsenko@gmail.com
|
|
COMMENT= IM transparent proxy with monitoring, blocking, and content-filtering
|
|
|
|
LICENSE= GPLv2
|
|
|
|
CFLAGS+= -fPIC -I ${LOCALBASE}/include -DHAVE_SSL
|
|
USES= iconv gmake
|
|
USE_OPENSSL= YES
|
|
USE_LDCONFIG= ${LOCALBASE}/lib/imspector
|
|
|
|
CONFIG_FILES= imspector.conf badwords.txt acl.txt
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
MAKE_ENV+= ETCDIR=${ETCDIR}
|
|
|
|
OPTIONS_DEFINE= IPFW PLUGINS
|
|
OPTIONS_DEFAULT=IPFW
|
|
OPTIONS_SUB= yes
|
|
|
|
IPFW_DESC= Add IPFW support
|
|
PLUGINS_DESC= Build plugins
|
|
|
|
IPFW_CFLAGS= -DIPFW_TRANSPARENT=1
|
|
PLUGINS_USE= MYSQL=yes SQLITE=yes
|
|
PLUGINS_USES= pgsql
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
${WRKSRC}/imspector.conf \
|
|
${WRKSRC}/main.cpp
|
|
@${REINPLACE_CMD} -e 's,= SSLv23_method(),= (SSL_METHOD *) SSLv23_method(),g' \
|
|
${WRKSRC}/sslstate.cpp
|
|
@${REINPLACE_CMD} -e 's,%%ICONV_LIB%%,${ICONV_LIB},' \
|
|
${WRKSRC}/Makefile
|
|
.if ${PORT_OPTIONS:MPLUGINS}
|
|
@${REINPLACE_CMD} -e 's,#ADD_PLUGINS,ADD_PLUGINS,' \
|
|
${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|