[packages] add l2tpv3tun - control utility for pseudowire tunnels, patch by Thomas...
[openwrt/svn-archive/archive.git] / net / l2tpv3tun / Makefile
1 #
2 # Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=l2tpv3tun
10 PKG_VERSION:=0.1
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://www.openl2tp.org/releases/
15 PKG_MD5SUM:=bed89be19360a76186f80fa7e98d57b3
16
17 include $(INCLUDE_DIR)/kernel.mk
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/l2tpv3tun
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libnl @LINUX_2_6_35
24 TITLE:=Control utility for static L2TP v3 ("Pseudowire") tunnels
25 MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
26 URL:=http://www.openl2tp.org
27 endef
28
29 define Package/l2tpv3tun/description
30 The l2tpv3tun utility is a command line frontend for configuring static
31 L2TP v3 pseudowire tunnels.
32 endef
33
34 define Build/Compile
35 $(MAKE) KERNEL_HEADERS="$(LINUX_DIR)/include" -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
39 LD="$(TARGET_CC)" \
40 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -lnl"
41 endef
42
43
44 define Package/l2tpv3tun/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/l2tpv3tun $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,l2tpv3tun))