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.

51 lines
1.5 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:=2
  6. PKG_SOURCE:=tayga-$(PKG_VERSION).tar.bz2
  7. PKG_SOURCE_URL:=http://www.litech.org/tayga/
  8. PKG_MD5SUM:=7a7b24165ce008df772f398d86fa280e
  9. PKG_LICENSE:=GPL-2.0
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_CAT:=bzcat
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/tayga-$(PKG_VERSION)
  13. PKG_FIXUP:=autoreconf
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/tayga
  16. SECTION:=net
  17. CATEGORY:=Network
  18. DEPENDS:=+ip +kmod-ipv6 +kmod-tun
  19. TITLE:=Out-of-kernel stateless NAT64 implementation for Linux
  20. URL:=http://www.litech.org/tayga/
  21. MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
  22. endef
  23. define Package/tayga/description
  24. TAYGA is an out-of-kernel stateless NAT64 implementation for
  25. Linux. It uses the TUN driver to exchange packets with the
  26. kernel, which is the same driver used by OpenVPN and QEMU/KVM.
  27. endef
  28. ifdef CONFIG_PACKAGE_netifd
  29. define Package/tayga/install
  30. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
  32. $(INSTALL_BIN) ./files/tayga-proto.sh $(1)/lib/netifd/proto/tayga.sh
  33. endef
  34. else
  35. define Package/tayga/install
  36. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/network $(1)/etc/hotplug.d/iface
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
  38. $(INSTALL_DATA) ./files/tayga.sh $(1)/lib/network/tayga.sh
  39. $(INSTALL_DATA) ./files/tayga.hotplug $(1)/etc/hotplug.d/iface/95-tayga
  40. endef
  41. endif
  42. $(eval $(call BuildPackage,tayga))