2 # Copyright (C) 2009-2010 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
9 include $(INCLUDE_DIR)/kernel.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/openl2tp
17 PKG_MD5SUM:=87f035ca5ddf7c61e720f422cdc997cf
19 PKG_BUILD_DEPENDS:=libreadline libncurses
20 PKG_PPPD_VERSION:=2.4.4
22 include $(INCLUDE_DIR)/package.mk
24 define Package/openl2tp
27 DEPENDS:=+kmod-pppol2tp +ppp +portmap +libreadline +libncurses @LINUX_2_6
28 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
29 URL:=http://www.openl2tp.org/
33 define Package/openl2tp/description
34 OpenL2TP is an open source L2TP client/server, written by Katalix Systems
35 specifically for Linux. It has been designed for use as an enterprise
36 L2TP VPN server or in commercial, Linux-based, embedded networking
37 products and is able to support hundreds of sessions, each with different
42 KERNEL_SRCDIR="$(LINUX_DIR)" \
43 KERNEL_BLDDIR="$(LINUX_DIR)" \
44 PPPD_VERSION="$(PKG_PPPD_VERSION)" \
45 READLINE_DIR="$(STAGING_DIR)/usr" \
46 PPPD_SRCDIR="$(STAGING_DIR)/usr/include" \
47 PPPD_LIBDIR="$(STAGING_DIR)/usr/lib"
49 define Package/openl2tp/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/l2tpconfig $(1)/usr/bin/
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openl2tpd $(1)/usr/sbin/
54 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_PPPD_VERSION)
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pppd/openl2tp.so $(1)/usr/lib/pppd/$(PKG_PPPD_VERSION)/
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pppd/pppol2tp.so $(1)/usr/lib/pppd/$(PKG_PPPD_VERSION)/
57 $(INSTALL_DIR) $(1)/usr/lib/openl2tp
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/event_sock.so $(1)/usr/lib/openl2tp/
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ipsec.so $(1)/usr/lib/openl2tp/
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ppp_null.so $(1)/usr/lib/openl2tp/
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ppp_unix.so $(1)/usr/lib/openl2tp/
64 $(eval $(call BuildPackage,openl2tp))