From a95ebef9240291e1afb58a6fdf2dd57b72e67c76 Mon Sep 17 00:00:00 2001 From: Thomas Liske <thomas@fiasko-nw.net> Date: Sun, 12 Sep 2021 13:17:31 +0200 Subject: [PATCH] testing/py3-pyroute2.ipset: new aport --- .../001-ipset-content.patch | 11 ++++++++ testing/py3-pyroute2.ipset/APKBUILD | 27 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 testing/py3-pyroute2.ipset/001-ipset-content.patch create mode 100644 testing/py3-pyroute2.ipset/APKBUILD diff --git a/testing/py3-pyroute2.ipset/001-ipset-content.patch b/testing/py3-pyroute2.ipset/001-ipset-content.patch new file mode 100644 index 000000000000..88c9efd0081c --- /dev/null +++ b/testing/py3-pyroute2.ipset/001-ipset-content.patch @@ -0,0 +1,11 @@ +--- a/pr2modules/wiset.py.orig 2021-05-12 23:14:00.000000000 +0200 ++++ b/pr2modules/wiset.py 2021-08-13 19:12:57.590768736 +0200 +@@ -251,6 +251,8 @@ + proto = IP_PROTOCOLS.get(proto, str(proto)).lower() + key += '{proto}:'.format(proto=proto) + key += str(entry.get_attr("IPSET_ATTR_PORT_FROM")) ++ elif parse_type == "mac": ++ key += entry.get_attr("IPSET_ATTR_ETHER") + key += "," + + key = key.strip(",") diff --git a/testing/py3-pyroute2.ipset/APKBUILD b/testing/py3-pyroute2.ipset/APKBUILD new file mode 100644 index 000000000000..a5ccf7b2816b --- /dev/null +++ b/testing/py3-pyroute2.ipset/APKBUILD @@ -0,0 +1,27 @@ +# Maintainer: Thomas Liske <thomas@fiasko-nw.net> +pkgname=py3-pyroute2.ipset +_pkgname=pyroute2.ipset +pkgver=0.6.4 +pkgrel=0 +pkgdesc="Python Netlink library: ipset" +url="https://github.com/svinota/pyroute2" +arch="noarch" +license="GPL-2.0-or-later OR Apache-2.0" +makedepends="py3-setuptools py3-pyroute2.core>=$pkgver" +options="!check" # not supported for pr2modules namespace +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + 001-ipset-content.patch" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums=" +eaefb875b33923ffec933028cb6d498c032f85e80f4e27487f4cb8b4cdeb38747f214c0bc3f122bf9ddcb142079f7768229e0358d01ae3fa428c903250712a1e pyroute2.ipset-0.6.4.tar.gz +4d975d85e543e596cf409dec6db3c0f9f0a48f7c8b1a1fa23e030c6b51ee7a619693ec6288e1c97da16d8a70ab633443a9842a90d6ac6b91853734f3ccadb2b9 001-ipset-content.patch +" -- GitLab