You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

  1. # $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=tayga
  4. PKG_VERSION:=0.9.2
  5. PKG_RELEASE:=1
  6. PKG_SOURCE:=tayga-$(PKG_VERSION).tar.bz2
  7. PKG_SOURCE_URL:=http://www.litech.org/tayga/
  8. PKG_MD5SUM:=7a7b24165ce008df772f398d86fa280e
  9. PKG_CAT:=bzcat
  10. PKG_BUILD_DIR:=$(BUILD_DIR)/tayga-$(PKG_VERSION)
  11. PKG_FIXUP:=autoreconf
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/tayga
  14. SECTION:=net
  15. CATEGORY:=Network
  16. DEPENDS:=+ip +kmod-ipv6 +kmod-tun
  17. TITLE:=Out-of-kernel stateless NAT64 implementation for Linux
  18. URL:=http://www.litech.org/tayga/
  19. endef
  20. define Package/tayga/description
  21. TAYGA is an out-of-kernel stateless NAT64 implementation for
  22. Linux. It uses the TUN driver to exchange packets with the
  23. kernel, which is the same driver used by OpenVPN and QEMU/KVM.
  24. endef
  25. # TODO: port scripts to netifd
  26. ifdef CONFIG_PACAKGE_netifd
  27. define Package/tayga/install
  28. $(INSTALL_DIR) $(1)/usr/sbin
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
  30. endef
  31. else
  32. define Package/tayga/install
  33. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/network $(1)/etc/hotplug.d/iface
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
  35. $(INSTALL_DATA) ./files/tayga.sh $(1)/lib/network/tayga.sh
  36. $(INSTALL_DATA) ./files/tayga.hotplug $(1)/etc/hotplug.d/iface/95-tayga
  37. endef
  38. endif
  39. $(eval $(call BuildPackage,tayga))