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.

49 lines
1.4 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_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. MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
  20. endef
  21. define Package/tayga/description
  22. TAYGA is an out-of-kernel stateless NAT64 implementation for
  23. Linux. It uses the TUN driver to exchange packets with the
  24. kernel, which is the same driver used by OpenVPN and QEMU/KVM.
  25. endef
  26. ifdef CONFIG_PACKAGE_netifd
  27. define Package/tayga/install
  28. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
  30. $(INSTALL_BIN) ./files/tayga-proto.sh $(1)/lib/netifd/proto/tayga.sh
  31. endef
  32. else
  33. define Package/tayga/install
  34. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/network $(1)/etc/hotplug.d/iface
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tayga $(1)/usr/sbin/
  36. $(INSTALL_DATA) ./files/tayga.sh $(1)/lib/network/tayga.sh
  37. $(INSTALL_DATA) ./files/tayga.hotplug $(1)/etc/hotplug.d/iface/95-tayga
  38. endef
  39. endif
  40. $(eval $(call BuildPackage,tayga))