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.

71 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=xl2tpd
  9. PKG_VERSION:=1.3.6
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/xelerance/xl2tpd.git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=5619e1771048e74b729804e8602f409af0f3faea
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/xl2tpd
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
  24. URL:=http://www.xelerance.com/software/xl2tpd/
  25. SUBMENU:=VPN
  26. DEPENDS:=+ppp-mod-pppol2tp +ip +resolveip
  27. endef
  28. define Package/xl2tpd/description
  29. l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
  30. It does implement both LAC and LNS role in a L2TP networking architecture. The
  31. main goal of this protocol is to tunnel PPP frame trough an IP network.
  32. endef
  33. # XXX: CFLAGS are already set by Build/Compile/Default
  34. MAKE_FLAGS+= \
  35. OFLAGS=""
  36. define Package/xl2tpd/conffiles
  37. /etc/xl2tpd/xl2tpd.conf
  38. /etc/xl2tpd/xl2tp-secrets
  39. /etc/ppp/options.xl2tpd
  40. endef
  41. define Package/xl2tpd/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd-control $(1)/usr/sbin/
  45. $(INSTALL_DIR) $(1)/etc/init.d
  46. $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
  47. $(INSTALL_DIR) $(1)/etc/xl2tpd
  48. $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
  49. $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
  50. $(INSTALL_DIR) $(1)/etc/ppp
  51. $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
  52. $(INSTALL_DIR) $(1)/lib/netifd/proto
  53. $(INSTALL_BIN) ./files/l2tpv2.sh $(1)/lib/netifd/proto
  54. endef
  55. $(eval $(call BuildPackage,xl2tpd))