From owner-svn-ports-all@FreeBSD.ORG Mon Jul 14 14:46:55 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAF6FBCF; Mon, 14 Jul 2014 14:46:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE5862F4C; Mon, 14 Jul 2014 14:46:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6EEkt5N007942; Mon, 14 Jul 2014 14:46:55 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6EEktRq007941; Mon, 14 Jul 2014 14:46:55 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201407141446.s6EEktRq007941@svn.freebsd.org> From: Tijl Coosemans Date: Mon, 14 Jul 2014 14:46:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361784 - head/net/libnids X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 14:46:56 -0000 Author: tijl Date: Mon Jul 14 14:46:55 2014 New Revision: 361784 URL: http://svnweb.freebsd.org/changeset/ports/361784 QAT: https://qat.redports.org/buildarchive/r361784/ Log: Remove the option to depend on net/libnet10 and depend on net/libnet unconditionally. Since this is the last consumer of net/libnet10 this allows marking that port deprecated. Modified: head/net/libnids/Makefile Modified: head/net/libnids/Makefile ============================================================================== --- head/net/libnids/Makefile Mon Jul 14 14:41:13 2014 (r361783) +++ head/net/libnids/Makefile Mon Jul 14 14:46:55 2014 (r361784) @@ -3,56 +3,36 @@ PORTNAME= libnids PORTVERSION= 1.24 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net security MASTER_SITES= SF MAINTAINER= wxs@FreeBSD.org COMMENT?= Network monitoring library with TCP/IP reassembly +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet + LICENSE= GPLv2 CONFLICTS?= libnids-libnet11-[0-9]* -OPTIONS_DEFINE= LIBNET10 LIBNET11 GLIB2 -LIBNET10_DESC= Use libnet 1.0.x -LIBNET11_DESC= Use libnet 1.1.x +OPTIONS_DEFINE= GLIB2 +OPTIONS_DEFAULT=GLIB2 GLIB2_DESC= Use GLIB2 for multiprocessing support OPTIONS_SUB= yes -.if defined(WITH_LIBNET11) -OPTIONS_DEFAULT= LIBNET11 GLIB2 -.else -OPTIONS_DEFAULT= LIBNET10 GLIB2 -.endif GLIB2_USE= gnome=glib20 GLIB2_CONFIGURE_ENABLE= libglib -WANT_GNOME= yes USES= pkgconfig GNU_CONFIGURE= yes -.include - -.if ${PORT_OPTIONS:MLIBNET10} -LIBNET_VERSION= 10 -BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet${LIBNET_VERSION} -LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet${LIBNET_VERSION}-config -LIBNET_LIB= "-L${LOCALBASE}/include/libnet${LIBNET_VERSION} \ - ${LOCALBASE}/lib/libnet${LIBNET_VERSION}/libnet.a" -.elif ${PORT_OPTIONS:MLIBNET11} -LIBNET_VERSION= 11 -BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet -LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet${LIBNET_VERSION}-config -LIBNET_LIB= "`${LIBNET_CONFIG} --libs`" -.else -CONFIGURE_ARGS+= --disable-libnet -.endif +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config post-patch: @${REINPLACE_CMD} -Ee \ 's|(LNET_CFLAGS=).*|\1"`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`"|; \ - s|(LNETLIB=).*|\1${LIBNET_LIB}|' \ + s|(LNETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} do-install: