[arch-commits] Commit in wireguard/repos (6 files)

Christian Hesse eworm at archlinux.org
Thu Jul 6 13:06:56 UTC 2017


    Date: Thursday, July 6, 2017 @ 13:06:55
  Author: eworm
Revision: 242547

archrelease: copy trunk to community-x86_64, community-i686

Added:
  wireguard/repos/community-i686/0001-compat-priv_destructor-got-backported.patch
    (from rev 242546, wireguard/trunk/0001-compat-priv_destructor-got-backported.patch)
  wireguard/repos/community-i686/PKGBUILD
    (from rev 242546, wireguard/trunk/PKGBUILD)
  wireguard/repos/community-x86_64/0001-compat-priv_destructor-got-backported.patch
    (from rev 242546, wireguard/trunk/0001-compat-priv_destructor-got-backported.patch)
  wireguard/repos/community-x86_64/PKGBUILD
    (from rev 242546, wireguard/trunk/PKGBUILD)
Deleted:
  wireguard/repos/community-i686/PKGBUILD
  wireguard/repos/community-x86_64/PKGBUILD

-------------------------------------------------------------------+
 /PKGBUILD                                                         |  120 ++++++++++
 community-i686/0001-compat-priv_destructor-got-backported.patch   |   53 ++++
 community-i686/PKGBUILD                                           |   56 ----
 community-x86_64/0001-compat-priv_destructor-got-backported.patch |   53 ++++
 community-x86_64/PKGBUILD                                         |   56 ----
 5 files changed, 226 insertions(+), 112 deletions(-)

Copied: wireguard/repos/community-i686/0001-compat-priv_destructor-got-backported.patch (from rev 242546, wireguard/trunk/0001-compat-priv_destructor-got-backported.patch)
===================================================================
--- community-i686/0001-compat-priv_destructor-got-backported.patch	                        (rev 0)
+++ community-i686/0001-compat-priv_destructor-got-backported.patch	2017-07-06 13:06:55 UTC (rev 242547)
@@ -0,0 +1,53 @@
+From a421219ea718761ed235b501da6e322fc2a05ee0 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason at zx2c4.com>
+Date: Thu, 6 Jul 2017 13:26:18 +0200
+Subject: [PATCH 1/1] compat: priv_destructor got backported
+---
+ src/device.c | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/src/device.c b/src/device.c
+index c299d19..fb5f148 100644
+--- a/src/device.c
++++ b/src/device.c
+@@ -240,7 +240,7 @@ static void destruct(struct net_device *dev)
+ 	put_net(wg->creating_net);
+ 
+ 	pr_debug("%s: Interface deleted\n", dev->name);
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ 	free_netdev(dev);
+ #endif
+ }
+@@ -251,7 +251,7 @@ static void setup(struct net_device *dev)
+ 	enum { WG_NETDEV_FEATURES = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GSO_SOFTWARE | NETIF_F_HIGHDMA };
+ 
+ 	dev->netdev_ops = &netdev_ops;
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ 	dev->destructor = destruct;
+ #else
+ 	dev->priv_destructor = destruct;
+@@ -337,17 +337,19 @@ static int newlink(struct net *src_net, struct net_device *dev, struct nlattr *t
+ 	if (ret < 0)
+ 		goto error_8;
+ 
++	list_add(&wg->device_list, &device_list);
++
+ 	ret = register_netdevice(dev);
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ 	if (ret < 0)
+ 		goto error_9;
+ #endif
+-	list_add(&wg->device_list, &device_list);
+ 	pr_debug("%s: Interface created\n", dev->name);
+ 	return ret;
+ 
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ error_9:
++	list_del(&wg->device_list);
+ 	ratelimiter_uninit();
+ #endif
+ error_8:

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2017-07-06 13:06:50 UTC (rev 242546)
+++ community-i686/PKGBUILD	2017-07-06 13:06:55 UTC (rev 242547)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Christian Hesse <mail at eworm.de>
-# Contributor: Jason A. Donenfeld <Jason at zx2c4.com>
-
-pkgbase=wireguard
-pkgname=(wireguard-dkms wireguard-tools)
-pkgver=0.0.20170629
-pkgrel=1
-pkgdesc='next generation secure network tunnel'
-arch=('x86_64' 'i686')
-url='http://www.wireguard.io/'
-license=('GPL')
-makedepends=('git' 'libmnl')
-source=("${pkgbase}-${pkgver}.tar.xz::https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${pkgver}.tar.xz")
-sha256sums=('51c44624f20eaff96780845214f85491c0c7330598633cd180bb2a6547e5d2b2')
-
-prepare() {
-	cd WireGuard-${pkgver}/
-
-	find contrib/examples/ -name '.gitignore' -delete
-}
-
-build() {
-	cd WireGuard-${pkgver}/
-
-	make -C src/tools/
-}
-
-package_wireguard-dkms() {
-	depends=('dkms')
-	provides=('WIREGUARD-MODULE')
-
-	cd WireGuard-${pkgver}/
-
-	make -C src/ \
-		DESTDIR="${pkgdir}/" \
-		DKMSDIR="/usr/src/wireguard-${pkgver}/" \
-		dkms-install
-}
-
-package_wireguard-tools() {
-	depends=('libmnl' 'WIREGUARD-MODULE')
-
-	cd WireGuard-${pkgver}/
-
-	make -C src/tools/ \
-		DESTDIR="${pkgdir}/" \
-		WITH_BASHCOMPLETION=yes \
-                WITH_WGQUICK=yes \
-                WITH_SYSTEMDUNITS=yes \
-                install
-
-	install -d -m0755 "${pkgdir}"/usr/share/${pkgbase}/
-	cp -r contrib/examples/ "${pkgdir}"/usr/share/${pkgbase}/
-}
-

Copied: wireguard/repos/community-i686/PKGBUILD (from rev 242546, wireguard/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-07-06 13:06:55 UTC (rev 242547)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Jason A. Donenfeld <Jason at zx2c4.com>
+
+pkgbase=wireguard
+pkgname=(wireguard-dkms wireguard-tools)
+pkgver=0.0.20170629
+pkgrel=2
+pkgdesc='next generation secure network tunnel'
+arch=('x86_64' 'i686')
+url='http://www.wireguard.io/'
+license=('GPL')
+makedepends=('git' 'libmnl')
+source=("${pkgbase}-${pkgver}.tar.xz::https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${pkgver}.tar.xz"
+        '0001-compat-priv_destructor-got-backported.patch')
+sha256sums=('51c44624f20eaff96780845214f85491c0c7330598633cd180bb2a6547e5d2b2'
+            'b6d177aa7ad7f0168b2fb70edf4dd0912d3b9ef13f6c7f88eb13e296a57ec549')
+
+prepare() {
+	cd WireGuard-${pkgver}/
+
+	patch -Np1 < "${srcdir}"/0001-compat-priv_destructor-got-backported.patch
+
+	find contrib/examples/ -name '.gitignore' -delete
+}
+
+build() {
+	cd WireGuard-${pkgver}/
+
+	make -C src/tools/
+}
+
+package_wireguard-dkms() {
+	depends=('dkms')
+	provides=('WIREGUARD-MODULE')
+
+	cd WireGuard-${pkgver}/
+
+	make -C src/ \
+		DESTDIR="${pkgdir}/" \
+		DKMSDIR="/usr/src/wireguard-${pkgver}/" \
+		dkms-install
+}
+
+package_wireguard-tools() {
+	depends=('libmnl' 'WIREGUARD-MODULE')
+
+	cd WireGuard-${pkgver}/
+
+	make -C src/tools/ \
+		DESTDIR="${pkgdir}/" \
+		WITH_BASHCOMPLETION=yes \
+                WITH_WGQUICK=yes \
+                WITH_SYSTEMDUNITS=yes \
+                install
+
+	install -d -m0755 "${pkgdir}"/usr/share/${pkgbase}/
+	cp -r contrib/examples/ "${pkgdir}"/usr/share/${pkgbase}/
+}
+

Copied: wireguard/repos/community-x86_64/0001-compat-priv_destructor-got-backported.patch (from rev 242546, wireguard/trunk/0001-compat-priv_destructor-got-backported.patch)
===================================================================
--- community-x86_64/0001-compat-priv_destructor-got-backported.patch	                        (rev 0)
+++ community-x86_64/0001-compat-priv_destructor-got-backported.patch	2017-07-06 13:06:55 UTC (rev 242547)
@@ -0,0 +1,53 @@
+From a421219ea718761ed235b501da6e322fc2a05ee0 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason at zx2c4.com>
+Date: Thu, 6 Jul 2017 13:26:18 +0200
+Subject: [PATCH 1/1] compat: priv_destructor got backported
+---
+ src/device.c | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/src/device.c b/src/device.c
+index c299d19..fb5f148 100644
+--- a/src/device.c
++++ b/src/device.c
+@@ -240,7 +240,7 @@ static void destruct(struct net_device *dev)
+ 	put_net(wg->creating_net);
+ 
+ 	pr_debug("%s: Interface deleted\n", dev->name);
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ 	free_netdev(dev);
+ #endif
+ }
+@@ -251,7 +251,7 @@ static void setup(struct net_device *dev)
+ 	enum { WG_NETDEV_FEATURES = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GSO_SOFTWARE | NETIF_F_HIGHDMA };
+ 
+ 	dev->netdev_ops = &netdev_ops;
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ 	dev->destructor = destruct;
+ #else
+ 	dev->priv_destructor = destruct;
+@@ -337,17 +337,19 @@ static int newlink(struct net *src_net, struct net_device *dev, struct nlattr *t
+ 	if (ret < 0)
+ 		goto error_8;
+ 
++	list_add(&wg->device_list, &device_list);
++
+ 	ret = register_netdevice(dev);
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ 	if (ret < 0)
+ 		goto error_9;
+ #endif
+-	list_add(&wg->device_list, &device_list);
+ 	pr_debug("%s: Interface created\n", dev->name);
+ 	return ret;
+ 
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
+ error_9:
++	list_del(&wg->device_list);
+ 	ratelimiter_uninit();
+ #endif
+ error_8:

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2017-07-06 13:06:50 UTC (rev 242546)
+++ community-x86_64/PKGBUILD	2017-07-06 13:06:55 UTC (rev 242547)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Christian Hesse <mail at eworm.de>
-# Contributor: Jason A. Donenfeld <Jason at zx2c4.com>
-
-pkgbase=wireguard
-pkgname=(wireguard-dkms wireguard-tools)
-pkgver=0.0.20170629
-pkgrel=1
-pkgdesc='next generation secure network tunnel'
-arch=('x86_64' 'i686')
-url='http://www.wireguard.io/'
-license=('GPL')
-makedepends=('git' 'libmnl')
-source=("${pkgbase}-${pkgver}.tar.xz::https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${pkgver}.tar.xz")
-sha256sums=('51c44624f20eaff96780845214f85491c0c7330598633cd180bb2a6547e5d2b2')
-
-prepare() {
-	cd WireGuard-${pkgver}/
-
-	find contrib/examples/ -name '.gitignore' -delete
-}
-
-build() {
-	cd WireGuard-${pkgver}/
-
-	make -C src/tools/
-}
-
-package_wireguard-dkms() {
-	depends=('dkms')
-	provides=('WIREGUARD-MODULE')
-
-	cd WireGuard-${pkgver}/
-
-	make -C src/ \
-		DESTDIR="${pkgdir}/" \
-		DKMSDIR="/usr/src/wireguard-${pkgver}/" \
-		dkms-install
-}
-
-package_wireguard-tools() {
-	depends=('libmnl' 'WIREGUARD-MODULE')
-
-	cd WireGuard-${pkgver}/
-
-	make -C src/tools/ \
-		DESTDIR="${pkgdir}/" \
-		WITH_BASHCOMPLETION=yes \
-                WITH_WGQUICK=yes \
-                WITH_SYSTEMDUNITS=yes \
-                install
-
-	install -d -m0755 "${pkgdir}"/usr/share/${pkgbase}/
-	cp -r contrib/examples/ "${pkgdir}"/usr/share/${pkgbase}/
-}
-

Copied: wireguard/repos/community-x86_64/PKGBUILD (from rev 242546, wireguard/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-07-06 13:06:55 UTC (rev 242547)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Jason A. Donenfeld <Jason at zx2c4.com>
+
+pkgbase=wireguard
+pkgname=(wireguard-dkms wireguard-tools)
+pkgver=0.0.20170629
+pkgrel=2
+pkgdesc='next generation secure network tunnel'
+arch=('x86_64' 'i686')
+url='http://www.wireguard.io/'
+license=('GPL')
+makedepends=('git' 'libmnl')
+source=("${pkgbase}-${pkgver}.tar.xz::https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${pkgver}.tar.xz"
+        '0001-compat-priv_destructor-got-backported.patch')
+sha256sums=('51c44624f20eaff96780845214f85491c0c7330598633cd180bb2a6547e5d2b2'
+            'b6d177aa7ad7f0168b2fb70edf4dd0912d3b9ef13f6c7f88eb13e296a57ec549')
+
+prepare() {
+	cd WireGuard-${pkgver}/
+
+	patch -Np1 < "${srcdir}"/0001-compat-priv_destructor-got-backported.patch
+
+	find contrib/examples/ -name '.gitignore' -delete
+}
+
+build() {
+	cd WireGuard-${pkgver}/
+
+	make -C src/tools/
+}
+
+package_wireguard-dkms() {
+	depends=('dkms')
+	provides=('WIREGUARD-MODULE')
+
+	cd WireGuard-${pkgver}/
+
+	make -C src/ \
+		DESTDIR="${pkgdir}/" \
+		DKMSDIR="/usr/src/wireguard-${pkgver}/" \
+		dkms-install
+}
+
+package_wireguard-tools() {
+	depends=('libmnl' 'WIREGUARD-MODULE')
+
+	cd WireGuard-${pkgver}/
+
+	make -C src/tools/ \
+		DESTDIR="${pkgdir}/" \
+		WITH_BASHCOMPLETION=yes \
+                WITH_WGQUICK=yes \
+                WITH_SYSTEMDUNITS=yes \
+                install
+
+	install -d -m0755 "${pkgdir}"/usr/share/${pkgbase}/
+	cp -r contrib/examples/ "${pkgdir}"/usr/share/${pkgbase}/
+}
+



More information about the arch-commits mailing list