diff options
author | schmonz <schmonz@pkgsrc.org> | 2022-10-20 19:12:57 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2022-10-20 19:12:57 +0000 |
commit | cd361d0882fbba46ed7663f4e4e2d20f151e4cfd (patch) | |
tree | d24e01962b9dcde6b6af2af7ef4bd1f8becdc99a | |
parent | 88c6e08f5b1dc26e0861e9edd057b39900025bc9 (diff) | |
download | pkgsrc-cd361d0882fbba46ed7663f4e4e2d20f151e4cfd.tar.gz |
Define environ before it's used, to fix build on at least NetBSD.
Take MAINTAINER.
-rw-r--r-- | net/openconnect/Makefile | 4 | ||||
-rw-r--r-- | net/openconnect/distinfo | 3 | ||||
-rw-r--r-- | net/openconnect/patches/patch-main.c | 15 |
3 files changed, 19 insertions, 3 deletions
diff --git a/net/openconnect/Makefile b/net/openconnect/Makefile index 48b06476a25..9ae971ae336 100644 --- a/net/openconnect/Makefile +++ b/net/openconnect/Makefile @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.23 2022/10/18 01:18:10 schmonz Exp $ +# $NetBSD: Makefile,v 1.24 2022/10/20 19:12:57 schmonz Exp $ DISTNAME= openconnect-9.01 CATEGORIES= net security MASTER_SITES= https://www.infradead.org/openconnect/download/ \ ftp://ftp.infradead.org/pub/openconnect/ -MAINTAINER= pkgsrc-users@NetBSD.org +MAINTAINER= schmonz@NetBSD.org HOMEPAGE= http://www.infradead.org/openconnect/ COMMENT= Open source VPN client LICENSE= gnu-lgpl-v2.1 diff --git a/net/openconnect/distinfo b/net/openconnect/distinfo index d5d6fe931ec..02d760dcd7b 100644 --- a/net/openconnect/distinfo +++ b/net/openconnect/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.14 2022/10/18 01:18:10 schmonz Exp $ +$NetBSD: distinfo,v 1.15 2022/10/20 19:12:57 schmonz Exp $ BLAKE2s (openconnect-9.01.tar.gz) = a56f3914b696aa3a11ea5a1732dec1b77c2aa8d6de72c3fb8f8abb3f9078ccfd SHA512 (openconnect-9.01.tar.gz) = b7428847a90f8ca9d1f1f61653c1f2486f0a07989f3b7435b746c5e901998194f4ee2b4f9569a548a23bba368bb1e9f273674c0759aac9df30208d2a6a303c34 Size (openconnect-9.01.tar.gz) = 2718526 bytes +SHA1 (patch-main.c) = 040fb724052c5bf2e007b322f103d37f06a2bfb2 diff --git a/net/openconnect/patches/patch-main.c b/net/openconnect/patches/patch-main.c new file mode 100644 index 00000000000..6a315f46d48 --- /dev/null +++ b/net/openconnect/patches/patch-main.c @@ -0,0 +1,15 @@ +$NetBSD: patch-main.c,v 1.1 2022/10/20 19:12:57 schmonz Exp $ + +Define environ before it's used. Fixes build on at least NetBSD. + +--- main.c.orig 2022-04-29 15:36:04.000000000 +0000 ++++ main.c +@@ -899,6 +899,8 @@ static BOOL WINAPI console_ctrl_handler( + #endif + + #ifdef HAVE_POSIX_SPAWN ++extern char **environ; ++ + static int spawn_browser(struct openconnect_info *vpninfo, const char *url, void *cbdata) + { + vpn_progress(vpninfo, PRG_TRACE, |