Merge pull request #5387 from diizzyy/admin-netdata
[feed/packages.git] / net / danish / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=danish
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
14 PKG_LICENSE:=GPL-3.0
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_URL:=https://github.com/smutt/danish.git
19 PKG_SOURCE_VERSION:=f726656a4e37c46c037f61334ac48b35b7de25be
20 PKG_MIRROR_HASH:=cb0b4bb7a210091d807ee8e4a2876865f32a9bf195836eb2e1edf6c5975d1130
21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../lang/python/python-package.mk
25
26 define Package/danish
27 SECTION:=net
28 CATEGORY:=Network
29 SUBMENU:=IP Addresses and Names
30 TITLE:=A middle box implementation of RFC 6698 for HTTPS.
31 URL:=https://github.com/smutt/danish
32 DEPENDS:=+python +python-dns +python-pcapy +python-dpkt +kmod-ipt-filter +iptables-mod-filter +dnsmasq-full
33 endef
34
35 define Package/danish/description
36 Danish is an experiment in middle-box DANE (RFC 6698) for HTTPS.
37 https://www.middlebox-dane.org/
38 endef
39
40 define Build/Compile
41 $(call Build/Compile/PyMod,,\
42 install --prefix=/usr --root="$(PKG_INSTALL_DIR)", \
43 )
44 endef
45
46 define Package/danish/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(CP) $(PKG_BUILD_DIR)/danish.py $(1)/usr/sbin/danish
49 $(INSTALL_DIR) $(1)/etc/config
50 $(CP) $(PKG_BUILD_DIR)/danish.conf $(1)/etc/config/danish
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(CP) $(PKG_BUILD_DIR)/danish.init $(1)/etc/init.d/danish
53 endef
54
55 $(eval $(call BuildPackage,danish))