2007-05-03 02:51:36 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xl2tpd
|
2009-07-18 13:42:27 +00:00
|
|
|
PKG_VERSION:=1.2.4
|
2007-09-07 19:27:03 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-05-03 02:51:36 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.xelerance.com/software/xl2tpd
|
2009-07-18 13:42:27 +00:00
|
|
|
PKG_MD5SUM:=d94fc8a13596f12a561240dfcea9f977
|
2007-05-03 02:51:36 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/xl2tpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
|
|
|
|
URL:=http://www.xelerance.com/software/xl2tpd
|
2007-12-28 13:31:04 +00:00
|
|
|
SUBMENU:=VPN
|
2007-05-03 02:51:36 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-07 19:27:03 +00:00
|
|
|
define Package/xl2tpd/description
|
2008-07-05 13:02:13 +00:00
|
|
|
l2tpd is the open source implementation of the L2TP tunneling protocol
|
|
|
|
(RFC2661). It does implement both LAC and LNS role in a L2TP networking
|
|
|
|
architecture. The main goal of this protocol is to tunnel PPP frame trough
|
2007-09-07 19:27:03 +00:00
|
|
|
an ip network.
|
2007-05-03 02:51:36 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-07 19:27:03 +00:00
|
|
|
# XXX: CFLAGS are already set by Build/Compile/Default
|
|
|
|
MAKE_FLAGS+= \
|
|
|
|
OFLAGS=""
|
|
|
|
|
|
|
|
define Package/xl2tpd/conffiles
|
|
|
|
/etc/xl2tpd/ppp.options
|
|
|
|
/etc/xl2tpd/ppp.secrets
|
|
|
|
/etc/xl2tpd/xl2tpd.conf
|
2007-05-03 02:51:36 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-18 13:42:27 +00:00
|
|
|
define Package/xl2tpd/install
|
2007-05-03 02:51:36 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-09-07 19:27:03 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/xl2tpd $(1)/usr/sbin/
|
2007-05-03 02:51:36 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
|
2007-09-07 19:27:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/xl2tpd
|
|
|
|
$(INSTALL_DATA) ./files/ppp.options $(1)/etc/xl2tpd/
|
|
|
|
$(INSTALL_DATA) ./files/ppp.secrets $(1)/etc/xl2tpd/
|
|
|
|
$(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
|
|
|
|
chmod 0600 $(1)/etc/xl2tpd/ppp.secrets
|
2007-05-03 02:51:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xl2tpd))
|