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.

57 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. PKG_BUILD_DEPENDS:=python python-setuptools
  20. include $(INCLUDE_DIR)/package.mk
  21. $(call include_mk, python-package.mk)
  22. define Package/danish
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=IP Addresses and Names
  26. TITLE:=A middle box implementation of RFC 6698 for HTTPS.
  27. URL:=https://github.com/smutt/danish
  28. DEPENDS:=+python +python-dns +python-pcapy +python-dpkt +kmod-ipt-filter +iptables-mod-filter +dnsmasq-full
  29. endef
  30. define Package/danish/description
  31. Danish is an experiment in middle-box DANE (RFC 6698) for HTTPS.
  32. https://www.middlebox-dane.org/
  33. endef
  34. define Build/Compile
  35. $(call Build/Compile/PyMod,,\
  36. install --prefix=/usr --root="$(PKG_INSTALL_DIR)", \
  37. )
  38. endef
  39. define Package/danish/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(CP) $(PKG_BUILD_DIR)/danish.py $(1)/usr/sbin/danish
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(CP) $(PKG_BUILD_DIR)/danish.conf $(1)/etc/config/danish
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(CP) $(PKG_BUILD_DIR)/danish.init $(1)/etc/init.d/danish
  46. endef
  47. $(eval $(call BuildPackage,danish))