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.

82 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2016 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:=arp-scan
  9. PKG_VERSION:=1.9.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/royhills/arp-scan/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=e03c36e4933c655bd0e4a841272554a347cd0136faf42c4a6564059e0761c039
  14. PKG_MAINTAINER:=Sergey Urushkin <urusha.v1.0@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/arp-scan/default
  21. SUBMENU:=arp-scan
  22. SECTION:=net
  23. CATEGORY:=Network
  24. URL:=https://github.com/royhills/arp-scan
  25. endef
  26. define Package/arp-scan
  27. $(call Package/arp-scan/default)
  28. TITLE:=ARP scanner
  29. DEPENDS:=+libpcap
  30. endef
  31. define Package/arp-scan/description
  32. ARP scanner
  33. endef
  34. define Package/arp-scan/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arp-scan $(1)/usr/bin/
  37. endef
  38. define Package/arp-scan/postinst
  39. cat <<EOF
  40. Please install the arp-scan-database package in order to let arp-scan
  41. display additional information about vendor/manufacturer for each
  42. discovered device.
  43. EOF
  44. endef
  45. $(eval $(call BuildPackage,arp-scan))
  46. define Package/arp-scan-database
  47. $(call Package/arp-scan/default)
  48. TITLE:=MAC database for ARP scanner
  49. endef
  50. define Package/arp-scan-database/description
  51. MAC database for ARP scanner
  52. endef
  53. define Package/arp-scan-database/install
  54. $(INSTALL_DIR) $(1)/usr/share/arp-scan
  55. $(INSTALL_DATA) $(PKG_BUILD_DIR)/ieee-iab.txt $(1)/usr/share/arp-scan/
  56. $(INSTALL_DATA) $(PKG_BUILD_DIR)/ieee-oui.txt $(1)/usr/share/arp-scan/
  57. $(INSTALL_DATA) $(PKG_BUILD_DIR)/mac-vendor.txt $(1)/usr/share/arp-scan/
  58. endef
  59. define Package/arp-scan-database/postrm
  60. $(RM) -rf $(1)/usr/share/arp-scan
  61. endef
  62. $(eval $(call BuildPackage,arp-scan-database))