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.

88 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2006-2015 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.16
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/xelerance/xl2tpd.git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. PKG_MIRROR_HASH:=bbb5e21967ec036bb59e18d2a8792b29d7525a1ba13de49f0b80325ab7bce2c6
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/xl2tpd
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
  26. URL:=http://www.xelerance.com/software/xl2tpd/
  27. SUBMENU:=VPN
  28. DEPENDS:=+ppp-mod-pppol2tp +resolveip
  29. endef
  30. define Package/xl2tpd/description
  31. l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
  32. It does implement both LAC and LNS role in a L2TP networking architecture. The
  33. main goal of this protocol is to tunnel PPP frame trough an IP network.
  34. endef
  35. ifneq (0,0)
  36. # debugging options from Makefile of xl2tpd package
  37. EXTRA_CFLAGS += \
  38. -DDEBUG_ZLB \
  39. -DDEBUG_HELLO \
  40. -DDEBUG_CLOSE \
  41. -DDEBUG_FLOW \
  42. -DDEBUG_FILE \
  43. -DDEBUG_AAA \
  44. -DDEBUG_PAYLOAD \
  45. -DDEBUG_CONTROL \
  46. -DDEBUG_PPPD \
  47. -DDEBUG_HIDDEN \
  48. -DDEBUG_ENTROPY \
  49. -DDEBUG_CONTROL_XMIT \
  50. -DDEBUG_MAGIC \
  51. -DDEBUG_FLOW_MORE \
  52. -DDEBUG_AUTH
  53. endif
  54. define Package/xl2tpd/conffiles
  55. /etc/xl2tpd/xl2tpd.conf
  56. /etc/xl2tpd/xl2tp-secrets
  57. /etc/ppp/options.xl2tpd
  58. endef
  59. define Package/xl2tpd/install
  60. $(INSTALL_DIR) $(1)/usr/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd-control $(1)/usr/sbin/
  63. $(INSTALL_DIR) $(1)/etc/init.d
  64. $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
  65. $(INSTALL_DIR) $(1)/etc/xl2tpd
  66. $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
  67. $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
  68. $(INSTALL_DIR) $(1)/etc/ppp
  69. $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
  70. $(INSTALL_DIR) $(1)/lib/netifd/proto
  71. $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/netifd/proto
  72. endef
  73. $(eval $(call BuildPackage,xl2tpd))