summaryrefslogtreecommitdiffstats
path: root/net/ethereal
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2002-02-05 00:42:05 +0000
committerbillf <billf@FreeBSD.org>2002-02-05 00:42:05 +0000
commit36fc28c6d5db1d78f90b397c73ce2c968583f66b (patch)
tree55bc354bc3cf81bab5cc1538a650959f2b6fa79b /net/ethereal
parentafb50cf6a1a9a4d0ea13d5ebddcdf11918c11efe (diff)
downloadFreeBSD-ports-36fc28c6d5db1d78f90b397c73ce2c968583f66b.zip
FreeBSD-ports-36fc28c6d5db1d78f90b397c73ce2c968583f66b.tar.gz
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/Makefile24
-rw-r--r--net/ethereal/pkg-plist2
2 files changed, 19 insertions, 7 deletions
diff --git a/net/ethereal/Makefile b/net/ethereal/Makefile
index 1ec3635..120d777 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 87fef98..de05835 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
OpenPOWER on IntegriCloud