packages/net/nprobe/Makefile
florian dc3a3c8887 Massive propset of svn:keywords for packages newly addded, next time, we should not forget it ;)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-01 23:09:45 +00:00

64 lines
1.3 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=nprobe
PKG_VERSION:=4.1
PKG_RELEASE:=1
PKG_SOURCE:=nProbe-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
PKG_MD5SUM:=32ed12f60eab771a79bd5f90622fa2a3
PKG_CAT:=zcat
BUILD_DEPENDS:=libwrap
PKG_BUILD_DIR:=$(BUILD_DIR)/nProbe
include $(INCLUDE_DIR)/package.mk
define Package/nprobe
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libpcap +libpcre +libpthread +libwrap
TITLE:=nProbe
DESCRIPTION:=\
nprobe
URL=http://invisible-island.net/dialog/
endef
define Build/Configure
# patch creates these, so we make them executable
chmod +x $(PKG_BUILD_DIR)/configure
chmod +x $(PKG_BUILD_DIR)/config.guess
$(call Build/Configure/Default, \
--with-only-ipv4 \
PCAP_ROOT="$(STAGING_DIR)/usr" \
)
endef
define Build/Compile
DESTDIR=$(PKG_INSTALL_DIR) \
LDFLAGS="$(TARGET_LDFLAGS) -ldl" \
$(MAKE) -C $(PKG_BUILD_DIR) \
all install
endef
define Package/nprobe/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nprobe \
$(1)/usr/bin/
$(CP) -a $(PKG_INSTALL_DIR)/usr/lib/* \
$(1)/usr/lib
endef
$(eval $(call BuildPackage,nprobe))