]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
unbound: Enable the Python module(s)
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Apr 2025 16:49:55 +0000 (16:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Apr 2025 16:49:55 +0000 (16:49 +0000)
This can be used to script the resolver and use libunbound from Python.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/unbound
lfs/unbound
make.sh

index 57390d6d9a63f23e333751ddd28c7d9edb7b2c57..03c956503cfc4fa79e2b06a05f364ffeb72b122e 100644 (file)
@@ -13,6 +13,10 @@ etc/unbound/unbound.conf
 usr/lib/libunbound.so.8
 usr/lib/libunbound.so.8.1.30
 #usr/lib/pkgconfig/libunbound.pc
+#usr/lib/python3.10/site-packages/_unbound.la
+usr/lib/python3.10/site-packages/_unbound.so
+usr/lib/python3.10/site-packages/unbound.py
+usr/lib/python3.10/site-packages/unboundmodule.py
 usr/sbin/unbound
 usr/sbin/unbound-anchor
 usr/sbin/unbound-checkconf
index 537ccff7e32793b2a47008e8e0ef080656ecfc99..8c79125ecb36b15034ba3870ad7b686389c36d37 100644 (file)
@@ -71,6 +71,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && \
+               PYTHON_VERSION=3 \
                ./configure \
                        --prefix=/usr \
                        --sysconfdir=/etc \
@@ -83,6 +84,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                        --enable-tfo-server \
                        --enable-ipset \
                        --with-libmnl \
+                       --with-pythonmodule \
+                       --with-pyunbound \
                        ac_cv_func_getentropy=no
 
        cd $(DIR_APP) && make $(MAKETUNING)
diff --git a/make.sh b/make.sh
index 3643b469e2626acbdac269e0f07cd9da9219573a..3a673cd2bec035677ae97068ec7a405ace097100 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1534,6 +1534,7 @@ build_system() {
        lfsmake2 libevent2
        lfsmake2 apr
        lfsmake2 aprutil
+       lfsmake2 swig
        lfsmake2 unbound
        lfsmake2 gnutls
        lfsmake2 libuv
@@ -1930,7 +1931,6 @@ build_system() {
        lfsmake2 minicom
        lfsmake2 ddrescue
        lfsmake2 parted
-       lfsmake2 swig
        lfsmake2 python3-pyelftools
        lfsmake2 u-boot
        lfsmake2 wireless-regdb