Massive propset of svn:keywords for packages newly addded, next time, we should not...
[packages.git] / net / nprobe / Makefile
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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nprobe
12 PKG_VERSION:=4.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
17 PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3
18 PKG_CAT:=zcat
19
20 BUILD_DEPENDS:=libwrap
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define 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/
34 endef
35
36 define 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         )
44 endef
45
46 define Build/Compile
47         DESTDIR=$(PKG_INSTALL_DIR) \
48                 LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
49                 $(MAKE) -C $(PKG_BUILD_DIR) \
50                 all install
51 endef
52
53 define 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
60 endef
61
62 $(eval $(call BuildPackage,nprobe))
63