source: packages/net/l2tpv3tun/Makefile @ 25655

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

[packages] l2tpv3tun: fix libnl 2.0 fallout...

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
3# Copyright (C) 2010-2011 OpenWrt.org
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=l2tpv3tun
11PKG_VERSION:=0.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://www.openl2tp.org/releases
16PKG_MD5SUM:=d3b4a9af652cca9f34d3eea4a7ff6041
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/kernel.mk
21include $(INCLUDE_DIR)/package.mk
22
23define Package/l2tpv3tun
24  SECTION:=net
25  CATEGORY:=Network
26  DEPENDS:=+libnl +ip +kmod-l2tp +kmod-l2tp-ip +kmod-l2tp-eth
27  TITLE:=Control utility for static L2TP v3 (Pseudowire) tunnels
28  MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
29  URL:=http://www.openl2tp.org
30endef
31
32define Package/l2tpv3tun/description
33  The l2tpv3tun utility is a command line frontend for configuring static
34  L2TP v3 pseudowire tunnels.
35endef
36
37MAKE_FLAGS += \
38        CC="$(TARGET_CC)" \
39        CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
40        LD="$(TARGET_CC)" \
41        LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -lnl -lnl-genl"
42
43define Package/l2tpv3tun/install
44        $(INSTALL_DIR) $(1)/usr/bin
45        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l2tpv3tun $(1)/usr/bin/
46        $(INSTALL_DIR) $(1)/lib/network
47        $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/network/
48endef
49
50$(eval $(call BuildPackage,l2tpv3tun))
Note: See TracBrowser for help on using the repository browser.