From a9c94bac4774975d5ef03b32357a116dcc8f042d Mon Sep 17 00:00:00 2001
From: Leo-Paul Geneau <leo-paul.geneau@nexedi.com>
Date: Thu, 24 Mar 2022 11:00:19 +0100
Subject: [PATCH] component/pim-dm: Add PIM-DM routing daemon egg

---
 component/python-pim-dm/buildout.cfg | 29 ++++++++++++++++++++++++++++
 stack/slapos.cfg                     |  4 ++++
 2 files changed, 33 insertions(+)
 create mode 100644 component/python-pim-dm/buildout.cfg

diff --git a/component/python-pim-dm/buildout.cfg b/component/python-pim-dm/buildout.cfg
new file mode 100644
index 000000000..a7ca9ab32
--- /dev/null
+++ b/component/python-pim-dm/buildout.cfg
@@ -0,0 +1,29 @@
+[buildout]
+extends =
+  ../libpcap/buildout.cfg
+  ../python-PyYAML/buildout.cfg
+
+parts =
+  eggs
+
+[python-pim-dm]
+recipe = zc.recipe.egg:custom
+egg = pim-dm
+include-dirs =
+  ${libpcap:location}/include
+library-dirs =
+  ${libpcap:location}/lib
+rpath =
+  ${libpcap:location}/lib/
+
+[eggs]
+recipe = zc.recipe.egg
+eggs =
+  igmp
+  ipaddress
+  netifaces
+  ${python-pim-dm:egg}
+  prettytable
+  py-mld
+  pyroute2
+  ${python-PyYAML:egg}
diff --git a/stack/slapos.cfg b/stack/slapos.cfg
index 6ccd96447..2777f581e 100644
--- a/stack/slapos.cfg
+++ b/stack/slapos.cfg
@@ -163,6 +163,7 @@ gevent = 20.9.0
 geventmp = 0.0.1
 greenlet = 0.4.17
 idna = 2.9
+igmp = 1.0.4
 importlib-metadata = 1.7.0:whl
 inotify-simple = 1.1.1
 itsdangerous = 0.24
@@ -174,6 +175,7 @@ more-itertools = 5.0.0
 netaddr = 0.7.19
 pathlib2 = 2.3.5
 pbr = 2.0.0
+pim-dm = 1.4.0nxd001
 plone.recipe.command = 1.1
 prettytable = 0.7.2
 psutil = 5.8.0
@@ -181,6 +183,8 @@ pluggy = 0.13.1:whl
 py = 1.9.0:whl
 pyOpenSSL = 19.1.0
 pyparsing = 2.2.0
+py-mld = 1.0.3
+pyroute2 = 0.6.9
 pytz = 2016.10
 regex = 2020.9.27
 requests = 2.24.0
-- 
2.30.9