You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2017 Andrew McConachie
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=danish
  9. PKG_VERSION:=0.1
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
  12. PKG_LICENSE:=GPL-3.0
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/smutt/danish.git
  16. PKG_SOURCE_VERSION:=f726656a4e37c46c037f61334ac48b35b7de25be
  17. PKG_MIRROR_HASH:=cb0b4bb7a210091d807ee8e4a2876865f32a9bf195836eb2e1edf6c5975d1130
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../lang/python/python-package.mk
  21. define Package/danish
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=IP Addresses and Names
  25. TITLE:=A middle box implementation of RFC 6698 for HTTPS.
  26. URL:=https://github.com/smutt/danish
  27. DEPENDS:=+python +python-dns +python-pcapy +python-dpkt +kmod-ipt-filter +iptables-mod-filter +dnsmasq-full
  28. endef
  29. define Package/danish/description
  30. Danish is an experiment in middle-box DANE (RFC 6698) for HTTPS.
  31. https://www.middlebox-dane.org/
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/PyMod,,\
  35. install --prefix=/usr --root="$(PKG_INSTALL_DIR)", \
  36. )
  37. endef
  38. define Package/danish/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(CP) $(PKG_BUILD_DIR)/danish.py $(1)/usr/sbin/danish
  41. $(INSTALL_DIR) $(1)/etc/config
  42. $(CP) $(PKG_BUILD_DIR)/danish.conf $(1)/etc/config/danish
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(CP) $(PKG_BUILD_DIR)/danish.init $(1)/etc/init.d/danish
  45. endef
  46. $(eval $(call BuildPackage,danish))