source: packages/net/ngrep/Makefile @ 22470

Last change on this file since 22470 was 22470, checked in by nico, 6 years ago

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

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2007-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ngrep
11PKG_VERSION:=1.45
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@SF/ngrep
16PKG_MD5SUM:=bc8150331601f3b869549c94866b4f1c
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/ngrep
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+libpcap +libpcre
26  TITLE:=network grep
27  URL:=http://ngrep.sourceforge.net
28endef
29
30define Package/ngrep/description
31        ngrep a pcap-aware tool that will allow you to specify extended
32        regular expressions to match against data payloads of packets. It
33        currently recognizes TCP, UDP, and ICMP across Ethernet, PPP, SLIP,
34        FDDI, Token Ring and null interfaces, and understands BPF filter
35        logic in the same fashion as more common packet sniffing tools,
36        like tcpdump and snoop.
37endef
38
39CONFIGURE_ARGS+= \
40        --with-pcap-includes=$(STAGING_DIR)/usr/include \
41        --enable-pcre \
42        --with-pcre=$(STAGING_DIR)/usr \
43        --disable-dropprivs \
44
45CONFIGURE_VARS+= \
46        LDFLAGS="$(TARGET_LDFLAGS) -lpcre" \
47
48define Package/ngrep/install   
49        $(INSTALL_DIR) $(1)/usr/bin
50        $(CP) $(PKG_INSTALL_DIR)/usr/bin/ngrep $(1)/usr/bin/
51endef
52
53$(eval $(call BuildPackage,ngrep))
Note: See TracBrowser for help on using the repository browser.