commit:     099229a63d2d3cd951935a7449a8073ff660beb2
Author:     Sergey Alirzaev <l29ah <AT> riseup <DOT> net>
AuthorDate: Sat Aug  2 11:50:53 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Aug  2 11:50:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=099229a6

sys-fs/xfs_undelete: new package, add 15.0

Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net>

 sys-fs/xfs_undelete/Manifest                 |  1 +
 sys-fs/xfs_undelete/metadata.xml             | 20 ++++++++++++++++++++
 sys-fs/xfs_undelete/xfs_undelete-15.0.ebuild | 28 ++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)

diff --git a/sys-fs/xfs_undelete/Manifest b/sys-fs/xfs_undelete/Manifest
new file mode 100644
index 0000000000..a714ec404a
--- /dev/null
+++ b/sys-fs/xfs_undelete/Manifest
@@ -0,0 +1 @@
+DIST xfs_undelete-15.0.tar.gz 26539 BLAKE2B 
82f575269c9769bad9c75e8e54201164fde0b024aaa1ed09c01ccfe0264a3346bc6b1cff37dd89991f4f45025dcff7edd0e5d99caf66a9c01dc4eae85bdb5b13
 SHA512 
aa7c4b1a059d5ffc8010dc4226d0b4ef332372dcc753e65b2ba9aa184b407ab6fd2af855e944f32c3bb0ad0e74ad7bb73e0100b52b248235a1e248e5388c1774

diff --git a/sys-fs/xfs_undelete/metadata.xml b/sys-fs/xfs_undelete/metadata.xml
new file mode 100644
index 0000000000..a69318f584
--- /dev/null
+++ b/sys-fs/xfs_undelete/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Sergey Alirzaev</name>
+       </maintainer>
+       <longdescription lang="en">
+       It tries to recover all inodes on an XFS filesystem marked as deleted.
+       It's rather dumb, it just looks for the magic string IN\0\0\3\2\0\0 and
+       considers those as deleted inodes. Then, it tries to make sense of
+       the extents stored in the inode (which XFS does not delete) and collect
+       the data blocks of the file. That file is then stored on another
+       filesystem in a subdirectory, by default xfs_undeleted relative to
+       the current directory.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">ianka/xfs_undelete</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/sys-fs/xfs_undelete/xfs_undelete-15.0.ebuild 
b/sys-fs/xfs_undelete/xfs_undelete-15.0.ebuild
new file mode 100644
index 0000000000..615c55caaf
--- /dev/null
+++ b/sys-fs/xfs_undelete/xfs_undelete-15.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="An undelete tool for the XFS filesystem"
+HOMEPAGE="https://github.com/ianka/xfs_undelete";
+SRC_URI="https://github.com/ianka/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-lang/tcl:0=
+       dev-tcltk/tcllib
+       sys-fs/xfsprogs"
+
+src_prepare() {
+       default
+
+       mv xfs_undelete.{man,1} || die "mv failed"
+}
+
+src_install() {
+       einstalldocs
+       dobin xfs_undelete
+       doman xfs_undelete.1
+}

Reply via email to