[packages] add netdiscover
[openwrt/svn-archive/archive.git] / net / netdiscover / Makefile
1 #
2 # Copyright (C) 2009 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:=1
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 include $(INCLUDE_DIR)/package.mk
19
20 define Package/netdiscover
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libpcap +libnet1 +libpthread
24 TITLE:=An active/passive address reconnaissance tool
25 URL:=http://nixgeneration.com/~jaime/netdiscover/
26 endef
27
28 CONFIGURE_VARS+= \
29 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libnet-1.1.x/include" \
30 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libnet-1.1.x/lib" \
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
35 all install
36 endef
37
38 define Package/netdiscover/install
39 $(INSTALL_DIR) $(1)/usr/sbin
40 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdiscover $(1)/usr/sbin/
41 endef
42
43 $(eval $(call BuildPackage,netdiscover))