summaryrefslogtreecommitdiff
path: root/sys-fs/mtd-utils
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/mtd-utils')
-rw-r--r--sys-fs/mtd-utils/Manifest2
-rw-r--r--sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild58
2 files changed, 60 insertions, 0 deletions
diff --git a/sys-fs/mtd-utils/Manifest b/sys-fs/mtd-utils/Manifest
index e626caeb9011..1c3d95985bdb 100644
--- a/sys-fs/mtd-utils/Manifest
+++ b/sys-fs/mtd-utils/Manifest
@@ -1,4 +1,6 @@
DIST mtd-utils-2.1.6.tar.bz2 458333 BLAKE2B 799c19fbee1a690fa695edfa7e2ab1691e37fccb3f83685065e93b5ceea96e550eecdba4576b7d1a58a1b0ce06e3e551ee635fe9ed16521952fc85986f74ae6f SHA512 470902475b9e583d3a12801c1cab5492c671ec3ccf853cc3336c4e2b8771eac489d67b1414b9f1e827c42ebdba0fe2cdc681297477d67a796af04d81160442bd
+DIST mtd-utils-2.2.1.tar.bz2 476562 BLAKE2B 81403a5c6a94ad9147cda56a3f821d6b46b2718d7b1e084aa5236802c22e6b75223c68073abdd35f2ceb8b4857880e923dd49274c6ba3e9fce0ec1a0314fef22 SHA512 ef1cf4d6fa5219b8bbe4728282d0d73fd3234c36743cdfb901908269632f55a7993fdbeb22cc2b6841add1a9f320c4504a42980f5856626e259401e8e2f17f7d
EBUILD mtd-utils-2.1.6-r1.ebuild 1150 BLAKE2B fe66d7e1b4e3249054b092b00595111280a98d5e4a3b2d859f2a53ca1e87391a14b4c3aa822691416256af3d6c5eed6d1b0b8af360033278c33ae0f7dca095a3 SHA512 03d5c04a9221d9e94d0b35851583d5d0c02483f2962abce39dca5477dab02cf3cbdfab778122b01fec63e3d485ab0a6ddc61b84e0d6a955f707a3f8a23271596
EBUILD mtd-utils-2.1.6-r2.ebuild 1253 BLAKE2B 704c0f38a35acec3ec830a74ebec39e43a001804ba8dcbb8da1f33369c4906b67ddd6ec33e250c343e1a807df86f9bc2365d4a1b76100e510cd776c40283b65a SHA512 42147e96f4c880785c30d28e9e90ca8a0fee848c0156c1e54b0b6608b591b0617eaf3c328f9abb208b1bc25248575d081b0fa2c79ea1e818a653973593c28a93
+EBUILD mtd-utils-2.2.1.ebuild 1253 BLAKE2B 69efb9112e4d9d3a762ad32b3e333c529b33ec6f3aa3cf9097a4414aa962e083fe5270820d078c9a62220da575991252b909ac440a496bb95834b83d4dd6bc5a SHA512 2cecae7c13545e0b389d749b4cda7aff64e532c8893811cbe081bd041d92e6df39bb06b52a7d05fbeceea41c290f90b04f773230f3c659fa902fa92fc807409d
MISC metadata.xml 475 BLAKE2B 49a145f678fd3e79eb6f39a371e4e477926f7429673a3d5fecab6cefb054d7273676c22fb4be0769e755405dc5e990b46947eee4bc8ae7a145fe8eb6325aeddf SHA512 2a2069e74ad519e19d364a980ef281eb7f4624a44f6e8a73e360212f40069e9252041eebb37b2228316747d95e574b93886ed2f679a4a862a627616e19b2b5c4
diff --git a/sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild b/sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild
new file mode 100644
index 000000000000..bdc80fbd7c37
--- /dev/null
+++ b/sys-fs/mtd-utils/mtd-utils-2.2.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
+HOMEPAGE="https://git.infradead.org/?p=mtd-utils.git;a=summary"
+SRC_URI="https://infraroot.at/pub/mtd/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="+lzo +ssl test xattr +zstd"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ sys-apps/util-linux:=
+ sys-libs/zlib:=
+ lzo? ( dev-libs/lzo:= )
+ ssl? ( dev-libs/openssl:0= )
+ xattr? ( sys-apps/acl )
+ zstd? ( app-arch/zstd:= )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="test? ( dev-util/cmocka )"
+
+DOCS=( jffsX-utils/device_table.txt ubifs-utils/mkfs.ubifs/README )
+
+src_prepare() {
+ default
+ sed -i '/if test.*then/s: == : = :' configure || die
+}
+
+src_configure() {
+ # --enable-tests is for test programs that are installed
+ local myeconfargs=(
+ --enable-tests
+ $(use_enable test unit-tests)
+ $(use_with lzo)
+ $(use_with ssl ubifs)
+ $(use_with xattr)
+ $(use_with zstd)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ default
+ doman \
+ jffsX-utils/mkfs.jffs2.1 \
+ ubi-utils/ubinize.8
+}