Changeset 22470


Ignore:
Timestamp:
2010-08-03T13:58:59+02:00 (7 years ago)
Author:
nico
Message:

[packages] ngrep: use PKG_INSTALL, install in /usr/bin instead of /usr/sbin, cleanup, bump release number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ngrep/Makefile

    r17009 r22470  
    11# 
    2 # Copyright (C) 2007-2009 OpenWrt.org 
     2# Copyright (C) 2007-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=ngrep 
    1111PKG_VERSION:=1.45 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1515PKG_SOURCE_URL:=@SF/ngrep 
    1616PKG_MD5SUM:=bc8150331601f3b869549c94866b4f1c 
     17 
     18PKG_INSTALL:=1 
    1719 
    1820include $(INCLUDE_DIR)/package.mk 
     
    3537endef 
    3638 
    37 define Build/Configure 
    38         $(call Build/Configure/Default, \ 
    39                 --with-pcap-includes=$(STAGING_DIR)/usr/include \ 
    40                 --enable-pcre \ 
    41                 --with-pcre=$(STAGING_DIR)/usr \ 
    42                 --disable-dropprivs \ 
    43                 ,\ 
    44                 LDFLAGS="$(TARGET_LDFLAGS) -lpcre" \ 
    45         ) 
    46 endef 
     39CONFIGURE_ARGS+= \ 
     40        --with-pcap-includes=$(STAGING_DIR)/usr/include \ 
     41        --enable-pcre \ 
     42        --with-pcre=$(STAGING_DIR)/usr \ 
     43        --disable-dropprivs \ 
    4744 
    48 define Build/Compile     
    49         $(call Build/Compile/Default,\ 
    50                 DESTDIR="$(PKG_INSTALL_DIR)" \ 
    51                 all \ 
    52         ) 
    53 endef 
     45CONFIGURE_VARS+= \ 
     46        LDFLAGS="$(TARGET_LDFLAGS) -lpcre" \ 
    5447 
    5548define Package/ngrep/install     
    56         $(INSTALL_DIR) $(1)/usr/sbin 
    57         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/ 
     49        $(INSTALL_DIR) $(1)/usr/bin 
     50        $(CP) $(PKG_INSTALL_DIR)/usr/bin/ngrep $(1)/usr/bin/ 
    5851endef 
    5952 
Note: See TracChangeset for help on using the changeset viewer.