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