Changeset 24907


Ignore:
Timestamp:
2011-01-05T12:20:47+01:00 (6 years ago)
Author:
swalker
Message:

[packages] l2tpv3tun: update to 0.2, use PKG_INSTALL and MAKE_FLAGS, cleanup whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/l2tpv3tun/Makefile

    r24806 r24907  
    11# 
    22# Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de> 
     3# Copyright (C) 2010-2011 OpenWrt.org 
    34# 
    45# This is free software, licensed under the GNU General Public License v2. 
     
    89 
    910PKG_NAME:=l2tpv3tun 
    10 PKG_VERSION:=0.1 
    11 PKG_RELEASE:=3 
     11PKG_VERSION:=0.2 
     12PKG_RELEASE:=1 
    1213 
    1314PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    14 PKG_SOURCE_URL:=ftp://www.openl2tp.org/releases/ 
    15 PKG_MD5SUM:=bed89be19360a76186f80fa7e98d57b3 
     15PKG_SOURCE_URL:=ftp://www.openl2tp.org/releases 
     16PKG_MD5SUM:=d3b4a9af652cca9f34d3eea4a7ff6041 
     17 
     18PKG_INSTALL:=1 
    1619 
    1720include $(INCLUDE_DIR)/kernel.mk 
     
    3235endef 
    3336 
    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  
     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" 
    4342 
    4443define 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/ 
     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/ 
    4948endef 
    5049 
Note: See TracChangeset for help on using the changeset viewer.