pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/wireguard-tools Add net/wireguard-tools
details: https://anonhg.NetBSD.org/pkgsrc/rev/73a17a7bced2
branches: trunk
changeset: 439350:73a17a7bced2
user: js <js%pkgsrc.org@localhost>
date: Fri Sep 18 14:37:43 2020 +0000
description:
Add net/wireguard-tools
diffstat:
net/wireguard-tools/DESCR | 2 +
net/wireguard-tools/Makefile | 22 ++++++++++++++++++++
net/wireguard-tools/PLIST | 3 ++
net/wireguard-tools/distinfo | 7 ++++++
net/wireguard-tools/patches/patch-Makefile | 32 ++++++++++++++++++++++++++++++
5 files changed, 66 insertions(+), 0 deletions(-)
diffs (86 lines):
diff -r 64fa5232ca1f -r 73a17a7bced2 net/wireguard-tools/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wireguard-tools/DESCR Fri Sep 18 14:37:43 2020 +0000
@@ -0,0 +1,2 @@
+This supplies the main userspace tooling for using and configuring WireGuard
+tunnels.
diff -r 64fa5232ca1f -r 73a17a7bced2 net/wireguard-tools/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wireguard-tools/Makefile Fri Sep 18 14:37:43 2020 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2020/09/18 14:37:43 js Exp $
+
+DISTNAME= wireguard-tools-1.0.20200827
+CATEGORIES= net
+MASTER_SITES= https://git.zx2c4.com/wireguard-tools/snapshot/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= js%pkgsrc.org@localhost
+HOMEPAGE= https://git.zx2c4.com/wireguard-tools/about/
+COMMENT= Userspace tooling for using and configuring WireGuard tunnels
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c
+USE_TOOLS+= gmake
+MAKEFLAGS+= WITH_BASHCOMPLETION=no
+# wg-quick is a bunch of OS-specific shell scripts, currently lacking NetBSD
+MAKEFLAGS+= WITH_WGQUICK=no
+MAKEFLAGS+= WITH_SYSTEMDUNITS=no
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+.include "../../mk/bsd.pkg.mk"
diff -r 64fa5232ca1f -r 73a17a7bced2 net/wireguard-tools/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wireguard-tools/PLIST Fri Sep 18 14:37:43 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/09/18 14:37:43 js Exp $
+bin/wg
+share/man/man8/wg.8
diff -r 64fa5232ca1f -r 73a17a7bced2 net/wireguard-tools/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wireguard-tools/distinfo Fri Sep 18 14:37:43 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/09/18 14:37:43 js Exp $
+
+SHA1 (wireguard-tools-1.0.20200827.tar.xz) = 96356ca99fe4fb2abaccb27fc336d6183df1979e
+RMD160 (wireguard-tools-1.0.20200827.tar.xz) = 4e3bc2439fb7bdca127d8a75051eced78774729f
+SHA512 (wireguard-tools-1.0.20200827.tar.xz) = 843b70050d24f142262b672daee44cdccab508b52f42b19a32c275a17d40fd8fb66136a22ef2a4602217e821703bb36a261e474b465807308f52e6a0ee49e267
+Size (wireguard-tools-1.0.20200827.tar.xz) = 94788 bytes
+SHA1 (patch-Makefile) = 20440b40967b4d7ab14bf19c81c7e631a4f48beb
diff -r 64fa5232ca1f -r 73a17a7bced2 net/wireguard-tools/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wireguard-tools/patches/patch-Makefile Fri Sep 18 14:37:43 2020 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-Makefile,v 1.1 2020/09/18 14:37:43 js Exp $
+
+Don't use -v with install.
+
+--- Makefile.orig 2020-08-27 08:22:09.000000000 +0000
++++ Makefile
+@@ -79,18 +79,18 @@ clean:
+ $(RM) wg *.o *.d
+
+ install: wg
+- @install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 wg "$(DESTDIR)$(BINDIR)/wg"
+- @install -v -d "$(DESTDIR)$(MANDIR)/man8" && install -v -m 0644 man/wg.8 "$(DESTDIR)$(MANDIR)/man8/wg.8"
++ @install -d "$(DESTDIR)$(BINDIR)" && install -m 0755 wg "$(DESTDIR)$(BINDIR)/wg"
++ @install -d "$(DESTDIR)$(MANDIR)/man8" && install -m 0644 man/wg.8 "$(DESTDIR)$(MANDIR)/man8/wg.8"
+ @[ "$(WITH_BASHCOMPLETION)" = "yes" ] || exit 0; \
+- install -v -d "$(DESTDIR)$(BASHCOMPDIR)" && install -v -m 0644 completion/wg.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/wg"
++ install -d "$(DESTDIR)$(BASHCOMPDIR)" && install -m 0644 completion/wg.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/wg"
+ @[ "$(WITH_WGQUICK)" = "yes" ] || exit 0; \
+- install -v -m 0755 wg-quick/$(PLATFORM).bash "$(DESTDIR)$(BINDIR)/wg-quick" && install -v -m 0700 -d "$(DESTDIR)$(SYSCONFDIR)/wireguard"
++ install -m 0755 wg-quick/$(PLATFORM).bash "$(DESTDIR)$(BINDIR)/wg-quick" && install -m 0700 -d "$(DESTDIR)$(SYSCONFDIR)/wireguard"
+ @[ "$(WITH_WGQUICK)" = "yes" ] || exit 0; \
+- install -v -m 0644 man/wg-quick.8 "$(DESTDIR)$(MANDIR)/man8/wg-quick.8"
++ install -m 0644 man/wg-quick.8 "$(DESTDIR)$(MANDIR)/man8/wg-quick.8"
+ @[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_BASHCOMPLETION)" = "yes" ] || exit 0; \
+- install -v -m 0644 completion/wg-quick.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/wg-quick"
++ install -m 0644 completion/wg-quick.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/wg-quick"
+ @[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_SYSTEMDUNITS)" = "yes" ] || exit 0; \
+- install -v -d "$(DESTDIR)$(SYSTEMDUNITDIR)" && install -v -m 0644 systemd/* "$(DESTDIR)$(SYSTEMDUNITDIR)/"
++ install -d "$(DESTDIR)$(SYSTEMDUNITDIR)" && install -m 0644 systemd/* "$(DESTDIR)$(SYSTEMDUNITDIR)/"
+
+ check: clean
+ scan-build --html-title=wireguard-tools -maxloop 100 --view --keep-going $(MAKE) wg
Home |
Main Index |
Thread Index |
Old Index