summaryrefslogtreecommitdiff
path: root/sys-fs/mtd-utils
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-fs/mtd-utils
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fs/mtd-utils')
-rw-r--r--sys-fs/mtd-utils/Manifest7
-rw-r--r--sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch32
-rw-r--r--sys-fs/mtd-utils/metadata.xml11
-rw-r--r--sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild65
-rw-r--r--sys-fs/mtd-utils/mtd-utils-99999999.ebuild61
5 files changed, 176 insertions, 0 deletions
diff --git a/sys-fs/mtd-utils/Manifest b/sys-fs/mtd-utils/Manifest
new file mode 100644
index 000000000000..d9cc22d14ed6
--- /dev/null
+++ b/sys-fs/mtd-utils/Manifest
@@ -0,0 +1,7 @@
+AUX mtd-utils-1.5.2-sysmacros.patch 927 SHA256 74cf958e23322297d3044d3a48844282830131c2251daeed3face0b48d196acd SHA512 e7334556ecfe57edc703a9b6c37535460774eb1990be497544101a77e7c1ff75ec9872b1d4dc3d9ffb94f4488371e0c800c3b2e15e75d2881588611018417ff8 WHIRLPOOL b7dc88b9c640c0bd88dc1ac2b9498895b1a2faa67cb4fb79a9d2857968cbd303451813f14e2f921ba43d1bc6783929bbbd36507e13db811e0b3c0aa7e0492b83
+DIST mtd-utils-1.5.2.tar.gz 343843 SHA256 8169e2860f63f3c216ba830c943139d00995fd030313079cc143bbad24ecf6c3 SHA512 81eb5cf27814234af65409fe93798ec50d9f733978dc606bd33e63d98eb99afb3f988df47dc66a9368a11baee0a35fa1d0d6677af8c23428919e34bd11a25697 WHIRLPOOL e5aa4a15f334222980469a9d002e5f1030510d9ebb46fa6221acf1a70632a68625cb6eb0927a949ebd6a0d2e92c1a51671da21c37386bed389d5f9859c978fc5
+EBUILD mtd-utils-1.5.2.ebuild 1575 SHA256 22f99be79521254a41329bb39cb22c1f779c7dfbfcf735a47352da692cd9c9e8 SHA512 f8975142ea2b6982400411925bec267634af85366e2a4931363441bd14ef927770ff145d5573d161683fce2bc40c52754dde9876a70e2ecb13a418ff82e043e0 WHIRLPOOL f081d2be74e2f6893470a75f46fce6c3fc84dc3d435d031f5a84b7c903982af9ad7f40a13389560ea119fdd348d7bcc604f35ad98c90e96ba7f061ea5a992c73
+EBUILD mtd-utils-99999999.ebuild 1521 SHA256 4cc792552dbb787e2f11bcbac1ca1d224082ba3095fe7977a303922aacc3e32c SHA512 67d013995ba1f2a7d537486c42a88cf42b5da3f533c3fbb7ead1bc7353c12163cf58677e04132f6dd720813602bf998c41d2e2a5dfe2cb0a346b48345cb6592e WHIRLPOOL aed0d3cade1ed9585dbe2c73519645d5e13ec4465d7dd7068ae97e77182adcfe6f1af743c91fb0892681984a2992f4580b1720dd365e4f26722efa6968eda494
+MISC ChangeLog 4242 SHA256 bf91fb78cab63d0007bb11f2c6b98b7180b625d412a61ff329ae24683f9697ea SHA512 2a4f96a47d6df8268ea06de8c583d4caa1f4baa9f798e697bdaf624a67122b362cdd9241ed45c79f0a950de2ab6f1426b97293e18d488c49311daff70f0fd7c7 WHIRLPOOL 4f850def61d1af06c7f3e75a94928cf43c35da6152a974e0ad3fc0aef4e3aa2e0b2232ae2ded9815a52ce12189447cc1e5063e44999693b4b08a73a5d5aa82fd
+MISC ChangeLog-2015 8625 SHA256 0770081d8ead4a00ceb3f3add066202d28fe828f83ebcf96d4250e3514c3cbbe SHA512 fb6461706fffae393b3a4adf7cb98b8d2ece6a9b92e5f9cea3d51f298f0c481af232734335e98bb92c71f3b876ef01567ebbdf40d95585a1ca6e72bb997de94b WHIRLPOOL 56d2b841d8bd84e6f2631165051db06c65eebdb251320047b8f25eabf25c3c37078e999740aa0a63d2098ba8f27c31541ada5ed66e76cd63b5c68f60d23720e3
+MISC metadata.xml 323 SHA256 352f59c39daaf369385539a33259c730e619af51afd0302831d06ff33393052c SHA512 191d5a9dbe4c6a0a72815092a0668070ff39bc121b30a3e55abd894ca62fd3641a205662a23a6a87aeeedd8ab000e4d2d40bbba278acbc0f7d74c97d0571d0c1 WHIRLPOOL a1a90dba360d91e5050ea122e58adcdf041c40da54166ae394f16b28da8f37aefc6c919099f897635ae8db3730c8d0aabbb64c3a21b142592f1e9a8d82cc6d95
diff --git a/sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch b/sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch
new file mode 100644
index 000000000000..5fc055d07da9
--- /dev/null
+++ b/sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/580206
+
+From 9a06f45ec71116d76ee4b268ebe1b33d45b06fc0 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sat, 16 Apr 2016 22:10:43 -0400
+Subject: [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
+
+These functions have always been defined in sys/sysmacros.h under
+Linux C libraries. For some, including sys/types.h implicitly
+includes that as well, but glibc wants to deprecate that, and some
+others already have. Include the header explicitly for the funcs.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ include/common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/common.h b/include/common.h
+index fb0ca83..8cb3142 100644
+--- a/include/common.h
++++ b/include/common.h
+@@ -28,6 +28,7 @@
+ #include <errno.h>
+ #include <features.h>
+ #include <inttypes.h>
++#include <sys/sysmacros.h>
+ #include "version.h"
+
+ #ifndef PROGRAM_NAME
+--
+2.7.4
+
diff --git a/sys-fs/mtd-utils/metadata.xml b/sys-fs/mtd-utils/metadata.xml
new file mode 100644
index 000000000000..7d84a262b640
--- /dev/null
+++ b/sys-fs/mtd-utils/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+ <email>embedded@gentoo.org</email>
+ <name>Embedded Gentoo</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild b/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild
new file mode 100644
index 000000000000..3aff08116584
--- /dev/null
+++ b/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils vcs-snapshot
+
+if [[ ${PV} == "99999999" ]] ; then
+ EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
+
+ inherit git-2
+ SRC_URI=""
+ #KEYWORDS=""
+else
+ if [[ ${PV} == *.*.* ]] ; then
+ MY_PV="${PV}-*"
+ SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
+ else
+ MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
+ SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
+ fi
+ KEYWORDS="amd64 arm ~mips ppc x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
+HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="xattr"
+
+# We need libuuid
+RDEPEND="!sys-fs/mtd
+ dev-libs/lzo
+ sys-libs/zlib
+ >=sys-apps/util-linux-2.16"
+# ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
+# And ACL brings in Attr as well.
+DEPEND="${RDEPEND}
+ xattr? ( sys-apps/acl )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sysmacros.patch #580206
+}
+
+makeopts() {
+ # These affect build output, so keep it common between compile & install.
+ echo CROSS=${CHOST}- V=1
+ use xattr || echo WITHOUT_XATTR=1
+}
+
+src_compile() {
+ tc-export AR CC RANLIB
+ local compileopts=(
+ AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
+ )
+ emake $(makeopts) "${compileopts[@]}"
+}
+
+src_install() {
+ emake $(makeopts) install DESTDIR="${ED}"
+ dodoc *.txt
+ newdoc mkfs.ubifs/README README.mkfs.ubifs
+ # TODO: check ubi-utils for docs+scripts
+}
diff --git a/sys-fs/mtd-utils/mtd-utils-99999999.ebuild b/sys-fs/mtd-utils/mtd-utils-99999999.ebuild
new file mode 100644
index 000000000000..2496e699834d
--- /dev/null
+++ b/sys-fs/mtd-utils/mtd-utils-99999999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils vcs-snapshot
+
+if [[ ${PV} == "99999999" ]] ; then
+ EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
+
+ inherit git-2
+ SRC_URI=""
+ #KEYWORDS=""
+else
+ if [[ ${PV} == *.*.* ]] ; then
+ MY_PV="${PV}-*"
+ SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
+ else
+ MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
+ SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
+ fi
+ KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
+HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="xattr"
+
+# We need libuuid
+RDEPEND="!sys-fs/mtd
+ dev-libs/lzo
+ sys-libs/zlib
+ >=sys-apps/util-linux-2.16"
+# ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
+# And ACL brings in Attr as well.
+DEPEND="${RDEPEND}
+ xattr? ( sys-apps/acl )"
+
+makeopts() {
+ # These affect build output, so keep it common between compile & install.
+ echo CROSS=${CHOST}- V=1
+ use xattr || echo WITHOUT_XATTR=1
+}
+
+src_compile() {
+ tc-export AR CC RANLIB
+ local compileopts=(
+ AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
+ )
+ emake $(makeopts) "${compileopts[@]}"
+}
+
+src_install() {
+ emake $(makeopts) install DESTDIR="${ED}"
+ dodoc *.txt
+ newdoc ubifs-utils/mkfs.ubifs/README README.mkfs.ubifs
+ # TODO: check ubi-utils for docs+scripts
+}