mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 06:41:01 +02:00
proxmark3: prepping for new release
This commit is contained in:
parent
840819a31a
commit
af1a15140b
3 changed files with 166 additions and 4 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST proxmark3-3.1.0_p20190820.tar.gz 11672097 BLAKE2B 4e908fc76b71f87eb7b04a4a4296031fd3f63be59df3b7ce5982c1be5562b4f8db61c1c3dba77724abcd65f86bc9d0b5cac13b75bd5dd5325f0e83a3fd7c1a10 SHA512 2093f2c2aa83ccc27733facd411246fab04378ac32ef2c970e388b3b84b7a1c5956bd088d2605ecffd686e1ccb997501b8c81a5b849885733da509067a613634
|
||||
DIST proxmark3-3.1.0_p20200316.tar.gz 11672097 BLAKE2B 4e908fc76b71f87eb7b04a4a4296031fd3f63be59df3b7ce5982c1be5562b4f8db61c1c3dba77724abcd65f86bc9d0b5cac13b75bd5dd5325f0e83a3fd7c1a10 SHA512 2093f2c2aa83ccc27733facd411246fab04378ac32ef2c970e388b3b84b7a1c5956bd088d2605ecffd686e1ccb997501b8c81a5b849885733da509067a613634
|
||||
DIST proxmark3-4.9230.tar.gz 12051632 BLAKE2B 0ae55abefb115d4ef84f90fbf13cac7eef18e56737e6b1302dab0693411631fafa783400f4b581da6e0f7ebb8a91e175bb5a5ea386caf9e591c99672c128aaa4 SHA512 5774ba8cc0666c68aaa43d54f50f975c1b7fde02b09d7be02cd3527ef6ec2e151e357005057ad20476af52df9bd0439e9625d8cf05e4e24784a8d17333c707fe
|
||||
|
|
|
|||
135
net-wireless/proxmark3/proxmark3-4.9230.ebuild
Normal file
135
net-wireless/proxmark3/proxmark3-4.9230.ebuild
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
# Copyright 1999-2020 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-hf-14asniff standalone-hf-legic +standalone-hf-msdsal standalone-hf-young standalone-hf-mattyrun standalone-hf-colin standalone-hf-bog"
|
||||
IUSE="+bluez deprecated +firmware +pm3rdv4 +qt ${STANDALONE}"
|
||||
REQUIRED_USE="?? ( ${STANDALONE/+/} )
|
||||
standalone-lf-icehid? ( pm3rdv4 )
|
||||
standalone-hf-14asniff? ( pm3rdv4 )
|
||||
standalone-hf-colin? ( pm3rdv4 )
|
||||
standalone-hf-bog? ( pm3rdv4 )"
|
||||
|
||||
RDEPEND="virtual/libusb:0
|
||||
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=PM3OTHER' > 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-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
|
||||
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
|
||||
}
|
||||
|
|
@ -9,10 +9,14 @@ if [ "${PV}" = "9999" ]; then
|
|||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/RfidResearchGroup/proxmark3.git"
|
||||
else
|
||||
HASH_COMMIT="1ac5211601b50b82b41737dce0c3a72d9e0374ac"
|
||||
SRC_URI="https://github.com/RfidResearchGroup/${PN}/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
#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"
|
||||
S=${WORKDIR}/${PN}-${HASH_COMMIT}
|
||||
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"
|
||||
|
|
@ -50,12 +54,26 @@ src_compile(){
|
|||
echo 'PLATFORM=PM3OTHER' > Makefile.platform
|
||||
fi
|
||||
#then we set a standalone mode
|
||||
if use standalone-lf-samyrun; then
|
||||
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-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
|
||||
|
|
@ -95,6 +113,14 @@ src_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
|
||||
|
|
|
|||
Loading…
Reference in a new issue