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
13 PKG_UPSTREAM_VERSION:=0.70-pre20031121
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_UPSTREAM_VERSION).orig.tar.gz
17 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/l2tpd
18 PKG_MD5SUM:=3f2707b6e16a8cb72e7bf64f574202fa
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).orig
22 include $(INCLUDE_DIR)/package.mk
27 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
28 URL:=http://l2tpd.sourceforge.net/
32 define Package/l2tpd/description
33 l2tpd is the open source implementation of the L2TP tunneling
34 protocol (RFC2661). It does implement both LAC and LNS role
35 in a L2TP networking architecture. The main goal of this protocol is
36 to tunnel PPP frame trough an ip network.
39 define Package/l2tpd/conffiles
41 /etc/ppp/options.l2tpd
45 $(call Build/Compile/Default, \
46 CFLAGS="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION" \
50 define Package/l2tpd/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
53 $(INSTALL_DIR) $(1)/etc/l2tpd
54 $(INSTALL_DATA) ./files/l2tpd.conf $(1)/etc/l2tpd/
55 $(INSTALL_DIR) $(1)/etc/ppp
56 $(INSTALL_DATA) ./files/options.l2tpd $(1)/etc/ppp/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/l2tpd.init $(1)/etc/init.d/l2tpd
61 $(eval $(call BuildPackage,l2tpd))