From owner-svn-ports-head@FreeBSD.ORG Tue Jun 9 19:55:09 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 055C9D36; Tue, 9 Jun 2015 19:55:09 +0000 (UTC) (envelope-from danilogondolfo@gmail.com) Received: from mail-yk0-x22b.google.com (mail-yk0-x22b.google.com [IPv6:2607:f8b0:4002:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B57E110BD; Tue, 9 Jun 2015 19:55:08 +0000 (UTC) (envelope-from danilogondolfo@gmail.com) Received: by yked142 with SMTP id d142so13019853yke.3; Tue, 09 Jun 2015 12:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=1IX2mgnBKQ5vwfwyobWYW2r/ZDq3SgGmZ5n8jHDZpeU=; b=BrVMdr6eUwS5/MpTf6ZHBHUXIcKhWSGMdWl9srftg1sz1FyDi4YyEmieotnmhxxMTD a7a22P4LCnlrLnMXel+NzOyPKrN/PuzCWdg8cCXk8I2HsoOQyOP9g6Wg0Bq8Di4ztUJZ BNZ4dv6Us1bVcXinNfYuCkvVN7zMjSunPHwfm+wPa9WE+iR6+Uk/N1gKUaKaGe4QMboX Mn1pBUAZNcyztkQCKhMY7vSYRpQOYRRTA9w9WlPN/yBuOQA5MppZuG2x9ZDmbbfOwH30 ZKrWEfbq2e28BFeYJqT6olWsBJQ0WVgpKHe+Z+dW6RUZqtua44kagDf8ilCFtZ9jXwid KijQ== X-Received: by 10.170.158.10 with SMTP id z10mr27821083ykc.1.1433879707834; Tue, 09 Jun 2015 12:55:07 -0700 (PDT) Received: from [192.168.1.109] ([179.105.216.92]) by mx.google.com with ESMTPSA id d15sm4881047ywe.34.2015.06.09.12.55.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 12:55:06 -0700 (PDT) Sender: =?UTF-8?Q?Danilo_Eg=C3=AAa_Gondolfo?= Message-ID: <557744EA.4070900@FreeBSD.org> Date: Tue, 09 Jun 2015 16:56:26 -0300 From: Danilo Egea Gondolfo User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: marino@freebsd.org, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r388942 - head/net/pen References: <201506091455.t59Etmfh031778@svn.freebsd.org> <5576FFE8.8080105@marino.st> In-Reply-To: <5576FFE8.8080105@marino.st> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2015 19:55:09 -0000 On 06/09/15 12:02, John Marino wrote: > On 6/9/2015 16:55, Danilo Egea Gondolfo wrote: >> Author: danilo >> Date: Tue Jun 9 14:55:47 2015 >> New Revision: 388942 >> URL: https://svnweb.freebsd.org/changeset/ports/388942 >> >> Log: >> - Update to 0.29.0 >> - Disable dsr option if netmap is not supported >> >> Modified: >> head/net/pen/Makefile >> head/net/pen/distinfo >> >> Modified: head/net/pen/Makefile >> ============================================================================== >> --- head/net/pen/Makefile Tue Jun 9 14:32:00 2015 (r388941) >> +++ head/net/pen/Makefile Tue Jun 9 14:55:47 2015 (r388942) >> @@ -2,7 +2,7 @@ >> # $FreeBSD$ >> >> PORTNAME= pen >> -PORTVERSION= 0.28.0 >> +PORTVERSION= 0.29.0 >> CATEGORIES= net >> MASTER_SITES= http://siag.nu/pub/pen/ >> >> @@ -37,7 +37,13 @@ KQUEUE_CONFIGURE_ON= --with-kqueue >> KQUEUE_CONFIGURE_OFF= --with-poll >> DEBUG_CONFIGURE_ENABLE= debugging >> >> +.include >> + >> +.if ${OSVERSION} < 901000 >> +CONFIGURE_ARGS+= --without-dsr >> +.endif >> + > > Is there a way "dsr support" can be detected rather than using OSVERSION > numbers? for example, so the presence or absence of a header indicate > whether netmap is available? If so, I suggest using "if !exists > (header)" or something like that. I don't think so. net/pen needs a specific version of the netmap API, the headers exist on 8.4 but in a different version. Actually my patch is wrong anyway, the port works on fbsd >= 9.3, but not on 10.0, and fbsd >= 10.1. > > John > > > >