2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xelerance.com/software/xl2tpd
17 PKG_MD5SUM:=ab5656eb5a3d1973f7f69b039675332e
19 include $(INCLUDE_DIR)/package.mk
24 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
25 URL:=http://www.xelerance.com/software/xl2tpd
29 define Package/xl2tpd/description
30 l2tpd is the open source implementation of the L2TP tunneling protocol
31 (RFC2661). It does implement both LAC and LNS role in a L2TP networking
32 architecture. The main goal of this protocol is to tunnel PPP frame trough
36 # XXX: CFLAGS are already set by Build/Compile/Default
40 define Package/xl2tpd/conffiles
41 /etc/xl2tpd/ppp.options
42 /etc/xl2tpd/ppp.secrets
43 /etc/xl2tpd/xl2tpd.conf
46 define Package/xl2tpd/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/xl2tpd $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
51 $(INSTALL_DIR) $(1)/etc/xl2tpd
52 $(INSTALL_DATA) ./files/ppp.options $(1)/etc/xl2tpd/
53 $(INSTALL_DATA) ./files/ppp.secrets $(1)/etc/xl2tpd/
54 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
55 chmod 0600 $(1)/etc/xl2tpd/ppp.secrets
58 $(eval $(call BuildPackage,xl2tpd))