1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

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
This commit is contained in:
Bill Fumerola 2002-02-05 00:42:05 +00:00
parent 308066d4fa
commit a60834462b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54216
7 changed files with 75 additions and 14 deletions

View File

@ -455,6 +455,7 @@
SUBDIR += tdetect
SUBDIR += telnetx
SUBDIR += telserv
SUBDIR += tethereal
SUBDIR += thcrut
SUBDIR += tightvnc
SUBDIR += tik

View File

@ -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}

View File

@ -1,5 +1,5 @@
bin/editcap
bin/ethereal
%%ETHEREAL%%
bin/idl2eth
bin/mergecap
bin/tethereal

18
net/tethereal/Makefile Normal file
View File

@ -0,0 +1,18 @@
# New ports collection makefile for: tethereal
# Date created: 4 February 2002
# Whom: Bill Fumerola <billf@mu.org>
# A slave of ports collection makefile for: ethereal
# Date created: 10 August 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#
PKGNAMEPREFIX= t
CATEGORIES= net ipv6
MASTERDIR= ${.CURDIR}/../ethereal
WITHOUT_X11= yes
.include "${MASTERDIR}/Makefile"

18
net/tshark/Makefile Normal file
View File

@ -0,0 +1,18 @@
# New ports collection makefile for: tethereal
# Date created: 4 February 2002
# Whom: Bill Fumerola <billf@mu.org>
# A slave of ports collection makefile for: ethereal
# Date created: 10 August 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#
PKGNAMEPREFIX= t
CATEGORIES= net ipv6
MASTERDIR= ${.CURDIR}/../ethereal
WITHOUT_X11= yes
.include "${MASTERDIR}/Makefile"

View File

@ -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}

View File

@ -1,5 +1,5 @@
bin/editcap
bin/ethereal
%%ETHEREAL%%
bin/idl2eth
bin/mergecap
bin/tethereal