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
:=1.3.7pre20150524
13 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
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
:=1cda2a266e2e957b81019d63a8902b28304a0ac4
21 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
25 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=An L2TP
(Layer
2 Tunneling Protocol
) daemon
31 URL
:=http
://www.xelerance.com
/software
/xl2tpd
/
33 DEPENDS
:=+ppp-mod-pppol2tp
+resolveip
36 define Package
/xl2tpd
/description
37 l2tpd is the open source implementation of the L2TP tunneling protocol
(RFC2661
).
38 It does implement both LAC and LNS role in a L2TP networking architecture. The
39 main goal of this protocol is to tunnel PPP frame trough an IP network.
42 # XXX: CFLAGS are already set by Build/Compile/Default
46 define Package
/xl2tpd
/conffiles
47 /etc
/xl2tpd
/xl2tpd.conf
48 /etc
/xl2tpd
/xl2tp-secrets
49 /etc
/ppp
/options.xl2tpd
52 define Package
/xl2tpd
/install
53 $(INSTALL_DIR
) $(1)/usr
/sbin
54 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/local
/sbin
/xl2tpd
$(1)/usr
/sbin
/
55 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/local
/sbin
/xl2tpd-control
$(1)/usr
/sbin
/
57 $(INSTALL_DIR
) $(1)/etc
/init.d
58 $(INSTALL_BIN
) .
/files
/xl2tpd.init
$(1)/etc
/init.d
/xl2tpd
60 $(INSTALL_DIR
) $(1)/etc
/xl2tpd
61 $(INSTALL_DATA
) .
/files
/xl2tpd.conf
$(1)/etc
/xl2tpd
/
62 $(INSTALL_CONF
) .
/files
/xl2tp-secrets
$(1)/etc
/xl2tpd
/
64 $(INSTALL_DIR
) $(1)/etc
/ppp
65 $(INSTALL_DATA
) .
/files
/options.xl2tpd
$(1)/etc
/ppp
/
67 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
68 $(INSTALL_BIN
) .
/files
/l2tp.sh
$(1)/lib
/netifd
/proto
71 $(eval
$(call BuildPackage
,xl2tpd
))