mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-13 10:21:13 +02:00
proxmark3: add live ebuild to test fixes for all the issues I opened
This commit is contained in:
parent
b6c272eb30
commit
ee09ffd7e7
1 changed files with 83 additions and 0 deletions
83
net-wireless/proxmark3/proxmark3-9999.ebuild
Normal file
83
net-wireless/proxmark3/proxmark3-9999.ebuild
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
# Copyright 1999-2019 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
|
||||
HASH_COMMIT="1ac5211601b50b82b41737dce0c3a72d9e0374ac"
|
||||
SRC_URI="https://github.com/RfidResearchGroup/${PN}/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S=${WORKDIR}/${PN}-${HASH_COMMIT}
|
||||
fi
|
||||
DESCRIPTION="A general purpose RFID tool for Proxmark3 hardware"
|
||||
HOMEPAGE="https://github.com/RfidResearchGroup/proxmark3"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="deprecated +firmware"
|
||||
|
||||
RDEPEND="virtual/libusb:0
|
||||
sys-libs/ncurses:*[tinfo]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtgui:5
|
||||
sys-libs/readline:=
|
||||
dev-util/astyle"
|
||||
DEPEND="${RDEPEND}
|
||||
firmware? ( sys-devel/gcc-arm-none-eabi )"
|
||||
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/-ltermcap/-ltinfo/g' client/Makefile || die
|
||||
sed -i -e 's/-ltermcap/-ltinfo/g' client/liblua/Makefile || die
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile(){
|
||||
if use firmware; then
|
||||
# platform should be an exclusive use flag, extras should default to btaddon for pm3rdv4
|
||||
# standalone should also be an exclusive use flag
|
||||
emake V=1 PM3_SHARE_PATH=/usr/share/${PN} PLATFORM=PM3RDV4 PLATFORM_EXTRAS=BTADDON all
|
||||
elif use deprecated; then
|
||||
emake V=1 PM3_SHARE_PATH=/usr/share/${PN} client/proxmark3 mfkey nonce2key
|
||||
else
|
||||
emake V=1 PM3_SHARE_PATH=/usr/share/${PN} client/proxmark3
|
||||
fi
|
||||
}
|
||||
|
||||
src_install(){
|
||||
dobin client/proxmark3
|
||||
if use deprecated; then
|
||||
#install some tools
|
||||
exeinto /usr/share/proxmark3/tools
|
||||
doexe tools/mfkey/mfkey{32,64}
|
||||
doexe tools/nonce2key/nonce2key
|
||||
fi
|
||||
#install main lua and scripts
|
||||
insinto /usr/share/proxmark3/lualibs
|
||||
doins client/lualibs/*
|
||||
insinto /usr/share/proxmark3/luascripts
|
||||
doins client/luascripts/*
|
||||
if use firmware; then
|
||||
exeinto /usr/share/proxmark3/firmware
|
||||
doexe client/flasher
|
||||
insinto /usr/share/proxmark3/firmware
|
||||
doins armsrc/obj/fullimage.elf
|
||||
doins bootrom/obj/bootrom.elf
|
||||
insinto /usr/share/proxmark3/jtag
|
||||
doins recovery/*.bin
|
||||
fi
|
||||
udev_dorules driver/77-pm3-usb-device-blacklist.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use firmware; then
|
||||
einfo "flasher is located in /usr/share/proxmark3/firmware/"
|
||||
ewarn "Please note, all firmware and recovery files are intended for the Proxmark3 RDV4"
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue