0ddba7f6c8
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25860 3c298f89-4303-0410-b956-a3cf2f4a3e73
69 lines
2.2 KiB
Makefile
69 lines
2.2 KiB
Makefile
#
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=openl2tp
|
|
PKG_VERSION:=1.7
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/openl2tp
|
|
PKG_MD5SUM:=2fd12112cf50c67dc3c7d848beb34947
|
|
|
|
PKG_BUILD_DEPENDS:=libreadline libncurses
|
|
PKG_BUILD_PARALLEL:=1
|
|
PPPD_VERSION:=2.4.4
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/openl2tp
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+kmod-pppol2tp +ppp +portmap +libreadline +libncurses \
|
|
@!LINUX_2_4 $(LIBRPC_DEPENDS)
|
|
TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
|
|
URL:=http://www.openl2tp.org/
|
|
SUBMENU:=VPN
|
|
endef
|
|
|
|
define Package/openl2tp/description
|
|
OpenL2TP is an open source L2TP client/server, written by Katalix Systems
|
|
specifically for Linux. It has been designed for use as an enterprise
|
|
L2TP VPN server or in commercial, Linux-based, embedded networking
|
|
products and is able to support hundreds of sessions, each with different
|
|
configuration.
|
|
endef
|
|
|
|
MAKE_FLAGS+= \
|
|
KERNEL_SRCDIR="$(LINUX_DIR)" \
|
|
KERNEL_BLDDIR="$(LINUX_DIR)" \
|
|
PPPD_VERSION="$(PKG_PPPD_VERSION)" \
|
|
READLINE_DIR="$(STAGING_DIR)/usr" \
|
|
PPPD_SRCDIR="$(STAGING_DIR)/usr/include" \
|
|
PPPD_LIBDIR="$(STAGING_DIR)/usr/lib" \
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|
LIBS.dmalloc="-L$(STAGING_DIR)/usr/lib $(LIBRPC)"
|
|
|
|
define Package/openl2tp/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/l2tpconfig $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openl2tpd $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pppd/$(PPPD_VERSION)
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pppd/openl2tp.so $(1)/usr/lib/pppd/$(PPPD_VERSION)/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pppd/pppol2tp.so $(1)/usr/lib/pppd/$(PPPD_VERSION)/
|
|
$(INSTALL_DIR) $(1)/usr/lib/openl2tp
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/event_sock.so $(1)/usr/lib/openl2tp/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ipsec.so $(1)/usr/lib/openl2tp/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ppp_null.so $(1)/usr/lib/openl2tp/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ppp_unix.so $(1)/usr/lib/openl2tp/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,openl2tp))
|