From owner-svn-ports-all@FreeBSD.ORG Tue Jul 15 20:12:22 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 2A266E7D; Tue, 15 Jul 2014 20:12:22 +0000 (UTC) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id 303342FBF; Tue, 15 Jul 2014 20:12:21 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 4E204B84A; Tue, 15 Jul 2014 22:12:18 +0200 (SAST) Date: Tue, 15 Jul 2014 22:12:18 +0200 From: John Hay To: Adam Weinberger Subject: Re: svn commit: r361796 - head/net/olsrd Message-ID: <20140715201218.GA84098@zibbi.meraka.csir.co.za> References: <201407141619.s6EGJoq3052367@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201407141619.s6EGJoq3052367@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org 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: Tue, 15 Jul 2014 20:12:22 -0000 Hi Adam, The WITH_MULTI_IF is for IPv4 support, not IPv6. If you have suggestions on how to handle prefix better, I'm open to suggestions. John -- John Hay -- jhay@meraka.csir.co.za / jhay@meraka.org.za / jhay@FreeBSD.org On Mon, Jul 14, 2014 at 04:19:50PM +0000, Adam Weinberger wrote: > Author: adamw > Date: Mon Jul 14 16:19:49 2014 > New Revision: 361796 > URL: http://svnweb.freebsd.org/changeset/ports/361796 > QAT: https://qat.redports.org/buildarchive/r361796/ > > Log: > Turn WITH_MULTI_IF into an OPTION and pet portlint. I am not even > touching the mysterious .if defined(PREFIX). > > Modified: > head/net/olsrd/Makefile > head/net/olsrd/pkg-descr > > Modified: head/net/olsrd/Makefile > ============================================================================== > --- head/net/olsrd/Makefile Mon Jul 14 16:09:59 2014 (r361795) > +++ head/net/olsrd/Makefile Mon Jul 14 16:19:49 2014 (r361796) > @@ -13,10 +13,6 @@ COMMENT= OLSR routing daemon > > BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend > > -.if defined(WITH_MULTI_IF) > -LIB_DEPENDS+= libnet.so:${PORTSDIR}/net/libnet > -.endif > - > USES= bison gmake tar:bzip2 > USE_LDCONFIG= yes > USE_RC_SUBR= olsrd > @@ -24,13 +20,16 @@ USE_RC_SUBR= olsrd > ALL_TARGET= build_all > INSTALL_TARGET= install_all > > -.if defined(WITH_MULTI_IF) > -MAKE_ARGS+= LIBNET=1 > -.endif > +OPTIONS_DEFINE= MULTI_IF > +MULTI_IF_DESC= IPv6 multiple interface support > + > +MULTI_IF_LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet > +MULTI_IF_MAKE_ARGS= LIBNET=1 > + > .if defined(PREFIX) > MAKE_ARGS+= PREFIX=${PREFIX} > .endif > -MAKE_ARGS+= STAGEDIR=${STAGEDIR} > +MAKE_ARGS+= STAGEDIR=${STAGEDIR} > > .include > > @@ -38,14 +37,6 @@ MAKE_ARGS+= STAGEDIR=${STAGEDIR} > CFLAGS+= -fPIC > .endif > > -.if !defined(WITH_MULTI_IF) > -pre-everything:: > - @${ECHO_MSG} "" > - @${ECHO_MSG} " To enable IPv4 multiple interface support make with" > - @${ECHO_MSG} " WITH_MULTI_IF defined" > - @${ECHO_MSG} "" > -.endif > - > post-patch: > @${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd > > > Modified: head/net/olsrd/pkg-descr > ============================================================================== > --- head/net/olsrd/pkg-descr Mon Jul 14 16:09:59 2014 (r361795) > +++ head/net/olsrd/pkg-descr Mon Jul 14 16:19:49 2014 (r361796) > @@ -6,4 +6,3 @@ networks. The protocol is pro-active, ta > technique called multipoint relaying for message flooding. > > WWW: http://www.olsr.org/ > -