unfs3: add support for compiling with the external librpc
[openwrt/svn-archive/archive.git] / net / netdiscover / Makefile
1 #
2 # Copyright (C) 2009-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=netdiscover
11 PKG_VERSION:=0.3-beta6
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://nixgeneration.com/~jaime/netdiscover/releases/
16 PKG_MD5SUM:=0919227a91ecaeeb2443cff249417be2
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/netdiscover
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap +libnet1 +libpthread
27 TITLE:=An active/passive address reconnaissance tool
28 URL:=http://nixgeneration.com/~jaime/netdiscover/
29 MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
30 endef
31
32 CONFIGURE_VARS+= \
33 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libnet-1.1.x/include" \
34 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libnet-1.1.x/lib" \
35
36 define Package/netdiscover/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdiscover $(1)/usr/sbin/
39 endef
40
41 $(eval $(call BuildPackage,netdiscover))