[packages] tor-alpha: update to 0.2.2.22-alpha, add archive mirror
[openwrt/svn-archive/archive.git] / net / openl2tp / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=openl2tp
12 PKG_VERSION:=1.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/openl2tp
17 PKG_MD5SUM:=2fd12112cf50c67dc3c7d848beb34947
18
19 PKG_BUILD_DEPENDS:=libreadline libncurses
20 PKG_BUILD_PARALLEL:=1
21 PPPD_VERSION:=2.4.4
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/openl2tp
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+kmod-pppol2tp +ppp +portmap +libreadline +libncurses @!LINUX_2_4
29 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
30 URL:=http://www.openl2tp.org/
31 SUBMENU:=VPN
32 endef
33
34 define Package/openl2tp/description
35 OpenL2TP is an open source L2TP client/server, written by Katalix Systems
36 specifically for Linux. It has been designed for use as an enterprise
37 L2TP VPN server or in commercial, Linux-based, embedded networking
38 products and is able to support hundreds of sessions, each with different
39 configuration.
40 endef
41
42 MAKE_FLAGS+= \
43 KERNEL_SRCDIR="$(LINUX_DIR)" \
44 KERNEL_BLDDIR="$(LINUX_DIR)" \
45 PPPD_VERSION="$(PKG_PPPD_VERSION)" \
46 READLINE_DIR="$(STAGING_DIR)/usr" \
47 PPPD_SRCDIR="$(STAGING_DIR)/usr/include" \
48 PPPD_LIBDIR="$(STAGING_DIR)/usr/lib"
49
50 define Package/openl2tp/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/l2tpconfig $(1)/usr/bin/
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openl2tpd $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PPPD_VERSION)
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pppd/openl2tp.so $(1)/usr/lib/pppd/$(PPPD_VERSION)/
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pppd/pppol2tp.so $(1)/usr/lib/pppd/$(PPPD_VERSION)/
58 $(INSTALL_DIR) $(1)/usr/lib/openl2tp
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/event_sock.so $(1)/usr/lib/openl2tp/
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ipsec.so $(1)/usr/lib/openl2tp/
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ppp_null.so $(1)/usr/lib/openl2tp/
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plugins/ppp_unix.so $(1)/usr/lib/openl2tp/
63 endef
64
65 $(eval $(call BuildPackage,openl2tp))