2 # Copyright (C) 2006-2011 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.xelerance.com/xl2tpd/
16 PKG_MD5SUM:=28264284552c442b24cf421755a2bb48
20 include $(INCLUDE_DIR)/package.mk
25 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
26 URL:=http://www.xelerance.com/software/xl2tpd/
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.
36 # XXX: CFLAGS are already set by Build/Compile/Default
40 define Package/xl2tpd/conffiles
41 /etc/xl2tpd/xl2tpd.conf
42 /etc/xl2tpd/xl2tp-secrets
43 /etc/ppp/options.xl2tpd
46 define Package/xl2tpd/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
53 $(INSTALL_DIR) $(1)/etc/xl2tpd
54 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
55 $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
57 $(INSTALL_DIR) $(1)/etc/ppp
58 $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
61 $(eval $(call BuildPackage,xl2tpd))