diff options
author | netchild <netchild@FreeBSD.org> | 2003-10-15 00:01:11 +0800 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2003-10-15 00:01:11 +0800 |
commit | f8091dc3231843b8dbdb1d5b024bcab3687dc8f6 (patch) | |
tree | cf008ebd1d0e765be8a6505e13026cc7a33e8cf1 /net-mgmt/ettercap/Makefile | |
parent | 31e9ea96819f40595b47d34d631e16c070c55c24 (diff) | |
download | freebsd-ports-gnome-f8091dc3231843b8dbdb1d5b024bcab3687dc8f6.tar.gz freebsd-ports-gnome-f8091dc3231843b8dbdb1d5b024bcab3687dc8f6.tar.zst freebsd-ports-gnome-f8091dc3231843b8dbdb1d5b024bcab3687dc8f6.zip |
Update to 0.6.b.
- gtk2 support
- new sniffing method was added as a plugin
- three new plugins
- bumb PORTEPOCH, otherwise 0.6.b (they mean hex B) wouldn't be recognised
as newer by pkg_version etc.
- add 'security' as a second category (as nmap and friends are mainly there)
- respect CFLAGS, PTHREAD_CFLAGS and PTHREAD_LIBS
- make SSL-support optional
- base compilation of gnome frontend on autodetection of installed gtk20,
use gnome-PKGNAMESUFFIX
- disable auto-download of new version via wget (saves dependency on wget,
FreeBSD-users should update via the ports-collection anyway)
- enable compilation and installation of the plug-ins
- compile lc-converter (an application port IMO should not install sources)
- don't install ettercap.fr.8.in
Submitted by: Marius Strobl <marius@alchemy.franken.de>
PR: 51898
Approved by: maintainer timeout (~5 months)
Diffstat (limited to 'net-mgmt/ettercap/Makefile')
-rw-r--r-- | net-mgmt/ettercap/Makefile | 49 |
1 files changed, 43 insertions, 6 deletions
diff --git a/net-mgmt/ettercap/Makefile b/net-mgmt/ettercap/Makefile index 5e3bd97529be..23a4bd9a46df 100644 --- a/net-mgmt/ettercap/Makefile +++ b/net-mgmt/ettercap/Makefile @@ -6,8 +6,9 @@ # PORTNAME= ettercap -PORTVERSION= 0.6.7 -CATEGORIES= net +PORTVERSION= 0.6.b +PORTEPOCH= 1 +CATEGORIES= net security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ ${MASTER_SITE_PACKETSTORM:S:%SUBDIR%:sniffers/ettercap:} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,14 +16,50 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= greid@FreeBSD.org COMMENT= A network sniffer/interceptor/injector/logger for switched LANs +USE_REINPLACE= yes +.if !defined(WITHOUT_SSL) +USE_OPENSSL= yes +.endif GNU_CONFIGURE= yes +WANT_GNOME= yes + +MAN8= ettercap.8 +.include <bsd.port.pre.mk> + +CFLAGS+= ${PTHREAD_CFLAGS} + +CONFIGURE_TARGET= -build=${ARCH}-portbld-freebsd${OSREL} +.if defined(WITHOUT_SSL) +CONFIGURE_ARGS= --without-openssl +PLIST_SUB+= SSL="@comment " +.else +CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} +PLIST_SUB+= SSL="" +.endif +.if ${HAVE_GNOME:Mgtk20}!="" +USE_GNOME+= gtk20 +PKGNAMESUFFIX= -gnome +.else +CONFIGURE_ARGS+= --disable-gtk +.endif +CONFIGURE_ENV= WGET_PATH="" + +ALL_TARGET= all plug-ins + +INSTALL_TARGET= install plug-ins_install .if !defined(NOPORTDOCS) -INSTALL_TARGET= install install-doc +INSTALL_TARGET+= install-doc .endif -PLIST_SUB+= PORTVERSION=${PORTVERSION} +post-patch: + @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure + @${MV} -f ${WRKSRC}/share/lc-converter.c ${WRKSRC} -MAN8= ettercap.8 +post-build: + ${CC} ${CFLAGS} -o ${WRKSRC}/lc-converter ${WRKSRC}/lc-converter.c + +post-install:: + ${INSTALL_PROGRAM} ${WRKSRC}/lc-converter ${PREFIX}/bin -.include <bsd.port.mk> +.include <bsd.port.post.mk> |