remove PKG_CAT from packages
[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
19 BUILD_DEPENDS:=libwrap
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/nprobe
26         SECTION:=utils
27         CATEGORY:=Utilities
28         DEPENDS:=+libpcap +libpcre +libpthread +libwrap
29         TITLE:=nProbe
30         URL:=http://invisible-island.net/dialog/
31 endef
32
33 define Package/nprobe/description
34                 nprobe
35 endef
36
37 define Build/Configure
38         # patch creates these, so we make them executable
39         chmod +x $(PKG_BUILD_DIR)/configure
40         chmod +x $(PKG_BUILD_DIR)/config.guess
41         $(call Build/Configure/Default, \
42                 --with-only-ipv4 \
43                 PCAP_ROOT="$(STAGING_DIR)/usr" \
44         )
45 endef
46
47 define Build/Compile
48         DESTDIR=$(PKG_INSTALL_DIR) \
49                 LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
50                 $(MAKE) -C $(PKG_BUILD_DIR) \
51                 all install
52 endef
53
54 define Package/nprobe/install
55         $(INSTALL_DIR) $(1)/usr/bin
56         $(INSTALL_DIR) $(1)/usr/lib
57         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
58                 $(1)/usr/bin/
59         $(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \
60                 $(1)/usr/lib
61 endef
62
63 $(eval $(call BuildPackage,nprobe))
64