Debian Codegraph @

openwrt.makefile

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