diff options
author | Nick Hainke <vincent@systemli.org> | 2023-06-08 12:36:33 +0200 |
---|---|---|
committer | Nick Hainke <vincent@systemli.org> | 2023-06-12 14:54:58 +0200 |
commit | 8298ce82346817c09cfb6ace2f991bacf79a6071 (patch) | |
tree | a957bebc10e1a015a804aadb0bbfa69147eace02 /net/tunneldigger-broker/Makefile | |
parent | 8b777d2ec6c6c1f51c5bf84bef9cffa62fb4f965 (diff) |
tunneldigger-broker: add broker for tunneldigger
In mesh communities, tunneldigger is widely used to create L2TPv3 tunnels
and mesh via them. Since the broker is typically installed on other
distributions, the openwrt broker package has not received any
maintenance in recent years [0]. I take now care of the further maintaince
of this package. Furthermore, I consulted with the maintainers to ensure
that they were comfortable with the change [1].
This PR is just a refactoring of the already existing opkg package from
wlanslovenija. It fixes config parsing and in general the config, adapts
to the new python syntax and fixes dependency handling.
- [0] https://github.com/wlanslovenija/firmware-packages-opkg/tree/master/net/tunneldigger-broker
- [1] https://github.com/wlanslovenija/firmware-packages-opkg/issues/24
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'net/tunneldigger-broker/Makefile')
-rw-r--r-- | net/tunneldigger-broker/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/net/tunneldigger-broker/Makefile b/net/tunneldigger-broker/Makefile new file mode 100644 index 000000000..42605406e --- /dev/null +++ b/net/tunneldigger-broker/Makefile @@ -0,0 +1,72 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=tunneldigger-broker +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=https://github.com/wlanslovenija/tunneldigger.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_VERSION:=4f72b30578ac3dbc5482f4a54054bf870355bdf5 +PKG_MIRROR_HASH:=e93b986b60475c16b0022ba4f5da981929cc3d6992c632f41264804912825473 + +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 + +define Package/tunneldigger-broker + SECTION:=net + CATEGORY:=Network + DEPENDS:= \ + +ip-full \ + +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 + TITLE:=Broker for L2TPv3 tunnels using tunneldigger + URL:=https://github.com/wlanslovenija/tunneldigger +endef + +define Package/tunneldigger-broker/description +Tunneldigger is a simple VPN tunneling solution based on the Linux kernel +support for L2TPv3 tunnels over UDP. This package contains the broker. +endef + +PYTHON3_PKG_SETUP_DIR:=broker +PYTHON3_PKG_WHEEL_VERSION:=0.4.0.dev1 + +define Py3Package/tunneldigger-broker/install + $(INSTALL_DIR) $(1)/lib/functions + $(INSTALL_DATA) ./files/tunneldigger.sh $(1)/lib/functions/tunneldigger.sh + $(INSTALL_DIR) $(1)/usr/lib/tunneldigger-broker/hooks + $(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_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/tunneldigger-broker.init $(1)/etc/init.d/tunneldigger-broker + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_DATA) ./files/config.default $(1)/etc/config/tunneldigger-broker +endef + +define Package/tunneldigger-broker/conffiles +/etc/config/tunneldigger-broker +endef + +$(eval $(call Py3Package,tunneldigger-broker)) +$(eval $(call BuildPackage,tunneldigger-broker)) +$(eval $(call BuildPackage,tunneldigger-broker-src)) |