Subject: pkg/16872: OpenSSL + net/pcap + USE_BUILDLINK_ONLY support for net/ethereal-0.9.3nb1
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 05/17/2002 20:26:21
>Number:         16872
>Category:       pkg
>Synopsis:       OpenSSL + net/pcap + USE_BUILDLINK_ONLY support for net/ethereal-0.9.3nb1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 17:27:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        pkgsrc-2002/05/15
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 1.5W
Architecture: i386
Machine: i386
>Description:

	net/ethereal doesn't currently make use of OpenSSL

	it also doesn't make use of net/libpcap (which is presumably
	needed for some non-NetBSD systems)

	it also seems ethereal hasn't yet been convered to use the
	buildlink mechanisms exclusively....

	the attached patch should do the trick for all of the above

	(I'm not 100% sure it still actually needs perl to build, but I
	don't currently have the time to try it on a perl-free system....  :-)

>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/net/ethereal/Makefile,v
retrieving revision 1.59
diff -c -r1.59 Makefile
*** Makefile	20 Apr 2002 18:46:08 -0000	1.59
--- Makefile	17 May 2002 23:38:40 -0000
***************
*** 12,28 ****
  
  BUILD_DEPENDS+=		perl>=${PERL5_REQD}:../../lang/perl5
  
! USE_X11=		YES
! USE_SSL=		YES
! USE_LIBTOOL=		YES
  LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig
  
  GNU_CONFIGURE=		YES
  EVAL_PREFIX+=		GTKDIR=gtk+
- CONFIGURE_ARGS+=	--with-gtk-prefix=${BUILDLINK_DIR} \
- 			--with-ucdsnmp=${BUILDLINK_DIR}
  LIBS+=			-lcrypto
  
  .include "../../x11/gtk/buildlink.mk"
! .include "../ucd-snmp/buildlink.mk"
  .include "../../mk/bsd.pkg.mk"
--- 12,37 ----
  
  BUILD_DEPENDS+=		perl>=${PERL5_REQD}:../../lang/perl5
  
! USE_GMAKE=		# defined
! USE_LIBTOOL=		# defined
  LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig
  
+ USE_BUILDLINK_ONLY=	# defined
+ 
  GNU_CONFIGURE=		YES
  EVAL_PREFIX+=		GTKDIR=gtk+
  LIBS+=			-lcrypto
  
+ # XXX I wonder why the buildlink.mk files don't add these....
+ #
+ CONFIGURE_ARGS+=--with-ssl=${BUILDLINK_DIR}
+ CONFIGURE_ARGS+=--with-gtk-prefix=${BUILDLINK_DIR}
+ CONFIGURE_ARGS+=--with-ucdsnmp=${BUILDLINK_DIR}
+ CONFIGURE_ARGS+=--with-pcap=${BUILDLINK_DIR}
+ 
+ .include "../../mk/x11.buildlink.mk"	# USE_X11=
+ .include "../../security/openssl/buildlink.mk"	# USE_SSL=
  .include "../../x11/gtk/buildlink.mk"
! .include "../../net/ucd-snmp/buildlink.mk"
! .include "../../net/libpcap/buildlink.mk"
  .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: