mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
tayga: Add Netifd support
This patch integrates tayga with netifd. Parametres are nearly same as
with the older scripts. Support for static mapping of IPv4<=>IPv6 addresses
is missing. Example configuration:
config interface 'nat64'
option proto 'tayga'
option prefix 64:ff9b::/96
option dynamic_pool 10.128.0.0/24
option ipv4_addr 10.128.0.1 #address of the TAYGA itself
option ipv6_addr 2001:470:5990::64
option ipaddr 192.168.1.1 #optional address of TUN interface
option ip6addr 2001:db8::1
Signed-off-by: Ondrej Caletka <ondrej@caletka.cz>
This commit is contained in:
+4
-4
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tayga
|
||||
PKG_VERSION:=0.9.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=tayga-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://www.litech.org/tayga/
|
||||
@@ -31,11 +31,11 @@ define Package/tayga/description
|
||||
kernel, which is the same driver used by OpenVPN and QEMU/KVM.
|
||||
endef
|
||||
|
||||
# TODO: port scripts to netifd
|
||||
ifdef CONFIG_PACAKGE_netifd
|
||||
ifdef CONFIG_PACKAGE_netifd
|
||||
define Package/tayga/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
|
||||
$(INSTALL_BIN) ./files/tayga-proto.sh $(1)/lib/netifd/proto/tayga.sh
|
||||
endef
|
||||
else
|
||||
define Package/tayga/install
|
||||
|
||||
Reference in New Issue
Block a user