[arch-commits] Commit in opendht/repos (6 files)
Baptiste Jonglez
zorun at archlinux.org
Fri Jul 14 10:47:18 UTC 2017
Date: Friday, July 14, 2017 @ 10:47:17
Author: zorun
Revision: 245075
archrelease: copy trunk to community-i686, community-x86_64
Added:
opendht/repos/community-i686/0001-network-prevent-sending-packets-larger-than-1280-byt.patch
(from rev 245074, opendht/trunk/0001-network-prevent-sending-packets-larger-than-1280-byt.patch)
opendht/repos/community-i686/PKGBUILD
(from rev 245074, opendht/trunk/PKGBUILD)
opendht/repos/community-x86_64/0001-network-prevent-sending-packets-larger-than-1280-byt.patch
(from rev 245074, opendht/trunk/0001-network-prevent-sending-packets-larger-than-1280-byt.patch)
opendht/repos/community-x86_64/PKGBUILD
(from rev 245074, opendht/trunk/PKGBUILD)
Deleted:
opendht/repos/community-i686/PKGBUILD
opendht/repos/community-x86_64/PKGBUILD
----------------------------------------------------------------------------------+
/PKGBUILD | 98 ++++++++++
community-i686/0001-network-prevent-sending-packets-larger-than-1280-byt.patch | 25 ++
community-i686/PKGBUILD | 42 ----
community-x86_64/0001-network-prevent-sending-packets-larger-than-1280-byt.patch | 25 ++
community-x86_64/PKGBUILD | 42 ----
5 files changed, 148 insertions(+), 84 deletions(-)
Copied: opendht/repos/community-i686/0001-network-prevent-sending-packets-larger-than-1280-byt.patch (from rev 245074, opendht/trunk/0001-network-prevent-sending-packets-larger-than-1280-byt.patch)
===================================================================
--- community-i686/0001-network-prevent-sending-packets-larger-than-1280-byt.patch (rev 0)
+++ community-i686/0001-network-prevent-sending-packets-larger-than-1280-byt.patch 2017-07-14 10:47:17 UTC (rev 245075)
@@ -0,0 +1,25 @@
+From 8a123f9f68e93452dc2c044f8a2ffa07a6038364 Mon Sep 17 00:00:00 2001
+From: Adrien Beraud <adrien.beraud at savoirfairelinux.com>
+Date: Sun, 9 Jul 2017 07:51:05 -0400
+Subject: [PATCH 1/2] network: prevent sending packets larger than 1280 bytes
+
+---
+ include/opendht/network_engine.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/opendht/network_engine.h b/include/opendht/network_engine.h
+index 53f9044..a037cde 100644
+--- a/include/opendht/network_engine.h
++++ b/include/opendht/network_engine.h
+@@ -464,7 +464,7 @@ private:
+ static constexpr unsigned BLACKLISTED_MAX {10};
+
+ static constexpr size_t MTU {1280};
+- static constexpr size_t MAX_PACKET_VALUE_SIZE {8 * 1024};
++ static constexpr size_t MAX_PACKET_VALUE_SIZE {600};
+
+ static const std::string my_v;
+ static std::mt19937 rd_device;
+--
+2.13.2
+
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2017-07-14 10:46:49 UTC (rev 245074)
+++ community-i686/PKGBUILD 2017-07-14 10:47:17 UTC (rev 245075)
@@ -1,42 +0,0 @@
-# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
-pkgname=opendht
-pkgver=1.3.3
-pkgrel=1
-epoch=1
-pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
-arch=('i686' 'x86_64')
-depends=('gnutls' 'nettle' 'readline' 'argon2')
-makedepends=('msgpack-c' 'cmake' 'cython')
-optdepends=('python: to use the Python bindings')
-url="https://github.com/savoirfairelinux/opendht"
-license=('GPL3')
-source=("https://github.com/savoirfairelinux/opendht/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('0ba0d3eedd38e1e6d1d62ae8a4181a5beb4b18b508145e40f9759fc687bc881d')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- msg2 'Building...'
- mkdir -p build
- cd build
- cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DOPENDHT_PYTHON=ON \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- msg2 'Installing...'
- cd build
- make DESTDIR="$pkgdir" install
- cd ..
-
- msg2 'Installing documentation...'
- install -D -m644 README.md "${pkgdir}/usr/share/doc/opendht/README.md"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: opendht/repos/community-i686/PKGBUILD (from rev 245074, opendht/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-07-14 10:47:17 UTC (rev 245075)
@@ -0,0 +1,49 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=opendht
+pkgver=1.3.4
+pkgrel=1
+epoch=1
+pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
+arch=('i686' 'x86_64')
+depends=('gnutls' 'nettle' 'readline' 'argon2')
+makedepends=('msgpack-c' 'cmake' 'cython')
+optdepends=('python: to use the Python bindings')
+url="https://github.com/savoirfairelinux/opendht"
+license=('GPL3')
+source=("https://github.com/savoirfairelinux/opendht/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ "0001-network-prevent-sending-packets-larger-than-1280-byt.patch")
+sha256sums=('348e956b55bc377310de214846b96aa7557239bc8c2dffc70a97295de081b354'
+ 'fb586a26828da442d041e4457fc0da1a2f6c21525e0630a7f7c912625b8b6d8d')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 < "${srcdir}/0001-network-prevent-sending-packets-larger-than-1280-byt.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ msg2 'Building...'
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DOPENDHT_PYTHON=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ msg2 'Installing...'
+ cd build
+ make DESTDIR="$pkgdir" install
+ cd ..
+
+ msg2 'Installing documentation...'
+ install -D -m644 README.md "${pkgdir}/usr/share/doc/opendht/README.md"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: opendht/repos/community-x86_64/0001-network-prevent-sending-packets-larger-than-1280-byt.patch (from rev 245074, opendht/trunk/0001-network-prevent-sending-packets-larger-than-1280-byt.patch)
===================================================================
--- community-x86_64/0001-network-prevent-sending-packets-larger-than-1280-byt.patch (rev 0)
+++ community-x86_64/0001-network-prevent-sending-packets-larger-than-1280-byt.patch 2017-07-14 10:47:17 UTC (rev 245075)
@@ -0,0 +1,25 @@
+From 8a123f9f68e93452dc2c044f8a2ffa07a6038364 Mon Sep 17 00:00:00 2001
+From: Adrien Beraud <adrien.beraud at savoirfairelinux.com>
+Date: Sun, 9 Jul 2017 07:51:05 -0400
+Subject: [PATCH 1/2] network: prevent sending packets larger than 1280 bytes
+
+---
+ include/opendht/network_engine.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/opendht/network_engine.h b/include/opendht/network_engine.h
+index 53f9044..a037cde 100644
+--- a/include/opendht/network_engine.h
++++ b/include/opendht/network_engine.h
+@@ -464,7 +464,7 @@ private:
+ static constexpr unsigned BLACKLISTED_MAX {10};
+
+ static constexpr size_t MTU {1280};
+- static constexpr size_t MAX_PACKET_VALUE_SIZE {8 * 1024};
++ static constexpr size_t MAX_PACKET_VALUE_SIZE {600};
+
+ static const std::string my_v;
+ static std::mt19937 rd_device;
+--
+2.13.2
+
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2017-07-14 10:46:49 UTC (rev 245074)
+++ community-x86_64/PKGBUILD 2017-07-14 10:47:17 UTC (rev 245075)
@@ -1,42 +0,0 @@
-# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
-pkgname=opendht
-pkgver=1.3.3
-pkgrel=1
-epoch=1
-pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
-arch=('i686' 'x86_64')
-depends=('gnutls' 'nettle' 'readline' 'argon2')
-makedepends=('msgpack-c' 'cmake' 'cython')
-optdepends=('python: to use the Python bindings')
-url="https://github.com/savoirfairelinux/opendht"
-license=('GPL3')
-source=("https://github.com/savoirfairelinux/opendht/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('0ba0d3eedd38e1e6d1d62ae8a4181a5beb4b18b508145e40f9759fc687bc881d')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- msg2 'Building...'
- mkdir -p build
- cd build
- cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DOPENDHT_PYTHON=ON \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- msg2 'Installing...'
- cd build
- make DESTDIR="$pkgdir" install
- cd ..
-
- msg2 'Installing documentation...'
- install -D -m644 README.md "${pkgdir}/usr/share/doc/opendht/README.md"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: opendht/repos/community-x86_64/PKGBUILD (from rev 245074, opendht/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-07-14 10:47:17 UTC (rev 245075)
@@ -0,0 +1,49 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=opendht
+pkgver=1.3.4
+pkgrel=1
+epoch=1
+pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
+arch=('i686' 'x86_64')
+depends=('gnutls' 'nettle' 'readline' 'argon2')
+makedepends=('msgpack-c' 'cmake' 'cython')
+optdepends=('python: to use the Python bindings')
+url="https://github.com/savoirfairelinux/opendht"
+license=('GPL3')
+source=("https://github.com/savoirfairelinux/opendht/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ "0001-network-prevent-sending-packets-larger-than-1280-byt.patch")
+sha256sums=('348e956b55bc377310de214846b96aa7557239bc8c2dffc70a97295de081b354'
+ 'fb586a26828da442d041e4457fc0da1a2f6c21525e0630a7f7c912625b8b6d8d')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 < "${srcdir}/0001-network-prevent-sending-packets-larger-than-1280-byt.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ msg2 'Building...'
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DOPENDHT_PYTHON=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ msg2 'Installing...'
+ cd build
+ make DESTDIR="$pkgdir" install
+ cd ..
+
+ msg2 'Installing documentation...'
+ install -D -m644 README.md "${pkgdir}/usr/share/doc/opendht/README.md"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list