source: packages/net/l2tpv3tun/Makefile @ 22549

Last change on this file since 22549 was 22549, checked in by jow, 6 years ago

[packages] l2tpv3tun: add /etc/config/network backend, supports briding, multiple tunnels, session and all options defined by proto static

File size: 1.4 KB
Line 
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
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=l2tpv3tun
10PKG_VERSION:=0.1
11PKG_RELEASE:=3
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=ftp://www.openl2tp.org/releases/
15PKG_MD5SUM:=bed89be19360a76186f80fa7e98d57b3
16
17include $(INCLUDE_DIR)/kernel.mk
18include $(INCLUDE_DIR)/package.mk
19
20define Package/l2tpv3tun
21  SECTION:=net
22  CATEGORY:=Network
23  DEPENDS:=+libnl +ip +kmod-l2tp +kmod-l2tp-ip +kmod-l2tp-eth
24  TITLE:=Control utility for static L2TP v3 (Pseudowire) tunnels
25  MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
26  URL:=http://www.openl2tp.org
27endef
28
29define Package/l2tpv3tun/description
30  The l2tpv3tun utility is a command line frontend for configuring static
31  L2TP v3 pseudowire tunnels.
32endef
33
34define 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" 
41endef
42
43
44define Package/l2tpv3tun/install
45                $(INSTALL_DIR) $(1)/usr/sbin
46                $(INSTALL_BIN) $(PKG_BUILD_DIR)/l2tpv3tun $(1)/usr/sbin/
47                $(INSTALL_DIR) $(1)/lib/network
48                $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/network/
49endef
50
51$(eval $(call BuildPackage,l2tpv3tun))
Note: See TracBrowser for help on using the repository browser.