6f77bbdd1c7f8a6295fb5426242093114537c4ca
[feed/packages.git] / net / qcsuper / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=qcsuper
7 PKG_VERSION:=2022-08-11
8 PKG_RELEASE:=1
9
10 PKG_SOURCE_PROTO:=git
11 PKG_SOURCE_URL:=https://github.com/P1sec/QCSuper.git
12 PKG_SOURCE_VERSION:=5c4e5295bf336bcce63c8ad7112ac04dee4b04fd
13 PKG_MIRROR_HASH:=45ec6f839945f3c3cbd21ca973f3df2e8972113e32995bf5435403eea6872596
14
15 PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
16 PKG_LICENSE:=GPL-3.0
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/qcsuper
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+python3-light +python3-pyserial +python3-crcmod +python3-ctypes +python3-pycrate +python3-logging +python3-urllib
24 TITLE:=QCSuper
25 URL:=https://github.com/P1sec/QCSuper
26 endef
27
28 define Package/qcsuper/description
29 QCSuper is a tool communicating with Qualcomm-based modems,
30 allowing to capture raw 2G/3G/4G radio frames, among other things.
31
32 It will allow you to generate PCAP captures of it using an USB dongle
33 or an existing capture in another format.
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 endef
41
42 define Package/qcsuper/install
43 $(INSTALL_DIR) $(1)/usr/lib/qcsuper/inputs $(1)/usr/lib/qcsuper/modules $(1)/usr/lib/qcsuper/protocol $(1)/usr/bin
44
45 $(CP) $(PKG_BUILD_DIR)/inputs/* $(1)/usr/lib/qcsuper/inputs/
46 $(RM) -rf $(1)/usr/lib/qcsuper/inputs/external
47 $(RM) -rf $(1)/usr/lib/qcsuper/inputs/adb_bridge
48 $(RM) -rf $(1)/usr/lib/qcsuper/inputs/adb_wsl2_bridge
49
50 $(CP) $(PKG_BUILD_DIR)/modules/* $(1)/usr/lib/qcsuper/modules/
51
52 $(CP) $(PKG_BUILD_DIR)/protocol/* $(1)/usr/lib/qcsuper/protocol/
53
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/qcsuper.py $(1)/usr/lib/qcsuper/
55 $(LN) /usr/lib/qcsuper/qcsuper.py $(1)/usr/bin/qcsuper
56 endef
57
58 $(eval $(call BuildPackage,qcsuper))