2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=devel-20151125
13 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
15 PKG_LICENSE_FILES
:=LICENSE
18 PKG_SOURCE_URL
:=https
://github.com
/xelerance
/xl2tpd.git
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE_VERSION
:=e2065bf0fc22ba33001ad503c01bba01648024a8
21 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
22 PKG_MIRROR_HASH
:=8b15c0069cdab7080796f92f86c84b79e430679ce77fb6ea95749fe932bb87c4
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=An L2TP
(Layer
2 Tunneling Protocol
) daemon
32 URL
:=http
://www.xelerance.com
/software
/xl2tpd
/
34 DEPENDS
:=+ppp-mod-pppol2tp
+resolveip
37 define Package
/xl2tpd
/description
38 l2tpd is the open source implementation of the L2TP tunneling protocol
(RFC2661
).
39 It does implement both LAC and LNS role in a L2TP networking architecture. The
40 main goal of this protocol is to tunnel PPP frame trough an IP network.
43 # Use optimization options from OpenWrt build system
44 MAKE_FLAGS
+= OFLAGS
=""
47 # debugging options from Makefile of xl2tpd package
60 -DDEBUG_CONTROL_XMIT \
66 define Package
/xl2tpd
/conffiles
67 /etc
/xl2tpd
/xl2tpd.conf
68 /etc
/xl2tpd
/xl2tp-secrets
69 /etc
/ppp
/options.xl2tpd
72 define Package
/xl2tpd
/install
73 $(INSTALL_DIR
) $(1)/usr
/sbin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/local
/sbin
/xl2tpd
$(1)/usr
/sbin
/
75 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/local
/sbin
/xl2tpd-control
$(1)/usr
/sbin
/
77 $(INSTALL_DIR
) $(1)/etc
/init.d
78 $(INSTALL_BIN
) .
/files
/xl2tpd.init
$(1)/etc
/init.d
/xl2tpd
80 $(INSTALL_DIR
) $(1)/etc
/xl2tpd
81 $(INSTALL_DATA
) .
/files
/xl2tpd.conf
$(1)/etc
/xl2tpd
/
82 $(INSTALL_CONF
) .
/files
/xl2tp-secrets
$(1)/etc
/xl2tpd
/
84 $(INSTALL_DIR
) $(1)/etc
/ppp
85 $(INSTALL_DATA
) .
/files
/options.xl2tpd
$(1)/etc
/ppp
/
87 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
88 $(INSTALL_BIN
) .
/files
/l2tp.sh
$(1)/lib
/netifd
/proto
91 $(eval
$(call BuildPackage
,xl2tpd
))