Previously, an IPv6 split tunnel with a /128 request would result in a default tunnel, rather than a specific route. Correctly set the default route if we request a /0. If `which ip` returns something on a non-Linux OS, it's an unrelated tool that won't work for routing configuration; don't try to set IPROUTE on another OS. This should fix the macOS issue discovered at: <https://github.com/dlenski/openconnect/issues/132#issuecomment-470475009>
27 lines
871 B
Makefile
27 lines
871 B
Makefile
# $NetBSD: Makefile,v 1.7 2019/06/24 20:39:55 schmonz Exp $
|
|
|
|
DISTNAME= vpnc-script-20190606
|
|
CATEGORIES= net security
|
|
MASTER_SITES= http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/c84fb8e5a523a647a01a1229a9104db934e19f00:/
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
DISTFILES= vpnc-script
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.infradead.org/openconnect/vpnc-script.html
|
|
# see also http://git.infradead.org/users/dwmw2/vpnc-scripts.git
|
|
COMMENT= Improved config script for OpenConnect and vpnc
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
NO_BUILD= YES
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/vpnc-script
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
CONF_FILES_PERMS= ${EGDIR}/vpnc-script \
|
|
${PKG_SYSCONFDIR}/vpnc-script \
|
|
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 555
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/vpnc-script ${DESTDIR}${EGDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|