44f69fdffa55cf8e20ca74a4e65a0ca1c6b50e88
[feed/packages.git] / net / tunneldigger-broker / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=tunneldigger-broker
4 PKG_RELEASE:=1
5
6 PKG_SOURCE_URL:=https://github.com/wlanslovenija/tunneldigger.git
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_VERSION:=v0.4.0
9 PKG_MIRROR_HASH:=c67a0e626cec571823085a7a28bc72fcaa077669cac52c441b0dde02d676e16c
10
11 PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
12 PKG_LICENSE:=AGPL-3.0
13 PKG_LICENSE_FILES:=COPYING
14
15 include ../../lang/python/pypi.mk
16 include $(INCLUDE_DIR)/package.mk
17 include ../../lang/python/python3-package.mk
18
19 define Package/tunneldigger-broker
20 SECTION:=net
21 CATEGORY:=Network
22 DEPENDS:= \
23 +ip \
24 +kmod-l2tp \
25 +kmod-l2tp-eth \
26 +kmod-sched \
27 +libnfnetlink \
28 +libnl-tiny \
29 +libpthread \
30 +librt \
31 +python3-ctypes \
32 +python3-light \
33 +python3-logging \
34 +tc-tiny
35 TITLE:=Broker for L2TPv3 tunnels using tunneldigger
36 URL:=https://github.com/wlanslovenija/tunneldigger
37 endef
38
39 define Package/tunneldigger-broker/description
40 Tunneldigger is a simple VPN tunneling solution based on the Linux kernel
41 support for L2TPv3 tunnels over UDP. This package contains the broker.
42 endef
43
44 PYTHON3_PKG_SETUP_DIR:=broker
45 PYTHON3_PKG_WHEEL_VERSION:=0.4.0
46
47 define Py3Package/tunneldigger-broker/install
48 $(INSTALL_DIR) $(1)/lib/functions
49 $(INSTALL_DATA) ./files/tunneldigger.sh $(1)/lib/functions/tunneldigger.sh
50 $(INSTALL_DIR) $(1)/usr/lib/tunneldigger-broker/hooks
51 $(INSTALL_BIN) ./files/hook-setup $(1)/usr/lib/tunneldigger-broker/hooks/setup
52 $(INSTALL_BIN) ./files/hook-teardown $(1)/usr/lib/tunneldigger-broker/hooks/teardown
53 $(INSTALL_BIN) ./files/hook-mtu-changed $(1)/usr/lib/tunneldigger-broker/hooks/mtu-changed
54 $(INSTALL_BIN) ./files/hook-connection-rate-limit $(1)/usr/lib/tunneldigger-broker/hooks/connection-rate-limit
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/tunneldigger-broker.init $(1)/etc/init.d/tunneldigger-broker
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_DATA) ./files/config.default $(1)/etc/config/tunneldigger-broker
59 endef
60
61 define Package/tunneldigger-broker/conffiles
62 /etc/config/tunneldigger-broker
63 endef
64
65 $(eval $(call Py3Package,tunneldigger-broker))
66 $(eval $(call BuildPackage,tunneldigger-broker))
67 $(eval $(call BuildPackage,tunneldigger-broker-src))