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.

50 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
  3. # Copyright (C) 2010-2011 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=l2tpv3tun
  9. PKG_VERSION:=0.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://www.openl2tp.org/releases
  13. PKG_MD5SUM:=d3b4a9af652cca9f34d3eea4a7ff6041
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/kernel.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/l2tpv3tun
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+libnl-tiny +ip +kmod-l2tp +kmod-l2tp-ip +kmod-l2tp-eth
  21. TITLE:=Control utility for static L2TP v3 (Pseudowire) tunnels
  22. MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  23. URL:=http://www.openl2tp.org
  24. endef
  25. define Package/l2tpv3tun/description
  26. The l2tpv3tun utility is a command line frontend for configuring static
  27. L2TP v3 pseudowire tunnels.
  28. endef
  29. MAKE_FLAGS += \
  30. CC="$(TARGET_CC)" \
  31. CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libnl-tiny/" \
  32. LD="$(TARGET_CC)" \
  33. LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/ -lnl-tiny"
  34. define Package/l2tpv3tun/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l2tpv3tun $(1)/usr/bin/
  37. $(INSTALL_DIR) $(1)/lib/network
  38. $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/network/
  39. endef
  40. $(eval $(call BuildPackage,l2tpv3tun))