diff options
author | billf <billf@FreeBSD.org> | 2002-02-05 08:42:05 +0800 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2002-02-05 08:42:05 +0800 |
commit | 36fc28c6d5db1d78f90b397c73ce2c968583f66b (patch) | |
tree | 55bc354bc3cf81bab5cc1538a650959f2b6fa79b /net/ethereal | |
parent | afb50cf6a1a9a4d0ea13d5ebddcdf11918c11efe (diff) | |
download | freebsd-ports-graphics-36fc28c6d5db1d78f90b397c73ce2c968583f66b.tar.gz freebsd-ports-graphics-36fc28c6d5db1d78f90b397c73ce2c968583f66b.tar.zst freebsd-ports-graphics-36fc28c6d5db1d78f90b397c73ce2c968583f66b.zip |
ethereal:
add hooks for only building tethereal, which doesn't require X
build with SNMP dissection (requires ucd-snmp) by default
add tethereal as a slave port to ethereal
Diffstat (limited to 'net/ethereal')
-rw-r--r-- | net/ethereal/Makefile | 24 | ||||
-rw-r--r-- | net/ethereal/pkg-plist | 2 |
2 files changed, 19 insertions, 7 deletions
diff --git a/net/ethereal/Makefile b/net/ethereal/Makefile index 1ec36358bf3..120d777edcb 100644 --- a/net/ethereal/Makefile +++ b/net/ethereal/Makefile @@ -16,26 +16,38 @@ MASTER_SITE_SUBDIR= . old-versions MAINTAINER= billf@FreeBSD.org -.if defined(WITH_SNMP) +.if !defined(WITHOUT_SNMP) LIB_DEPENDS= snmp.4:${PORTSDIR}/net/net-snmp .endif +.if !defined(WITHOUT_X11) USE_X_PREFIX= yes USE_GTK= yes +MAN1+= ethereal.1 +PLIST_SUB+= ETHEREAL=bin/ethereal +.else +PLIST_SUB+= ETHEREAL="@comment ethereal not built" +LIB_DEPENDS+= glib12.3:${PORTSDIR}/devel/glib12 +CONFIGURE_ARGS+= --enable-ethereal=no \ + --disable-gtktest +CONFIGURE_ENV+= GLIB_CONFIG=${LOCALBASE}/bin/glib12-config +.endif + USE_LIBTOOL= yes LIBTOOLFILES= configure epan/configure wiretap/configure -.if defined(WITH_SNMP) -CONFIGURE_ARGS+= --enable-snmp=yes +PLIST_SUB+= PORTVERSION=${PORTVERSION} + +.if !defined(WITHOUT_SNMP) +CONFIGURE_ARGS+= --enable-snmp=yes \ + --with-ucdsnmp=${LOCALBASE}/lib .if exists(/usr/include/openssl/crypto.h) CONFIGURE_ARGS+= --with-ssl=/usr .endif .else CONFIGURE_ARGS+= --enable-snmp=no .endif -PLIST_SUB= PORTVERSION=${PORTVERSION} -MAN1= editcap.1 ethereal.1 idl2eth.1 mergecap.1 tethereal.1 \ - text2pcap.1 +MAN1+= editcap.1 idl2eth.1 mergecap.1 tethereal.1 text2pcap.1 pre-install: .for i in ${MAN1} diff --git a/net/ethereal/pkg-plist b/net/ethereal/pkg-plist index 87fef981805..de05835b4cd 100644 --- a/net/ethereal/pkg-plist +++ b/net/ethereal/pkg-plist @@ -1,5 +1,5 @@ bin/editcap -bin/ethereal +%%ETHEREAL%% bin/idl2eth bin/mergecap bin/tethereal |