Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (80efc4c4ebed1e146c13aaeb97e3c1f832d49e7a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (80efc4c4ebed1e146c13aaeb97e3c1f832d49e7a)
  • Date: Sat, 4 Nov 2017 20:05:27 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 3 +++
net/wireguard/BUILD | 3 +++
net/wireguard/DEPENDS | 10 ++++++++++
net/wireguard/DETAILS | 24 ++++++++++++++++++++++++
net/wireguard/FINAL | 1 +
net/wireguard/HISTORY | 3 +++
net/wireguard/INSTALL | 1 +
net/wireguard/POST_REMOVE | 1 +
net/wireguard/PREPARE | 18 ++++++++++++++++++
net/wireguard/PRE_BUILD | 8 ++++++++
net/wireguard/funcfix.patch | 40 ++++++++++++++++++++++++++++++++++++++++
11 files changed, 112 insertions(+)

New commits:
commit 80efc4c4ebed1e146c13aaeb97e3c1f832d49e7a
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

wireguard: new spell, fast, modern, secure kernel VPN tunnel

diff --git a/ChangeLog b/ChangeLog
index 285f099..2a5613c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2017-11-04 Vlad Glagolev <stealth AT sourcemage.org>
+ * net/wireguard: new spell, fast, modern, secure kernel VPN tunnel
+
2017-11-01 David C. Haley <khoralin AT gmail.com>
* archive/pxz: spell deprecated [superceded by xz-utils (>= 5.2.0)]

diff --git a/net/wireguard/BUILD b/net/wireguard/BUILD
new file mode 100755
index 0000000..f23330d
--- /dev/null
+++ b/net/wireguard/BUILD
@@ -0,0 +1,3 @@
+cd src &&
+
+make
diff --git a/net/wireguard/DEPENDS b/net/wireguard/DEPENDS
new file mode 100755
index 0000000..88d980c
--- /dev/null
+++ b/net/wireguard/DEPENDS
@@ -0,0 +1,10 @@
+depends libmnl &&
+depends pkgconfig &&
+
+suggest_depends iproute2 "" "" "for wg-quick(8) support" &&
+suggest_depends iptables "" "" "for usage in pre/post scripts" &&
+
+suggest_depends bash-completion \
+ "WITH_BASHCOMPLETION=yes" \
+ "WITH_BASHCOMPLETION=no" \
+ "for bash completion scripts"
diff --git a/net/wireguard/DETAILS b/net/wireguard/DETAILS
new file mode 100755
index 0000000..f64fac2
--- /dev/null
+++ b/net/wireguard/DETAILS
@@ -0,0 +1,24 @@
+ SPELL=wireguard
+ SPELLX=WireGuard
+ VERSION=0.0.20171101
+ SOURCE=${SPELLX}-${VERSION}.tar.xz
+ SOURCE_URL[0]=https://git.zx2c4.com/${SPELLX}/snapshot/${SOURCE}
+
SOURCE_HASH=sha512:c3a394256cf3cc2dce75dcb299f54969f74d4076a351b61972f10fb3e69191756c0c32552a5acc7e0cd5919c248f12035e6a33f15e43fdad64c6cf1230511ee3
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELLX}-${VERSION}"
+ WEB_SITE=https://www.wireguard.com/
+ ENTERED=20171104
+ LICENSE[0]=GPL
+ SHORT="fast, modern, secure kernel VPN tunnel"
+cat << EOF
+WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
+state-of-the-art cryptography.
+
+It aims to be faster, simpler, leaner, and more useful than IPSec, while
+avoiding the massive headache. It intends to be considerably more performant
+than OpenVPN.
+
+WireGuard is designed as a general purpose VPN for running on embedded
+interfaces and super computers alike, fit for many different circumstances.
+
+It runs over UDP.
+EOF
diff --git a/net/wireguard/FINAL b/net/wireguard/FINAL
new file mode 100755
index 0000000..ce41770
--- /dev/null
+++ b/net/wireguard/FINAL
@@ -0,0 +1 @@
+depmod -a
diff --git a/net/wireguard/HISTORY b/net/wireguard/HISTORY
new file mode 100644
index 0000000..7bfe85c
--- /dev/null
+++ b/net/wireguard/HISTORY
@@ -0,0 +1,3 @@
+2017-11-04 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD, INSTALL, PREPARE, FINAL,
POST_REMOVE,
+ funcfix.patch: created spell, version 0.0.20171101
diff --git a/net/wireguard/INSTALL b/net/wireguard/INSTALL
new file mode 100755
index 0000000..524e24e
--- /dev/null
+++ b/net/wireguard/INSTALL
@@ -0,0 +1 @@
+make install $OPTS
diff --git a/net/wireguard/POST_REMOVE b/net/wireguard/POST_REMOVE
new file mode 100755
index 0000000..ce41770
--- /dev/null
+++ b/net/wireguard/POST_REMOVE
@@ -0,0 +1 @@
+depmod -a
diff --git a/net/wireguard/PREPARE b/net/wireguard/PREPARE
new file mode 100755
index 0000000..ee87ad8
--- /dev/null
+++ b/net/wireguard/PREPARE
@@ -0,0 +1,18 @@
+. $GRIMOIRE/FUNCTIONS &&
+
+local TUNNEL_KPARAM &&
+local KVERSION="$(get_kernel_version)" &&
+
+if is_version_less $KVERSION 3.10; then
+ message "${PROBLEM_COLOR}${SPELL} requires kernel version
3.10+.${DEFAULT_COLOR}" && return 1
+elif is_version_less $KVERSION 3.17; then
+ TUNNEL_KPARAM="NET_IP_TUNNEL"
+else
+ TUNNEL_KPARAM="NET_UDP_TUNNEL"
+fi &&
+
+for kparam in NET INET CRYPTO_BLKCIPHER $TUNNEL_KPARAM; do
+ if [ -z "$(get_kernel_config CONFIG_${kparam})" ]; then
+ message "${PROBLEM_COLOR}${SPELL} requires CONFIG_${kparam} kernel
option enabled.${DEFAULT_COLOR}" && return 1
+ fi
+done
diff --git a/net/wireguard/PRE_BUILD b/net/wireguard/PRE_BUILD
new file mode 100755
index 0000000..448181b
--- /dev/null
+++ b/net/wireguard/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+patch -p1 < "${SPELL_DIRECTORY}/funcfix.patch" &&
+
+if spell_ok gcc && is_version_less $(installed_version gcc) 4.8; then
+ sedit "s:-std=gnu11:-std=c99:g" src/tools/Makefile
+fi
diff --git a/net/wireguard/funcfix.patch b/net/wireguard/funcfix.patch
new file mode 100644
index 0000000..fe74e48
--- /dev/null
+++ b/net/wireguard/funcfix.patch
@@ -0,0 +1,40 @@
+From cc310a5dd1899417971e993d61d1230b14fe4f87 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason AT zx2c4.com>
+Date: Thu, 2 Nov 2017 16:07:26 +0100
+Subject: global: revert checkpatch.pl changes
+
+These changes were suggested by checkpatch.pl, but actually cause big
+problems depending on the options. Revert.
+---
+ src/noise.c | 2 +-
+ src/peer.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/noise.c b/src/noise.c
+index a0bea29..6ce9b78 100644
+--- a/src/noise.c
++++ b/src/noise.c
+@@ -118,7 +118,7 @@ void noise_keypair_put(struct noise_keypair *keypair)
+
+ struct noise_keypair *noise_keypair_get(struct noise_keypair *keypair)
+ {
+- RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Calling " __func__ "
without holding the RCU BH read lock");
++ RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Taking noise keypair
reference without holding the RCU BH read lock");
+ if (unlikely(!keypair || !kref_get_unless_zero(&keypair->refcount)))
+ return NULL;
+ return keypair;
+diff --git a/src/peer.c b/src/peer.c
+index 1580262..81b71d4 100644
+--- a/src/peer.c
++++ b/src/peer.c
+@@ -58,7 +58,7 @@ struct wireguard_peer *peer_create(struct wireguard_device
*wg, const u8 public_
+
+ struct wireguard_peer *peer_get(struct wireguard_peer *peer)
+ {
+- RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Calling " __func__ "
without holding the RCU read lock");
++ RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Taking peer reference
without holding the RCU read lock");
+ if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount)))
+ return NULL;
+ return peer;
+--
+cgit v1.1-33-gc3c0



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (80efc4c4ebed1e146c13aaeb97e3c1f832d49e7a), Vlad Glagolev, 11/04/2017

Archive powered by MHonArc 2.6.24.

Top of Page