summaryrefslogtreecommitdiffstats
path: root/package/openresolv
diff options
context:
space:
mode:
Diffstat (limited to 'package/openresolv')
-rw-r--r--package/openresolv/Config.in8
-rw-r--r--package/openresolv/openresolv.hash3
-rw-r--r--package/openresolv/openresolv.mk25
3 files changed, 36 insertions, 0 deletions
diff --git a/package/openresolv/Config.in b/package/openresolv/Config.in
new file mode 100644
index 0000000000..2a393c6bc4
--- /dev/null
+++ b/package/openresolv/Config.in
@@ -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
diff --git a/package/openresolv/openresolv.hash b/package/openresolv/openresolv.hash
new file mode 100644
index 0000000000..e1a1fb5468
--- /dev/null
+++ b/package/openresolv/openresolv.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 96b3f84435a183426c622db7097a930fb0d48a99e82cd87ce83bd343b8c20574 openresolv-fe4e1ec4e2be2adfc1530ade94ebb30aa6f51540.tar.gz
+sha256 d1f9dcd2dac4e095b14caab517cfe791a6e0785346164b7d0cafc13c714f8aa5 LICENSE
diff --git a/package/openresolv/openresolv.mk b/package/openresolv/openresolv.mk
new file mode 100644
index 0000000000..6adf973527
--- /dev/null
+++ b/package/openresolv/openresolv.mk
@@ -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))
OpenPOWER on IntegriCloud