Skip to contentSkip to conversation

openresolv: new package

PATCH New Matt Weber 2 participants 2 messages Aug 14, 2018

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH v2 1/1 openresolv: new package

From: Paresh Chaudhary <[email protected]>

This patch added 'openresolv' package support. This tool provides a dns management framework to track currently available nameservers.

A key feature of this tool vs resolvconf is the ability to manage multiple name server input configuration files and generate the /etc/resolv.conf. This is handy when you have multiple dynamic communication paths providing nameserver information.

REF: https://github.com/rsmarples/openresolv

---
Changes
v1 -> v2
[Thomas
- Added DEVELOPERS file entry
- Removed bash dependency as our original testing was invalid and the tool works fine with busybox as along as CONFIG_ASH_GETOPTS is enabled which is the default in buildroot.
- Fixed pkg to build as a generic vs autotools (they tried to mimic autotools and we missed it in the orignal patch)

---
 DEVELOPERS                         |  1 +
 package/Config.in                  |  1 +
 package/openresolv/Config.in       |  8 ++++++++
 package/openresolv/openresolv.hash |  3 +++
 package/openresolv/openresolv.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 package/openresolv/Config.in
 create mode 100644 package/openresolv/openresolv.hash
 create mode 100644 package/openresolv/openresolv.mk
DEVELOPERS +1 -0
index f530158c21..6e44d9825f 100644
@@ -1353,6 +1353,7 @@ F:	package/mtd/
 F:	package/mtools/
 F:	package/nginx-upload/
 F:	package/omniorb/
+F:	package/openresolv/
 F:	package/paxtest/
 F:	package/picocom/
 F:	package/policycoreutils/
package/Config.in +1 -0
index 7b4637900f..eda0f698dc 100644
@@ -1866,6 +1866,7 @@ endif
 	source "package/open-plc-utils/Config.in"
 	source "package/openntpd/Config.in"
 	source "package/openobex/Config.in"
+	source "package/openresolv/Config.in"
 	source "package/openssh/Config.in"
 	source "package/openswan/Config.in"
 	source "package/openvpn/Config.in"
package/openresolv/Config.in new file +8 -0
new file mode 100644
index 0000000000..2a393c6bc4
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_OPENRESOLV
+	bool "openresolv"
+	help
+	  openresolv is a resolvconf implementation which
+	  manages resolv.conf. This tool provides a dns management
+	  framework to track currently available nameservers.
+
+	  https://github.com/rsmarples/openresolv
package/openresolv/openresolv.hash new file +3 -0
new file mode 100644
index 0000000000..e1a1fb5468
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 96b3f84435a183426c622db7097a930fb0d48a99e82cd87ce83bd343b8c20574 openresolv-fe4e1ec4e2be2adfc1530ade94ebb30aa6f51540.tar.gz
+sha256 d1f9dcd2dac4e095b14caab517cfe791a6e0785346164b7d0cafc13c714f8aa5 LICENSE
package/openresolv/openresolv.mk new file +25 -0
new file mode 100644
index 0000000000..6adf973527
@@ -0,0 +1,25 @@
+################################################################################
+#
+# openresolv
+#
+################################################################################
+
+OPENRESOLV_VERSION = fe4e1ec4e2be2adfc1530ade94ebb30aa6f51540
+OPENRESOLV_SITE = $(call github,rsmarples,openresolv,$(OPENRESOLV_VERSION))
+OPENRESOLV_LICENSE = BSD-2-Clause
+OPENRESOLV_LICENSE_FILES = LICENSE
+
+define OPENRESOLV_CONFIGURE_CMDS
+	cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure --prefix=/usr \
+		--sysconfdir=/etc
+endef
+
+define OPENRESOLV_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define OPENRESOLV_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.17.0
#1 lore raw

PATCH v2 1/1 openresolv: new package

Hello,

Quoted 27 lines · Matt Weber

From: Paresh Chaudhary <[email protected]>

This patch added 'openresolv' package support. This tool provides a dns management framework to track currently available nameservers.

A key feature of this tool vs resolvconf is the ability to manage multiple name server input configuration files and generate the /etc/resolv.conf. This is handy when you have multiple dynamic communication paths providing nameserver information.

REF: https://github.com/rsmarples/openresolv

---
Changes
v1 -> v2
[Thomas
- Added DEVELOPERS file entry
- Removed bash dependency as our original testing was invalid and the tool works fine with busybox as along as CONFIG_ASH_GETOPTS is enabled which is the default in buildroot.
- Fixed pkg to build as a generic vs autotools (they tried to mimic autotools and we missed it in the orignal patch)

Quoted 10 lines
---
 DEVELOPERS                         |  1 +
 package/Config.in                  |  1 +
 package/openresolv/Config.in       |  8 ++++++++
 package/openresolv/openresolv.hash |  3 +++
 package/openresolv/openresolv.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 package/openresolv/Config.in
 create mode 100644 package/openresolv/openresolv.hash
 create mode 100644 package/openresolv/openresolv.mk

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com