aboutsummaryrefslogtreecommitdiff
path: root/package/s6-dns
diff options
context:
space:
mode:
authorGravatar Eric Le Bihan <eric.le.bihan.dev@free.fr>2016-12-19 22:29:10 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-09 23:07:29 +0100
commit3c3ed96d1ba5a334b9d78a7252404a1f811ad90e (patch)
treea8e4eb55938c5bbcbd21b93e89714fc3eb8f5b71 /package/s6-dns
parentae47ed449c7ff92b41533ca5a91538622c519e60 (diff)
downloadbuildroot-3c3ed96d1ba5a334b9d78a7252404a1f811ad90e.tar.gz
buildroot-3c3ed96d1ba5a334b9d78a7252404a1f811ad90e.tar.bz2
s6-dns: new package
This new package provides s6-dns, a suite of DNS client programs and libraries for Unix systems, as an alternative to the BIND, djbdns or other DNS clients. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/s6-dns')
-rw-r--r--package/s6-dns/Config.in10
-rw-r--r--package/s6-dns/s6-dns.hash2
-rw-r--r--package/s6-dns/s6-dns.mk45
3 files changed, 57 insertions, 0 deletions
diff --git a/package/s6-dns/Config.in b/package/s6-dns/Config.in
new file mode 100644
index 0000000000..75917f9e2e
--- /dev/null
+++ b/package/s6-dns/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_S6_DNS
+ bool "s6-dns"
+ select BR2_PACKAGE_SKALIBS
+ depends on BR2_USE_MMU # skalibs
+ help
+ s6-dns is a suite of DNS client programs and libraries for
+ Unix systems, as an alternative to the BIND, djbdns or other
+ DNS clients.
+
+ http://skarnet.org/software/s6-dns/
diff --git a/package/s6-dns/s6-dns.hash b/package/s6-dns/s6-dns.hash
new file mode 100644
index 0000000000..7cfb9c3d30
--- /dev/null
+++ b/package/s6-dns/s6-dns.hash
@@ -0,0 +1,2 @@
+# Locally generated
+sha256 8455f3b1edad8f01a1340cb1242c141755729bfd5d71059739eced5c006539ad s6-dns-2.1.0.0.tar.gz
diff --git a/package/s6-dns/s6-dns.mk b/package/s6-dns/s6-dns.mk
new file mode 100644
index 0000000000..d77956fa29
--- /dev/null
+++ b/package/s6-dns/s6-dns.mk
@@ -0,0 +1,45 @@
+################################################################################
+#
+# s6-dns
+#
+################################################################################
+
+S6_DNS_VERSION = 2.1.0.0
+S6_DNS_SITE = http://skarnet.org/software/s6-dns
+S6_DNS_LICENSE = ISC
+S6_DNS_LICENSE_FILES = COPYING
+S6_DNS_INSTALL_STAGING = YES
+S6_DNS_DEPENDENCIES = skalibs
+
+S6_DNS_CONF_OPTS = \
+ --prefix=/usr \
+ --with-sysdeps=$(STAGING_DIR)/usr/lib/skalibs/sysdeps \
+ --with-include=$(STAGING_DIR)/usr/include \
+ --with-dynlib=$(STAGING_DIR)/usr/lib \
+ --with-lib=$(STAGING_DIR)/usr/lib/skalibs \
+ $(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
+ $(SHARED_STATIC_LIBS_OPTS)
+
+define S6_DNS_CONFIGURE_CMDS
+ (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_DNS_CONF_OPTS))
+endef
+
+define S6_DNS_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define S6_DNS_REMOVE_STATIC_LIB_DIR
+ rm -rf $(TARGET_DIR)/usr/lib/s6-dns
+endef
+
+S6_DNS_POST_INSTALL_TARGET_HOOKS += S6_DNS_REMOVE_STATIC_LIB_DIR
+
+define S6_DNS_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+define S6_DNS_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
+endef
+
+$(eval $(generic-package))