Add an host package for libnl3 in preparation of an host-nfsutils
version update, which unconditionally checks for the existence of
libnl3.

Although it also works with disable-shared, keep the shared libraries
enabled in case of some other package potentially depending on them.

Signed-off-by: Sven Püschel <[email protected]>
---
 rules/host-libnl3.in   |  5 +++++
 rules/host-libnl3.make | 30 ++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 rules/host-libnl3.in
 create mode 100644 rules/host-libnl3.make

diff --git a/rules/host-libnl3.in b/rules/host-libnl3.in
new file mode 100644
index 000000000..184781d26
--- /dev/null
+++ b/rules/host-libnl3.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBNL3
+       tristate
+       default y if ALLYES
diff --git a/rules/host-libnl3.make b/rules/host-libnl3.make
new file mode 100644
index 000000000..b2225247f
--- /dev/null
+++ b/rules/host-libnl3.make
@@ -0,0 +1,30 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Sven Püschel <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBNL3) += host-libnl3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_LIBNL3_CONF_TOOL  := autoconf
+HOST_LIBNL3_CONF_OPT   := \
+       $(HOST_AUTOCONF) \
+       --enable-shared \
+       --disable-static \
+       --disable-cli \
+       --disable-pthreads \
+       --disable-debug
+
+# vim: syntax=make
-- 
2.47.3


Reply via email to