[packages] ngrep: use PKG_INSTALL, install in /usr/bin instead of /usr/sbin, cleanup, bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22470 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a060772ba0
commit
6ab7a6355a
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2007-2009 OpenWrt.org
|
# Copyright (C) 2007-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,12 +9,14 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ngrep
|
PKG_NAME:=ngrep
|
||||||
PKG_VERSION:=1.45
|
PKG_VERSION:=1.45
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/ngrep
|
PKG_SOURCE_URL:=@SF/ngrep
|
||||||
PKG_MD5SUM:=bc8150331601f3b869549c94866b4f1c
|
PKG_MD5SUM:=bc8150331601f3b869549c94866b4f1c
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/ngrep
|
define Package/ngrep
|
||||||
@ -34,27 +36,18 @@ define Package/ngrep/description
|
|||||||
like tcpdump and snoop.
|
like tcpdump and snoop.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
CONFIGURE_ARGS+= \
|
||||||
$(call Build/Configure/Default, \
|
--with-pcap-includes=$(STAGING_DIR)/usr/include \
|
||||||
--with-pcap-includes=$(STAGING_DIR)/usr/include \
|
--enable-pcre \
|
||||||
--enable-pcre \
|
--with-pcre=$(STAGING_DIR)/usr \
|
||||||
--with-pcre=$(STAGING_DIR)/usr \
|
--disable-dropprivs \
|
||||||
--disable-dropprivs \
|
|
||||||
,\
|
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) -lpcre" \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
CONFIGURE_VARS+= \
|
||||||
$(call Build/Compile/Default,\
|
LDFLAGS="$(TARGET_LDFLAGS) -lpcre" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
||||||
all \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/ngrep/install
|
define Package/ngrep/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ngrep $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ngrep))
|
$(eval $(call BuildPackage,ngrep))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user