proxmark3: clean up old, add standalone and metadata.xml

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-08-29 12:32:30 -04:00
parent 5a91d9637c
commit 581135c082
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
5 changed files with 48 additions and 123 deletions

View file

@ -1,3 +1 @@
DIST proxmark3-3.0.1.tar.gz 21048630 BLAKE2B b1334ec4e3bfd5fbbaa1508acaeb24a34b8ba2acd7a254be4caf44391b8f05babfddf9d294434fe2ac87b5b4e0cc581acc3a2fdb85bf0f8dbed28c1d1c78d715 SHA512 27710886f701da182cff39edf6bb555e9d4ade736ad6447a4c01604bad7f0001bcdebcbdfe5f345032ca8fe11e6767c89a97fcd0b1c1f6647d1805f69ae4f0ef
DIST proxmark3-3.1.0.tar.gz 13007289 BLAKE2B 6ac0eb53a56edaa083c08f1aa5c27345e7797d5dc6dc203a9f700db6c0a96f58175a941b03c9edcd8025beef6296c794a622af70ac011ac9ace2a92e7ac6f8e9 SHA512 97c7664b661722f3c2cc01577e7de86110c51a7dfd6309d85451fb7ff6056ae19845e3d6bcafbb8eafd307c6bab7f5837591683636f3448590ae8d6fc5331feb
DIST proxmark3-3.1.0_p20190820.tar.gz 11672097 BLAKE2B 4e908fc76b71f87eb7b04a4a4296031fd3f63be59df3b7ce5982c1be5562b4f8db61c1c3dba77724abcd65f86bc9d0b5cac13b75bd5dd5325f0e83a3fd7c1a10 SHA512 2093f2c2aa83ccc27733facd411246fab04378ac32ef2c970e388b3b84b7a1c5956bd088d2605ecffd686e1ccb997501b8c81a5b849885733da509067a613634

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zerochaos@gentoo.org</email>
<name>Rick Farina</name>
</maintainer>
<use>
<flag name="deprecated">build and install the mfkey and nonce2key tools</flag>
<flag name="firmware">build firmware to update the proxmark3 hardware</flag>
<flag name="pm3rdv4">build proxmark3 rdv4 specific firmware instead of generic</flag>
<flag name="standalone-lf-samyrun">standalone HID26 read/clone/sim</flag>
<flag name="standalone-lf-proxbrute">standalone HID ProxII bruteforce</flag>
<flag name="standalone-lf-hidbrute">standalone HID corporate 1000 bruteforce</flag>
<flag name="standalone-hf-young">standalone Mifare sniff/simulation</flag>
<flag name="standalone-hf-mattyrun">standalone Mifare sniff/clone</flag>
<flag name="standalone-hf-colin">standalone Mifare ultra fast sniff/sim/clone</flag>
<flag name="standalone-hf-bog">standalone 14a sniff with ULC/ULEV1/NTAG auth</flag>
</use>
<upstream>
<remote-id type="github">RfidResearchGroup/proxmark3</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,59 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit udev
DESCRIPTION="A general purpose RFID tool for Proxmark3 hardware"
HOMEPAGE="https://github.com/Proxmark/proxmark3"
SRC_URI="https://github.com/Proxmark/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="firmware"
DEPEND="virtual/libusb:0
sys-libs/ncurses:*[tinfo]
dev-qt/qtcore:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
sys-libs/readline:=
firmware? ( sys-devel/gcc-arm-none-eabi )"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-ltermcap/-ltinfo/g' client/Makefile || die
sed -i -e 's/-ltermcap/-ltinfo/g' liblua/Makefile || die
sed -i -e 's#lualibs/#../../usr/share/proxmark3/lualibs/#' client/scripting.h || die
sed -i -e 's#scripts/#../../usr/share/proxmark3/scripts/#' client/scripting.h || die
mv driver/77-mm-usb-device-blacklist.rules driver/77-pm3-usb-device-blacklist.rules
eapply "${FILESDIR}/cflags.patch"
eapply_user
}
src_compile(){
if use firmware; then
emake -j1 all
else
emake -j1 client
fi
}
src_install(){
dobin client/{flasher,proxmark3}
#install scripts too
insinto /usr/share/proxmark3/lualibs
doins client/lualibs/*
insinto /usr/share/proxmark3/scripts
doins client/scripts/*
if use firmware; then
insinto /usr/share/proxmark3
doins armsrc/obj/*.elf
doins bootrom/obj/bootrom.elf
doins recovery/*.bin
doins tools/mfkey/mfkey{32,64}
fi
udev_dorules driver/77-pm3-usb-device-blacklist.rules
}

View file

@ -1,59 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit udev
DESCRIPTION="A general purpose RFID tool for Proxmark3 hardware"
HOMEPAGE="https://github.com/Proxmark/proxmark3"
SRC_URI="https://github.com/Proxmark/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="firmware"
DEPEND="virtual/libusb:0
sys-libs/ncurses:*[tinfo]
dev-qt/qtcore:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
sys-libs/readline:=
firmware? ( sys-devel/gcc-arm-none-eabi )"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-ltermcap/-ltinfo/g' client/Makefile || die
sed -i -e 's/-ltermcap/-ltinfo/g' liblua/Makefile || die
sed -i -e 's#lualibs/#../../usr/share/proxmark3/lualibs/#' client/scripting.h || die
sed -i -e 's#scripts/#../../usr/share/proxmark3/scripts/#' client/scripting.h || die
mv driver/77-mm-usb-device-blacklist.rules driver/77-pm3-usb-device-blacklist.rules
# eapply "${FILESDIR}/cflags.patch"
eapply_user
}
src_compile(){
if use firmware; then
emake -j1 all
else
emake -j1 client
fi
}
src_install(){
dobin client/{flasher,proxmark3}
#install scripts too
insinto /usr/share/proxmark3/lualibs
doins client/lualibs/*
insinto /usr/share/proxmark3/scripts
doins client/scripts/*
if use firmware; then
insinto /usr/share/proxmark3
doins armsrc/obj/*.elf
doins bootrom/obj/bootrom.elf
doins recovery/*.bin
doins tools/mfkey/mfkey{32,64}
fi
udev_dorules driver/77-pm3-usb-device-blacklist.rules
}

View file

@ -19,7 +19,11 @@ HOMEPAGE="https://github.com/RfidResearchGroup/proxmark3"
LICENSE="GPL-2"
SLOT="0"
IUSE="deprecated +firmware +pm3rdv4"
STANDALONE="+standalone-lf-samyrun standalone-lf-proxbrute standalone-lf-hidbrute standalone-hf-young standalone-hf-mattyrun standalone-hf-colin standalone-hf-bog"
IUSE="deprecated +firmware +pm3rdv4 ${STANDALONE}"
REQUIRED_USE="?? ( ${STANDALONE/+/} )
standalone-hf-colin? ( pm3rdv4 )
standalone-hf-bog? ( pm3rdv4 )"
RDEPEND="virtual/libusb:0
sys-libs/ncurses:*[tinfo]
@ -29,8 +33,7 @@ RDEPEND="virtual/libusb:0
sys-libs/readline:=
dev-util/astyle"
DEPEND="${RDEPEND}
firmware? ( sys-devel/gcc-arm-none-eabi )"
firmware? ( sys-devel/gcc-arm-none-eabi:0 )"
src_compile(){
#first we set platform
@ -40,6 +43,25 @@ src_compile(){
else
echo 'PLATFORM=PM3OTHER' > Makefile.platform
fi
#then we set a standalone mode
if 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-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 PM3_SHARE_PATH=/usr/share/${PN}
export V=1
if use firmware; then