mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-26 16:51:03 +02:00
Merge pull request #438 from linxon/app-misc/binwalk
app-misc/binwalk: the ebuild updates and add helpful tools
This commit is contained in:
commit
f7ff588491
11 changed files with 143 additions and 65 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST binwalk-2.1.1.tar.gz 263977 BLAKE2B 8fd5f20dcdb22a6528131fbebc1454cc496079bfeafa63ddb0679c7c7b5d5c29d81dccd4f52e8f6f7d8881d9e672d691c2b2ef367f2bf3180ffbb4ad22dca021 SHA512 373e276a4d6ec845952f1091f85f953d3b0d52d561d9b74a54000ebdef85d13cafc997a4f8f76f25842db8b76fdcd1e602d4d81792a3ea01c9dea6c6ed5c2168
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/devttys0/binwalk.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/devttys0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A tool for identifying files embedded inside firmware images"
|
||||
HOMEPAGE="https://github.com/devttys0/binwalk"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="graph squashfs"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep 'dev-python/backports-lzma[${PYTHON_USEDEP}]' python2_7)
|
||||
sys-apps/file[${PYTHON_USEDEP}]
|
||||
graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
|
||||
squashfs? ( sys-fs/squashfs-tools:0
|
||||
sys-fs/sasquatch
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/0001-Added-check-for-backports.lzma-when-importing-lzma-m.patch )
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( API.md INSTALL.md README.md )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "binwalk has many optional dependencies to automatically"
|
||||
elog "extract/decompress data, see INSTALL.md for more details."
|
||||
fi
|
||||
}
|
||||
56
app-misc/binwalk/binwalk-2.1.1-r3.ebuild
Normal file
56
app-misc/binwalk/binwalk-2.1.1-r3.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="A tool for identifying files embedded inside firmware images"
|
||||
HOMEPAGE="https://github.com/ReFirmLabs/binwalk"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/ReFirmLabs/binwalk.git"
|
||||
EGIT_DOCS_URI=( "https://github.com/ReFirmLabs/binwalk.wiki.git" )
|
||||
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
EGIT_COMMIT="v${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="doc graph squashfs ubifs yaffs"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep 'dev-python/backports-lzma[${PYTHON_USEDEP}]' python2_7)
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
|
||||
sys-apps/file[${PYTHON_USEDEP}]
|
||||
squashfs? (
|
||||
sys-fs/squashfs-tools:0
|
||||
sys-fs/sasquatch
|
||||
)
|
||||
ubifs? ( sys-fs/ubi_reader )
|
||||
yaffs? ( sys-fs/yaffshiv )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/0001-Added-check-for-backports.lzma-when-importing-lzma-m.patch )
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
|
||||
if use doc; then
|
||||
unset EGIT_COMMIT
|
||||
for docs_uri in ${EGIT_DOCS_URI[@]}; do
|
||||
git-r3_fetch "${docs_uri}"
|
||||
git-r3_checkout "${docs_uri}" "${S}"/docs
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
dodoc \
|
||||
$(use doc && echo docs/*) \
|
||||
API.md INSTALL.md README.md
|
||||
}
|
||||
|
|
@ -1,23 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>radhermit@gentoo.org</email>
|
||||
<name>Tim Harder</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">Binwalk is a tool for searching a given binary image for embedded files.
|
||||
Specifically, it is designed for identifying files embedded inside of firmware
|
||||
images. Binwalk uses the libmagic library, so it is compatible with magic
|
||||
signatures created for the Unix file utility.
|
||||
Binwalk also includes a custom magic signature file which contains improved
|
||||
signatures for files that are commonly found in firmware images such as
|
||||
compressed/archived files, firmware headers, Linux kernels, bootloaders,
|
||||
filesystems, etc.</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="google-code">binwalk</remote-id>
|
||||
<remote-id type="github">devttys0/binwalk</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="graph">Enable support for generating entropy graphs</flag>
|
||||
</use>
|
||||
<maintainer type="person">
|
||||
<email>radhermit@gentoo.org</email>
|
||||
<name>Tim Harder</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">ReFirmLabs/binwalk</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="graph">Enable support for generating entropy graphs</flag>
|
||||
<flag name="squashfs">Using <pkg>sys-fs/sasquatch</pkg> to extract non-standard SquashFS images</flag>
|
||||
<flag name="ubifs">Using <pkg>sys-fs/ubi_reader</pkg> to extract UBIFS file systems</flag>
|
||||
<flag name="yaffs">Using <pkg>sys-fs/yaffshiv</pkg> to extract JFFS2 file systems</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
|
|
|||
1
sys-fs/ubi_reader/Manifest
Normal file
1
sys-fs/ubi_reader/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST ubi_reader-0.5.0.tar.gz 39073 BLAKE2B bc2d5015b101237a667433c6de3a1a83cd36d3c842187e0cd638cb121fad48525c30f08ec069397e5d15484d09fdd6d70ca55ffb8812d9a19b1e931c199a4944 SHA512 71ca99100532144c06b1f4cfc0c38e54648a37eb972fb44ab1fd16fa72dd11d72a6dbfd4a0e5d8ffaa2eb428f4109792ebf99b99b0fbd390b83f7ff51c856e5d
|
||||
8
sys-fs/ubi_reader/metadata.xml
Normal file
8
sys-fs/ubi_reader/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
1
sys-fs/ubi_reader/ubi_reader-0.5.0.ebuild
Symbolic link
1
sys-fs/ubi_reader/ubi_reader-0.5.0.ebuild
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
ubi_reader-9999.ebuild
|
||||
29
sys-fs/ubi_reader/ubi_reader-9999.ebuild
Normal file
29
sys-fs/ubi_reader/ubi_reader-9999.ebuild
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Reading information and extracting data from UBIFS images"
|
||||
HOMEPAGE="https://github.com/jrspruitt/ubi_reader"
|
||||
SRC_URI=""
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/jrspruitt/ubi_reader"
|
||||
KEYWORDS=""
|
||||
else
|
||||
MY_PV="${PV}-master"
|
||||
SRC_URI="https://github.com/jrspruitt/ubi_reader/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
RESTRICT="mirror"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/python-lzo[${PYTHON_USEDEP}]"
|
||||
8
sys-fs/yaffshiv/metadata.xml
Normal file
8
sys-fs/yaffshiv/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
1
sys-fs/yaffshiv/yaffshiv-20160105.ebuild
Symbolic link
1
sys-fs/yaffshiv/yaffshiv-20160105.ebuild
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
yaffshiv-99999999.ebuild
|
||||
22
sys-fs/yaffshiv/yaffshiv-99999999.ebuild
Normal file
22
sys-fs/yaffshiv/yaffshiv-99999999.ebuild
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit git-r3 distutils-r1
|
||||
|
||||
DESCRIPTION="YAFFS filesystem extraction tool"
|
||||
HOMEPAGE="https://github.com/devttys0/yaffshiv"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/devttys0/yaffshiv"
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
EGIT_COMMIT="8a7c99e2ea4cb968f2cede1b9782160c0fe6cb87"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
RESTRICT="mirror"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
Loading…
Reference in a new issue