source: packages/net/nprobe/Makefile @ 7527

Last change on this file since 7527 was 7527, checked in by pavlov, 10 years ago

nProbe 4.1 package

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id: Makefile 6537 2007-03-07 15:46:36Z pavlov $
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=nprobe
12PKG_VERSION:=4.1
13PKG_RELEASE:=1
14
15PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz
16PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
17PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3
18PKG_CAT:=zcat
19
20BUILD_DEPENDS:=libwrap
21
22PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
23
24include $(INCLUDE_DIR)/package.mk
25
26define Package/nprobe
27        SECTION:=utils
28        CATEGORY:=Utilities
29        DEPENDS:=+libpcap +libpcre +libpthread +libwrap
30        TITLE:=nProbe
31        DESCRIPTION:=\
32                nprobe
33        URL=http://invisible-island.net/dialog/
34endef
35
36define Build/Configure
37        # patch creates these, so we make them executable
38        chmod +x $(PKG_BUILD_DIR)/configure
39        chmod +x $(PKG_BUILD_DIR)/config.guess
40        $(call Build/Configure/Default, \
41                --with-only-ipv4 \
42                PCAP_ROOT="$(STAGING_DIR)/usr" \
43        )
44endef
45
46define Build/Compile
47        DESTDIR=$(PKG_INSTALL_DIR) \
48                LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
49                $(MAKE) -C $(PKG_BUILD_DIR) \
50                all install
51endef
52
53define Package/nprobe/install
54        $(INSTALL_DIR) $(1)/usr/bin
55        $(INSTALL_DIR) $(1)/usr/lib
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
57                $(1)/usr/bin/
58        $(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \
59                $(1)/usr/lib
60endef
61
62$(eval $(call BuildPackage,nprobe))
63
Note: See TracBrowser for help on using the repository browser.