openwrt.makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=bettercap
  3. PKG_VERSION:=2.28
  4. PKG_RELEASE:=2
  5. GO_PKG:=github.com/bettercap/bettercap
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_SOURCE_URL:=https://codeload.github.com/bettercap/bettercap/tar.gz/v${PKG_VERSION}?
  8. PKG_HASH:=5bde85117679c6ed8b5469a5271cdd5f7e541bd9187b8d0f26dee790c37e36e9
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  10. PKG_LICENSE:=GPL-3.0
  11. PKG_LICENSE_FILES:=LICENSE.md
  12. PKG_MAINTAINER:=Dylan Corrales <deathcamel57@gmail.com>
  13. PKG_BUILD_DEPENDS:=golang/host
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_USE_MIPS16:=0
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../../packages/lang/golang/golang-package.mk
  18. define Package/bettercap/Default
  19. TITLE:=The Swiss Army knife for 802.11, BLE and Ethernet networks reconnaissance and MITM attacks.
  20. URL:=https://www.bettercap.org/
  21. DEPENDS:=$(GO_ARCH_DEPENDS) libpcap libusb-1.0
  22. endef
  23. define Package/bettercap
  24. $(call Package/bettercap/Default)
  25. SECTION:=net
  26. CATEGORY:=Network
  27. endef
  28. define Package/bettercap/description
  29. bettercap is a powerful, easily extensible and portable framework written
  30. in Go which aims to offer to security researchers, red teamers and reverse
  31. engineers an easy to use, all-in-one solution with all the features they
  32. might possibly need for performing reconnaissance and attacking WiFi
  33. networks, Bluetooth Low Energy devices, wireless HID devices and Ethernet networks.
  34. endef
  35. define Package/bettercap/install
  36. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bettercap $(1)/usr/bin/bettercap
  39. endef
  40. $(eval $(call GoBinPackage,bettercap))
  41. $(eval $(call BuildPackage,bettercap))