1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
4 include $(TOPDIR
)/rules.mk
7 PKG_VERSION
:=2022-08-11
11 PKG_SOURCE_URL
:=https
://github.com
/P1sec
/QCSuper.git
12 PKG_SOURCE_VERSION
:=5c4e5295bf336bcce63c8ad7112ac04dee4b04fd
13 PKG_MIRROR_HASH
:=70776fa5cc69673d786fae5082e667aadaa1e39e4fabfce77dc369967cc7c9d6
15 PKG_MAINTAINER
:=David Bauer
<mail@david-bauer.net
>
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/qcsuper
23 DEPENDS
:=+python3-light
+python3-pyserial
+python3-crcmod
+python3-ctypes
+python3-pycrate
+python3-logging
+python3-urllib
25 URL
:=https
://github.com
/P1sec
/QCSuper
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.
32 It will allow you to generate PCAP captures of it using an USB dongle
33 or an existing capture in another format.
36 define Build
/Configure
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
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
50 $(CP
) $(PKG_BUILD_DIR
)/modules
/* $(1)/usr
/lib
/qcsuper
/modules
/
52 $(CP
) $(PKG_BUILD_DIR
)/protocol
/* $(1)/usr
/lib
/qcsuper
/protocol
/
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/qcsuper.py
$(1)/usr
/lib
/qcsuper
/
55 $(LN
) /usr
/lib
/qcsuper
/qcsuper.py
$(1)/usr
/bin
/qcsuper
58 $(eval
$(call BuildPackage
,qcsuper
))