Subject: net/vpnc needs patch for if_tun.c revision >=1.80
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: tech-pkg
Date: 03/12/2006 16:10:45
--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

the attached patch is needed to make net/vpnc work on NetBSD systems
with if_tun.c revision 1.80 and later. However, when built with this
patch applied, vpnc does not work on systems with if_tun.c revision
<1.80.

How can this patch be conditionally included in pkgsrc? The relevant
change to if_tun.c was committed about two days before NetBSD's release
number was bumped to 3.99.16. Should we just check for this number?


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

--- Makefile.orig	2005-05-01 22:30:35.000000000 +0200
+++ Makefile	2006-03-12 15:44:47.000000000 +0100
@@ -34,7 +34,7 @@
 SYSDEP=sysdep-bsd.o
 endif
 ifeq ($(shell uname -s), NetBSD)
-CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
+CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -DNEW_TUN
 SYSDEP=sysdep-bsd.o
 endif
 ifeq ($(shell uname -s), OpenBSD)

--UlVJffcvxoiEqYs2--