Skip to content
Snippets Groups Projects
Verified Commit 2f6a9346 authored by Jan Pavlinec's avatar Jan Pavlinec
Browse files

deckard: add new package

parent fe49e95b
Branches
Tags
2 merge requests!824Turris OS 5.3 (HBK),!460deckard: new package
#
# Copyright (C) 2020-2021 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:=deckard
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.nic.cz/knot/deckard
PKG_SOURCE_VERSION:=a179ddb1b5b67a61dc89a97833520485c49f784b
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/deckard
SECTION:=net
CATEGORY:=Network
TITLE:=DNS testing framework
URL:=https://gitlab.nic.cz/knot/deckard
DEPENDS:= \
+python3 \
+python3-dns \
+python3-pytest \
+python3-yaml
endef
define Package/deckard/description
Deckard helps debug DNS issues on different network configurations.
endef
Build/Compile:=:
Build/Install:=:
SCRIPTS_DIR:=/usr/libexec/deckard
define Package/deckard/install
$(INSTALL_DIR) $(1)/$(SCRIPTS_DIR)/tools
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/{configs,contrib,doc,pydnstest,sets,template,tests,tools} $(1)/$(SCRIPTS_DIR)/
$(CP) $(PKG_BUILD_DIR)/{*.sh,*.py,*.txt,*.rst,*.ini} $(1)/$(SCRIPTS_DIR)/
$(INSTALL_BIN) ./files/dns_test.sh $(1)/$(SCRIPTS_DIR)/tools/
endef
$(eval $(call BuildPackage,deckard))
#!/bin/sh
python3 -m pytest forwarder_check.py --forwarder 127.0.0.1 --junitxml forwarder.xml
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment