diff options
author | pclin <pclin@FreeBSD.org> | 2013-02-25 12:25:37 +0800 |
---|---|---|
committer | pclin <pclin@FreeBSD.org> | 2013-02-25 12:25:37 +0800 |
commit | 96c278920a02b5de6cf8c74ffe25a6e9c61a30e9 (patch) | |
tree | 425b0328e7cfbbdbaab46f61b07f9621325122ba /net-im/imspector | |
parent | 59c6868531b458e5a49579eae98be2834a223080 (diff) | |
download | freebsd-ports-gnome-96c278920a02b5de6cf8c74ffe25a6e9c61a30e9.tar.gz freebsd-ports-gnome-96c278920a02b5de6cf8c74ffe25a6e9c61a30e9.tar.zst freebsd-ports-gnome-96c278920a02b5de6cf8c74ffe25a6e9c61a30e9.zip |
- Add IPFW suuport [1] and enable it by default [2]
- Trim Makefile header [2]
- Remove invalid entry from MASTER_SITES
- Patch to fix clang compiling
- Tune pkg-plist to pet portlint(1)
PR: ports/175765
Submitted by: Oleg_Sch <7zsfx@7zsfx.info> [1]
Approved by: Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer) [2]
Approved by: swills (mentor)
Diffstat (limited to 'net-im/imspector')
-rw-r--r-- | net-im/imspector/Makefile | 26 | ||||
-rw-r--r-- | net-im/imspector/pkg-plist | 5 |
2 files changed, 21 insertions, 10 deletions
diff --git a/net-im/imspector/Makefile b/net-im/imspector/Makefile index d31ff7217418..08418b0fa4a3 100644 --- a/net-im/imspector/Makefile +++ b/net-im/imspector/Makefile @@ -1,15 +1,11 @@ -# New ports collection makefile for: imspector -# Date created: 17 March 2008 -# Whom: Ilja Dejs <ilja.dejs@gmail.com> -# +# Created by: Ilja Dejs <ilja.dejs@gmail.com> # $FreeBSD$ -# PORTNAME= imspector PORTVERSION= 20111108 +PORTREVISION= 1 CATEGORIES= net-im -MASTER_SITES= http://www.imspector.org/downloads/ \ - http://tsatsenko.ru/ports/distfiles/ +MASTER_SITES= http://tsatsenko.ru/ports/distfiles/ MAINTAINER= m.tsatsenko@gmail.com COMMENT= IM transparent proxy with monitoring, blocking, and content-filtering @@ -28,12 +24,26 @@ USE_RC_SUBR= ${PORTNAME} MAKE_ENV+= ETCDIR=${ETCDIR} +OPTIONS_DEFINE= IPFW +OPTIONS_DEFAULT= IPFW +IPFW_DESC= Add IPFW support + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MIPFW} +CFLAGS+= -DIPFW_TRANSPARENT=1 +.endif + post-extract: - ${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} + ${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 + post-install: .for f in ${CONFIG_FILES} @if [ ! -f ${ETCDIR}/${f} ]; then \ diff --git a/net-im/imspector/pkg-plist b/net-im/imspector/pkg-plist index c0fd4592263c..a0efa838794d 100644 --- a/net-im/imspector/pkg-plist +++ b/net-im/imspector/pkg-plist @@ -27,5 +27,6 @@ lib/libimspector.so sbin/imspector @dirrmtry %%ETCDIR%% @dirrm lib/imspector -@unexec rmdir /var/lib/imspector 2>/dev/null || true -@unexec rmdir /var/log/imspector 2>/dev/null || true +@cwd /var +@dirrmtry %D/lib/imspector +@dirrmtry %D/log/imspector |