openl2tp: Remove -Werror. Fixes compile on 2.6.36
[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.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/openl2tp
17 PKG_MD5SUM:=87f035ca5ddf7c61e720f422cdc997cf
18
19 PKG_BUILD_DEPENDS:=libreadline libncurses
20 PKG_PPPD_VERSION:=2.4.4
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/openl2tp
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+kmod-pppol2tp +ppp +portmap +libreadline +libncurses @!LINUX_2_4
28 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
29 URL:=http://www.openl2tp.org/
30 SUBMENU:=VPN
31 endef
32
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
38 configuration.
39 endef
40
41 MAKE_FLAGS+= \
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"
48
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/
62 endef
63
64 $(eval $(call BuildPackage,openl2tp))