Package: vpnc
Severity: important
Version: 0.4.0-1
Tags: patch
Hi,
unfortunately, the new version still fails to build on GNU/kFreeBSD.
It needs tweak bellow, after that it is possible
to connect with CISCO peer.
It would also be nice if you can ask upstream
to include change.
Thanks in advance
Petr
--- sysdep.h
+++ sysdep.h
@@ -36,7 +36,12 @@
int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
/***************************************************************************/
-#if defined(__linux__)
+#if defined(__FreeBSD_kernel__)
+#define HAVE_SA_LEN 1
+#endif
+/***************************************************************************/
+
+#if defined(__linux__) || defined(__GLIBC__)
#include <error.h>
#define HAVE_VASPRINTF 1
--- vpnc-script
+++ vpnc-script
@@ -65,6 +65,10 @@
if [ ! -e /dev/tun ]; then
kldload if_tun
fi
+ elif [ "$OS" = "GNU/kFreeBSD" ]; then
+ if [ ! -e /dev/tun ]; then
+ kldload if_tun
+ fi
elif [ "$OS" = "NetBSD" ]; then
:
elif [ "$OS" = "OpenBSD" ]; then
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]