From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 7 13:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A5C0106564A for ; Fri, 7 Aug 2009 13:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 642D58FC20 for ; Fri, 7 Aug 2009 13:40:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n77De1mI042736 for ; Fri, 7 Aug 2009 13:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n77De18W042735; Fri, 7 Aug 2009 13:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 7 Aug 2009 13:40:01 GMT Resent-Message-Id: <200908071340.n77De18W042735@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A904A106564A for ; Fri, 7 Aug 2009 13:30:07 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 1644A8FC21 for ; Fri, 7 Aug 2009 13:30:06 +0000 (UTC) Received: (qmail invoked by alias); 07 Aug 2009 13:30:05 -0000 Received: from g227138184.adsl.alicedsl.de (EHLO mandree.no-ip.org) [92.227.138.184] by mail.gmx.net (mp071) with SMTP; 07 Aug 2009 15:30:05 +0200 Received: from rho.emma.line.org (vmfreebsd [192.168.0.6]) by merlin.emma.line.org (Postfix) with ESMTP id 6D8E8948ED; Fri, 7 Aug 2009 15:30:03 +0200 (CEST) Received: by rho.emma.line.org (Postfix, from userid 500) id C7270340F4; Fri, 7 Aug 2009 15:30:02 +0200 (CEST) Message-Id: <20090807133002.C7270340F4@rho.emma.line.org> Date: Fri, 7 Aug 2009 15:30:02 +0200 (CEST) From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Stefan Bethke Subject: ports/137516: [MAINTAINER] security/openvpn-devel: update to rc19, fix FreeBSD8 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 13:40:02 -0000 >Number: 137516 >Category: ports >Synopsis: [MAINTAINER] security/openvpn-devel: update to rc19, fix FreeBSD8 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Aug 07 13:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 7.2-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD rho.emma.line.org 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009 >Description: - Update port to 2.1-rc19 - Add Stefan Bethke's patch to make "topology subnet" work again on FreeBSD 8 (submitted to upstream). Added file(s): - files/patch-tun.c Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- openvpn-devel-2.1.r19.patch begins here --- diff -ruN --exclude=CVS /usr/ports/security/openvpn-devel/Makefile /usr/home/emma/ports/security/openvpn-devel/Makefile --- /usr/ports/security/openvpn-devel/Makefile 2009-06-14 00:55:19.000000000 +0200 +++ /usr/home/emma/ports/security/openvpn-devel/Makefile 2009-08-07 15:12:08.000000000 +0200 @@ -6,7 +6,7 @@ # PORTNAME= openvpn -DISTVERSION= 2.1_rc18 +DISTVERSION= 2.1_rc19 CATEGORIES= security net MASTER_SITES= http://openvpn.net/release/ PKGNAMESUFFIX= -devel diff -ruN --exclude=CVS /usr/ports/security/openvpn-devel/distinfo /usr/home/emma/ports/security/openvpn-devel/distinfo --- /usr/ports/security/openvpn-devel/distinfo 2009-06-14 00:55:19.000000000 +0200 +++ /usr/home/emma/ports/security/openvpn-devel/distinfo 2009-08-07 15:19:05.000000000 +0200 @@ -1,3 +1,3 @@ -MD5 (openvpn-2.1_rc18.tar.gz) = af330c94da5200df94c4e84798ea39be -SHA256 (openvpn-2.1_rc18.tar.gz) = 5ddd900ab1293aa8882e8be4cadddb419c3c76b1d28079183323ebb1e9e333a2 -SIZE (openvpn-2.1_rc18.tar.gz) = 838716 +MD5 (openvpn-2.1_rc19.tar.gz) = ba2ee667a8b7606b125b7d32f47ca578 +SHA256 (openvpn-2.1_rc19.tar.gz) = d7f52e2217ed1cf367ca93257b27c8acb29fcae4fcaa31b4a94146a3c7a7de33 +SIZE (openvpn-2.1_rc19.tar.gz) = 839955 diff -ruN --exclude=CVS /usr/ports/security/openvpn-devel/files/patch-tun.c /usr/home/emma/ports/security/openvpn-devel/files/patch-tun.c --- /usr/ports/security/openvpn-devel/files/patch-tun.c 1970-01-01 01:00:00.000000000 +0100 +++ /usr/home/emma/ports/security/openvpn-devel/files/patch-tun.c 2009-08-07 15:21:38.000000000 +0200 @@ -0,0 +1,43 @@ +# This patch by Stefan Bethke fixes FreeBSD 8 compatibility +# in topology subnet mode, # and makes sure that the tun interface is +# correctly configured. Contact: stb at lassitu dot de + +--- /home/stb/tun.c.orig 2009-08-05 14:25:55.204943408 +0200 ++++ tun.c 2009-08-05 17:57:51.886753309 +0200 +@@ -863,11 +863,10 @@ + else { + if (tt->topology == TOP_SUBNET) + argv_printf (&argv, +- "%s %s %s %s netmask %s mtu %d up", ++ "%s %s %s netmask %s mtu %d up", + IFCONFIG_PATH, + actual, + ifconfig_local, +- ifconfig_local, + ifconfig_remote_netmask, + tun_mtu + ); +@@ -1745,14 +1744,19 @@ + { + open_tun_generic (dev, dev_type, dev_node, ipv6, true, true, tt); + +- if (tt->fd >= 0) ++ if (tt->fd >= 0 && tt->type == DEV_TYPE_TUN) + { + int i = 0; + +- /* Disable extended modes */ +- ioctl (tt->fd, TUNSLMODE, &i); ++ i = tt->topology == TOP_SUBNET ? IFF_BROADCAST : IFF_POINTOPOINT; ++ i |= IFF_MULTICAST; ++ if (ioctl (tt->fd, TUNSIFMODE, &i) < 0) { ++ msg (M_WARN | M_ERRNO, "ioctl(TUNSIFMODE): %s", strerror(errno)); ++ } + i = 1; +- ioctl (tt->fd, TUNSIFHEAD, &i); ++ if (ioctl (tt->fd, TUNSIFHEAD, &i) < 0) { ++ msg (M_WARN | M_ERRNO, "ioctl(TUNSIFHEAD): %s", strerror(errno)); ++ } + } + } + --- openvpn-devel-2.1.r19.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: