Date: Tue, 9 Oct 2012 14:18:24 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r305590 - head/net-mgmt/ettercap Message-ID: <201210091418.q99EIO6f019650@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Tue Oct 9 14:18:24 2012 New Revision: 305590 URL: http://svn.freebsd.org/changeset/ports/305590 Log: - Convert to new options framework - Rename options: GTK -> GTK2, ICONV -> UTF8 - Pet portlint: remove ABI version number from LIB_DEPENDS - Cleanup Makefile header - Cosmetic change Modified: head/net-mgmt/ettercap/Makefile (contents, props changed) Modified: head/net-mgmt/ettercap/Makefile ============================================================================== --- head/net-mgmt/ettercap/Makefile Tue Oct 9 14:15:38 2012 (r305589) +++ head/net-mgmt/ettercap/Makefile Tue Oct 9 14:18:24 2012 (r305590) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ettercap -# Date created: 19 February 2001 -# Whom: George Reid <greid@ukug.uk.freebsd.org> -# +# Created by: George Reid <greid@ukug.uk.freebsd.org> # $FreeBSD$ -# PORTNAME= ettercap PORTVERSION= 0.7.4.1 @@ -18,11 +14,11 @@ COMMENT= A network sniffer/interceptor/i BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet -OPTIONS= GTK "Build with GTK2+ GUI" on \ - ICONV "Build with support for UTF-8" on \ - PCRE "Build with PCRE regexps in filters" on \ - PLUGINS "Build with ettercap plugins" on \ - SSL "Build with support for SSH1 and SSL decryption" on +# GTK -> GTK2, ICONV -> UTF8 +OPTIONS_DEFINE= DOCS GTK2 PCRE PLUGINS SSL UTF8 +OPTIONS_DEFAULT=GTK2 PCRE PLUGINS SSL UTF8 +PCRE_DESC= Use PCRE in filters +SSL_DESC= SSH1 and SSL decryption support CFLAGS+= ${PTHREAD_CFLAGS} CONFIGURE_ENV= LIBS="${LDFLAGS}" @@ -36,49 +32,49 @@ USE_BISON= build WANT_GNOME= yes WRKSRC= ${WRKDIR}/${PORTNAME} -MAN5= etter.conf.5 -MAN8= ettercap.8 ettercap_curses.8 etterfilter.8 etterlog.8 DOCS= AUTHORS CHANGELOG README README.BINARIES README.BUGS \ README.GIT README.PLATFORMS THANKS TODO TODO.TESTING \ doc/capture doc/decoders doc/dissectors doc/threads +MAN5= etter.conf.5 +MAN8= ettercap.8 ettercap_curses.8 etterfilter.8 etterlog.8 LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config .include <bsd.port.options.mk> -.if !defined(WITHOUT_GTK) -USE_GNOME= atk glib20 gtk20 pango +.if ${PORT_OPTIONS:MGTK2} PKGNAMESUFFIX+= -gtk2 CONFIGURE_ARGS+=--enable-gtk +USE_GNOME= atk glib20 gtk20 pango .else CONFIGURE_ARGS+=--disable-gtk .endif -.if !defined(WITHOUT_ICONV) -USE_ICONV= yes +.if ${PORT_OPTIONS:MUTF8} CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} +USE_ICONV= yes .endif -.if !defined(WITHOUT_PCRE) -LIB_DEPENDS+= pcre.1:${PORTSDIR}/devel/pcre +.if ${PORT_OPTIONS:MPCRE} +LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre CONFIGURE_ARGS+=--with-libpcre=${LOCALBASE} .else CONFIGURE_ARGS+=--without-libpcre .endif -.if !defined(WITHOUT_PLUGINS) -MAN8+= ettercap_plugins.8 -DOCS+= doc/plugins +.if ${PORT_OPTIONS:MPLUGINS} CONFIGURE_ARGS+=--enable-plugins +DOCS+= doc/plugins +MAN8+= ettercap_plugins.8 PLIST_SUB+= PLUGINS="" .else CONFIGURE_ARGS+=--disable-plugins PLIST_SUB+= PLUGINS="@comment " .endif -.if !defined(WITHOUT_SSL) -USE_OPENSSL= yes +.if ${PORT_OPTIONS:MSSL} CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} +USE_OPENSSL= yes .else CONFIGURE_ARGS+=--without-openssl .endif @@ -109,7 +105,7 @@ post-install: .if !exists(${PREFIX}/etc/etter.conf) ${INSTALL_DATA} ${WRKSRC}/share/etter.conf ${PREFIX}/etc/etter.conf .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/ cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/ .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210091418.q99EIO6f019650>