diff --git a/net-wireless/proxmark3/Manifest b/net-wireless/proxmark3/Manifest index 7d5f52d85..8d05f202d 100644 --- a/net-wireless/proxmark3/Manifest +++ b/net-wireless/proxmark3/Manifest @@ -1,3 +1,2 @@ -DIST proxmark3-4.13441.tar.gz 24563979 BLAKE2B 230aba82d54d57e2d14b7602120cac9a8fb563ffdb6fde983be912dcf960a9ca111a3b98d71c64713392a69b48ed2d17d21a874437308def790cc15a4b7b8288 SHA512 64b9a33a302b33cef6dee34eae842a08e2647566bf375af15c7da6a27973d2b53f072b739518206a4f8c436f1e75cc08503ed65ef382bbc785362e38f44ef6c2 DIST proxmark3-4.14434.tar.gz 24816648 BLAKE2B 8ae16e9c75802378e9210d802d9069bac6ce5ed66e725432da9a2e190e0cfb3e3023d4ab0830bc61e578fd9aea44c826638b8e8d4c813710144a21f39e5fdefa SHA512 0e9ce036ac9c8b0e8e945d780ca56f4e09a28ef5565bcb562bde606ea510ea28a662d211225be411f1823dccec0f709fe9af376926a5c3058d0ca78680d3b812 DIST proxmark3-4.14831.tar.gz 24755014 BLAKE2B fe0ece979635c43b7d2551ee5389a6ca708e6f42af4e4818ada582653664032987d0ffb0f16b1953c9d98998d41ed794e6ba6ec43d4f8c28363e16e81ad31fc1 SHA512 a2ce8ae60e223d06148e15ebd47d5e0472e3e3a3fe39ccadc61fdd839525c5d0de496a5a8718f11ace708246f5860c6c51318f67838b649fe64989929fb4e514 diff --git a/net-wireless/proxmark3/files/pull_1756_client_makefile.patch b/net-wireless/proxmark3/files/pull_1756_client_makefile.patch new file mode 100644 index 000000000..4142af3a9 --- /dev/null +++ b/net-wireless/proxmark3/files/pull_1756_client_makefile.patch @@ -0,0 +1,35 @@ +--- a/client/Makefile.orig 2022-01-12 02:17:19.000000000 +0800 ++++ b/client/Makefile 2022-08-18 11:42:04.126934599 +0800 +@@ -342,6 +342,7 @@ + + ####################################################################################################### + CFLAGS ?= $(DEFCFLAGS) ++CFLAGS += $(MYDEFS) $(MYCFLAGS) $(MYINCLUDES) + # We cannot just use CFLAGS+=... because it has impact on sub-makes if CFLAGS is defined in env: + PM3CFLAGS = $(CFLAGS) + PM3CFLAGS += -I./src -I./include -I../include -I../common -I../common_fpga $(PM3INCLUDES) $(INCLUDES) +@@ -378,6 +379,7 @@ + endif + + CXXFLAGS ?= -Wall -O3 ++CXXFLAGS += $(MYDEFS) $(MYCXXFLAGS) $(MYINCLUDES) + PM3CXXFLAGS = $(CXXFLAGS) + PM3CXXFLAGS += -I../include -I./include + +@@ -391,6 +393,7 @@ + endif + + LDFLAGS ?= $(DEFLDFLAGS) ++LDFLAGS += $(MYLDFLAGS) + PM3LDFLAGS = $(LDFLAGS) + ifeq ($(platform),Darwin) + PM3LDFLAGS += -framework Foundation -framework AppKit +@@ -707,7 +710,7 @@ + + proxmark3: $(OBJS) $(STATICLIBS) lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua + $(info [=] LD $@) +- $(Q)$(LD) $(PM3LDFLAGS) $(OBJS) $(STATICLIBS) $(LDLIBS) -o $@ ++ $(Q)$(LD) $(PM3CFLAGS) $(PM3LDFLAGS) $(OBJS) $(STATICLIBS) $(LDLIBS) -o $@ + + src/proxgui.cpp: src/ui/ui_overlays.h src/ui/ui_image.h + diff --git a/net-wireless/proxmark3/proxmark3-4.13441-r1.ebuild b/net-wireless/proxmark3/proxmark3-4.13441-r1.ebuild deleted file mode 100644 index 7df0847e7..000000000 --- a/net-wireless/proxmark3/proxmark3-4.13441-r1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit udev - -if [ "${PV}" = "9999" ]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/RfidResearchGroup/proxmark3.git" -else - #snapshot - #HASH_COMMIT="1ac5211601b50b82b41737dce0c3a72d9e0374ac" - #SRC_URI="https://github.com/RfidResearchGroup/${PN}/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" - #S=${WORKDIR}/${PN}-${HASH_COMMIT} - - #or release - KEYWORDS="amd64" - SRC_URI="https://github.com/RfidResearchGroup/proxmark3/archive/v${PV}.tar.gz -> ${P}.tar.gz" -fi -DESCRIPTION="A general purpose RFID tool for Proxmark3 hardware" -HOMEPAGE="https://github.com/RfidResearchGroup/proxmark3" - -LICENSE="GPL-2+ GPL-3+" -SLOT="0" -STANDALONE="standalone-lf-em4100emul standalone-lf-em4100rswb standalone-lf-em4100rwc standalone-lf-icehid standalone-lf-samyrun standalone-lf-proxbrute standalone-lf-hidbrute standalone-lf-tharexde standalone-lf-nexid standalone-hf-14asniff standalone-hf-legic +standalone-hf-msdsal standalone-hf-young standalone-hf-mattyrun standalone-hf-colin standalone-hf-bog standalone-hf-aveful standalone-hf-craftbyte standalone-hf-tcprst standalone-hf-iceclass standalone-hf-tmudford" -IUSE="+bluez deprecated +firmware +pm3rdv4 +qt ${STANDALONE}" -REQUIRED_USE="?? ( ${STANDALONE/+/} ) - standalone-lf-icehid? ( pm3rdv4 ) - standalone-hf-14asniff? ( pm3rdv4 ) - standalone-lf-nexid? ( pm3rdv4 ) - standalone-hf-colin? ( pm3rdv4 ) - standalone-hf-bog? ( pm3rdv4 ) - standalone-hf-iceclass? ( pm3rdv4 )" - -RDEPEND="virtual/libusb:0 - app-arch/bzip2 - dev-libs/jansson - sys-libs/ncurses:*[tinfo] - sys-libs/readline:= - bluez? ( net-wireless/bluez ) - qt? ( dev-qt/qtcore:5 - dev-qt/qtwidgets:5 - dev-qt/qtgui:5 ) - " -DEPEND="${RDEPEND} - firmware? ( sys-devel/gcc-arm-none-eabi:0 )" - -QA_FLAGS_IGNORED="usr/share/proxmark3/firmware/bootrom.elf - usr/share/proxmark3/firmware/fullimage.elf" - -src_compile(){ - #first we set platform - if use pm3rdv4; then - echo 'PLATFORM=PM3RDV4' > Makefile.platform - echo 'PLATFORM_EXTRAS=BTADDON' >> Makefile.platform - else - echo 'PLATFORM=PM3GENERIC' > Makefile.platform - fi - #then we set a standalone mode - if use standalone-lf-em4100emul; then - echo 'STANDALONE=LF_EM4100EMUL' >> Makefile.platform - elif use standalone-lf-em4100rswb; then - echo 'STANDALONE=LF_EM4100RSWB' >> Makefile.platform - elif use standalone-lf-em4100rwc; then - echo 'STANDALONE=LF_EM4100RWC' >> Makefile.platform - elif use standalone-lf-icehid; then - echo 'STANDALONE=LF_ICEHID' >> Makefile.platform - elif use standalone-lf-samyrun; then - echo 'STANDALONE=LF_SAMYRUN' >> Makefile.platform - elif use standalone-lf-proxbrute; then - echo 'STANDALONE=LF_PROXBRUTE' >> Makefile.platform - elif use standalone-lf-hidbrute; then - echo 'STANDALONE=LF_HIDBRUTE' >> Makefile.platform - elif use standalone-lf-tharexde; then - echo 'STANDALONE=LF_THAREXDE' >> Makefile.platform - elif use standalone-lf-nexid; then - echo 'STANDALONE=LF_NEXID' >> Makefile.platform - elif use standalone-hf-14asniff; then - echo 'STANDALONE=HF_14ASNIFF' >> Makefile.platform - elif use standalone-hf-legic; then - echo 'STANDALONE=HF_LEGIC' >> Makefile.platform - elif use standalone-hf-msdsal; then - echo 'STANDALONE=HF_MSDSAL' >> Makefile.platform - elif use standalone-hf-young; then - echo 'STANDALONE=HF_YOUNG' >> Makefile.platform - elif use standalone-hf-mattyrun; then - echo 'STANDALONE=HF_MATTYRUN' >> Makefile.platform - elif use standalone-hf-colin; then - echo 'STANDALONE=HF_COLIN' >> Makefile.platform - elif use standalone-hf-bog; then - echo 'STANDALONE=HF_BOG' >> Makefile.platform - elif use standalone-hf-aveful; then - echo 'STANDALONE=HF_AVEFUL' >> Makefile.platform - elif use standalone-hf-craftbyte; then - echo 'STANDALONE=HF_CRAFTBYTE' >> Makefile.platform - elif use standalone-hf-tcprst; then - echo 'STANDALONE=HF_TCPRST' >> Makefile.platform - elif use standalone-hf-iceclass; then - echo 'STANDALONE=HF_ICECLASS' >> Makefile.platform - elif use standalone-hf-tmudford; then - echo 'STANDALONE=HF_TMUDFORD' >> Makefile.platform - else - echo 'STANDALONE=' >> Makefile.platform - fi - - export PREFIX=/usr - export V=1 - use qt || export SKIPQT=1 - use bluez || export SKIPBT=1 - if use firmware; then - emake all - elif use deprecated; then - emake client mfkey nonce2key - else - emake client - fi -} - -src_install(){ - export PREFIX=/usr - export DESTDIR="${ED}" - export UDEV_PREFIX="$(get_udevdir)/rules.d" - export INSTALLDOCSRELPATH="/share/doc/${PF}" - if use firmware; then - emake INSTALLDOCSRELPATH="/share/doc/${PF}" install - elif use deprecated; then - emake INSTALLDOCSRELPATH="/share/doc/${PF}" client/install mfkey/install nonce2key/install common/install - else - emake INSTALLDOCSRELPATH="/share/doc/${PF}" client/install common/install - fi -} - -src_test() { - if use firmware; then - ./pm3test.sh - else - ./pm3test.sh client - fi -} - -pkg_postinst() { - if use firmware; then - if use pm3rdv4; then - ewarn "Please note, all firmware and recovery files are intended for the Proxmark3 RDV4" - ewarn "including support for the optional blueshark accessory." - ewarn "If this is not what you intended please unset the pm3rdv4 use flag for generic firmware" - else - ewarn "Please note, all firmware and recovery files are built for a generic target." - ewarn "If you have a Proxmark3 RDV4 you should set the pm3rdv4 use flag for an improved firmware" - fi - fi -} diff --git a/net-wireless/proxmark3/proxmark3-4.14831.ebuild b/net-wireless/proxmark3/proxmark3-4.14831-r1.ebuild similarity index 93% rename from net-wireless/proxmark3/proxmark3-4.14831.ebuild rename to net-wireless/proxmark3/proxmark3-4.14831-r1.ebuild index 81624896c..a71cdf734 100644 --- a/net-wireless/proxmark3/proxmark3-4.14831.ebuild +++ b/net-wireless/proxmark3/proxmark3-4.14831-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit udev +inherit udev toolchain-funcs if [ "${PV}" = "9999" ]; then inherit git-r3 @@ -54,6 +54,10 @@ DEPEND="${RDEPEND} QA_FLAGS_IGNORED="usr/share/proxmark3/firmware/bootrom.elf usr/share/proxmark3/firmware/fullimage.elf" +src_prepare(){ + eapply ${FILESDIR}/pull_1756_client_makefile.patch + eapply_user +} src_compile(){ #first we set platform if use pm3rdv4; then @@ -118,15 +122,18 @@ src_compile(){ fi export PREFIX=/usr + #verbose export V=1 + #common flags + EMAKE_COMMON=CC="$(tc-getCC)" DEFCFLAGS="${CFLAGS}" MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}" MYLDFLAGS="${LDFLAGS}" use qt || export SKIPQT=1 use bluez || export SKIPBT=1 if use firmware; then - emake all + emake ${EMAKE_COMMON} all elif use deprecated; then - emake client mfkey nonce2key + emake ${EMAKE_COMMON} client mfkey nonce2key else - emake client + emake ${EMAKE_COMMON} client fi } @@ -165,3 +172,7 @@ pkg_postinst() { fi fi } + +pkg_postrm() { + udev_reload +}