dnstap: add new package
authorJan Pavlinec <jan.pavlinec@nic.cz>
Thu, 3 Sep 2020 13:04:52 +0000 (15:04 +0200)
committerJan Pavlinec <jan.pavlinec@nic.cz>
Mon, 7 Sep 2020 10:58:59 +0000 (12:58 +0200)
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
net/dnstap/Makefile [new file with mode: 0644]

diff --git a/net/dnstap/Makefile b/net/dnstap/Makefile
new file mode 100644 (file)
index 0000000..ccb8ad7
--- /dev/null
@@ -0,0 +1,46 @@
+#
+# Copyright (C) 2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=dnstap
+PKG_VERSION:=0.2.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=golang-dnstap-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/dnstap/golang-dnstap/archive/v$(PKG_VERSION)/
+PKG_HASH:=2b0b7bf32ceb2cdbc4d3956a7bd437ef332c615443a4dee808d9c1129ffd7f30
+
+PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/golang-dnstap-$(PKG_VERSION)
+PKG_BUILD_DEPENDS:=golang/host 
+PKG_BUILD_PARALLEL:=1
+PKG_USE_MIPS16:=0
+
+GO_PKG:=github.com/dnstap/golang-dnstap
+
+include $(INCLUDE_DIR)/package.mk
+include ../../lang/golang/golang-package.mk
+
+define Package/dnstap
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=dnstap command-line tool 
+  URL:=https://dnstap.info
+  DEPENDS:=$(GO_ARCH_DEPENDS)
+endef
+
+define Package/dnstap/description
+  The dnstap command-line tool can read, write, and decode
+  dnstap data from a running name server or a previously-saved file.
+endef
+
+$(eval $(call GoBinPackage,dnstap))
+$(eval $(call BuildPackage,dnstap))