You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=netdiscover
  9. PKG_VERSION:=0.3-pre-beta7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-LINUXONLY.tar.gz
  12. PKG_SOURCE_URL:=@SF/netdiscover
  13. PKG_MD5SUM:=8780e66d00496e933b4064cfe9ae61da
  14. PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/netdiscover
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libpcap +libnet-1.2.x +libpthread
  23. TITLE:=An active/passive address reconnaissance tool
  24. URL:=https://sourceforge.net/projects/netdiscover
  25. endef
  26. CONFIGURE_VARS+= \
  27. CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libnet-1.2.x/lib" \
  28. LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libnet-1.2.x/lib"
  29. define Package/netdiscover/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdiscover $(1)/usr/sbin/
  32. endef
  33. $(eval $(call BuildPackage,netdiscover))