PKG_SOURCE_URL:=https://github.com/wlanslovenija/tunneldigger.git
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=4f72b30578ac3dbc5482f4a54054bf870355bdf5
-PKG_MIRROR_HASH:=e93b986b60475c16b0022ba4f5da981929cc3d6992c632f41264804912825473
+PKG_SOURCE_VERSION:=v0.4.0
+PKG_MIRROR_HASH:=c67a0e626cec571823085a7a28bc72fcaa077669cac52c441b0dde02d676e16c
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
PKG_LICENSE:=AGPL-3.0
PKG_LICENSE_FILES:=COPYING
-PKG_BUILD_DEPENDS:=python-cffi/host
-
include ../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk
SECTION:=net
CATEGORY:=Network
DEPENDS:= \
- +ip-full \
+ +ip \
+kmod-l2tp \
- +kmod-l2tp-ip \
+kmod-l2tp-eth \
+kmod-sched \
- +libnetfilter-conntrack \
+libnfnetlink \
+libnl-tiny \
+libpthread \
+librt \
- +python3-cffi \
+python3-ctypes \
+python3-light \
+python3-logging \
- +python3-six \
- +tc-full
+ +tc-tiny
TITLE:=Broker for L2TPv3 tunnels using tunneldigger
URL:=https://github.com/wlanslovenija/tunneldigger
endef
endef
PYTHON3_PKG_SETUP_DIR:=broker
-PYTHON3_PKG_WHEEL_VERSION:=0.4.0.dev1
+PYTHON3_PKG_WHEEL_VERSION:=0.4.0
define Py3Package/tunneldigger-broker/install
$(INSTALL_DIR) $(1)/lib/functions
$(INSTALL_BIN) ./files/hook-setup $(1)/usr/lib/tunneldigger-broker/hooks/setup
$(INSTALL_BIN) ./files/hook-teardown $(1)/usr/lib/tunneldigger-broker/hooks/teardown
$(INSTALL_BIN) ./files/hook-mtu-changed $(1)/usr/lib/tunneldigger-broker/hooks/mtu-changed
+ $(INSTALL_BIN) ./files/hook-connection-rate-limit $(1)/usr/lib/tunneldigger-broker/hooks/connection-rate-limit
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/tunneldigger-broker.init $(1)/etc/init.d/tunneldigger-broker
$(INSTALL_DIR) $(1)/etc/config