mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
sys-block/partclone: new package, add 0.3.20
Signed-off-by: Sergey Alirzaev <l29ah@riseup.net>
This commit is contained in:
1
sys-block/partclone/Manifest
Normal file
1
sys-block/partclone/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST partclone-0.3.20.tar.gz 1373652 BLAKE2B 4fd15bde711c3967cc791214592ec97cd8cc0290ae452334dc026dfbfc0d27661460165dacced72767ed5fa9731649d6c250e9576ace861c713d3a1e52630e2f SHA512 32dced369973c39412c562ab8731ff7b490f464b5ed4033456e6b23f3f79c437f43dc9db4c79b4821f35e4997d1444c8d80c53816b2a3bb90836fb5ad33b368e
|
||||
14
sys-block/partclone/files/partclone-fail-mbr.patch
Normal file
14
sys-block/partclone/files/partclone-fail-mbr.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff -Naur a/fail-mbr/compile-mbr.sh b/fail-mbr/compile-mbr.sh
|
||||
--- a/fail-mbr/compile-mbr.sh 2018-10-28 13:46:38.000000000 +0000
|
||||
+++ b/fail-mbr/compile-mbr.sh 2021-11-08 00:08:29.362877648 +0000
|
||||
@@ -28,7 +28,9 @@
|
||||
# - a line separator output by diff, "---"
|
||||
# - the OP code "xor %ax,%ax" which may begin by 0x31 or 0x33
|
||||
# - a numerical offset output by diff, ^[a-f0-9]*$
|
||||
-report=$(diff f1.obj f2.obj | grep -Ev 'fail-mbr|---|xor %ax,%ax|^[a-f0-9]*$')
|
||||
+#report=$(diff f1.obj f2.obj | grep -Ev 'fail-mbr|---|xor %ax,%ax|^[a-f0-9]*$')
|
||||
+# set empty report to bypass issue https://bugzilla.redhat.com/show_bug.cgi?id=1943056
|
||||
+report=""
|
||||
if [ -n "$report" ]; then
|
||||
echo "files fail-mbr.bin and fail-mbr.bin.orig differ significantly:"
|
||||
diff f1.obj f2.obj
|
||||
30
sys-block/partclone/metadata.xml
Normal file
30
sys-block/partclone/metadata.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Thomas-Tsai/partclone</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="apfs">Compile partclone apfs tool</flag>
|
||||
<flag name="btrfs">Compile partclone btrfs tool</flag>
|
||||
<flag name="e2fs">Compile partclone e2fs tool</flag>
|
||||
<flag name="exfat">Compile partclone exfat tool</flag>
|
||||
<flag name="f2fs">Compile partclone f2fs tool</flag>
|
||||
<flag name="fat">Compile partclone fat tool</flag>
|
||||
<flag name="fuse">Compile partclone fuse tool</flag>
|
||||
<flag name="hfs">Compile partclone hfs tool</flag>
|
||||
<flag name="jfs">Compile partclone jfs tool</flag>
|
||||
<flag name="minix">Compile partclone minix tool</flag>
|
||||
<flag name="nilfs2">Compile partclone nilfs2 tool</flag>
|
||||
<flag name="ntfs">Compile partclone ntfs tool</flag>
|
||||
<flag name="reiser4">Compile partclone reiser4 tool</flag>
|
||||
<flag name="reiserfs">Compile partclone reiserfs tool</flag>
|
||||
<flag name="ufs">Compile partclone ufs tool</flag>
|
||||
<flag name="vmfs">Compile partclone vmfs tool</flag>
|
||||
<flag name="xfs">Compile partclone xfs tool</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
92
sys-block/partclone/partclone-0.3.20.ebuild
Normal file
92
sys-block/partclone/partclone-0.3.20.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
if [[ -z ${PV%%*9999} ]]; then
|
||||
EGIT_REPO_URI="https://github.com/Thomas-Tsai/${PN}.git"
|
||||
inherit git-r3
|
||||
else
|
||||
[[ -n ${PV%%*_p*} ]] && MY_PV="${PV}"
|
||||
SRC_URI="
|
||||
https://github.com/Thomas-Tsai/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Partition cloning tool"
|
||||
HOMEPAGE="https://partclone.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="
|
||||
apfs btrfs +e2fs exfat f2fs fat fuse hfs jfs minix ncurses nilfs2 ntfs reiser4
|
||||
reiserfs static ufs vmfs xfs
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/openssl:*
|
||||
e2fs? ( sys-fs/e2fsprogs )
|
||||
btrfs? ( sys-apps/util-linux )
|
||||
fuse? ( sys-fs/fuse:0 )
|
||||
jfs? ( sys-fs/jfsutils )
|
||||
ncurses? ( sys-libs/ncurses:0 )
|
||||
nilfs2? ( sys-fs/nilfs-utils )
|
||||
ntfs? ( sys-fs/ntfs3g )
|
||||
reiserfs? ( sys-fs/progsreiserfs )
|
||||
reiser4? ( sys-fs/reiser4progs )
|
||||
xfs? ( sys-apps/util-linux )
|
||||
static? (
|
||||
dev-libs/openssl:*[static-libs]
|
||||
e2fs? (
|
||||
sys-fs/e2fsprogs[static-libs]
|
||||
)
|
||||
btrfs? ( sys-apps/util-linux[static-libs] )
|
||||
fuse? ( sys-fs/fuse:0[static-libs] )
|
||||
jfs? ( sys-fs/jfsutils[static] )
|
||||
ncurses? ( sys-libs/ncurses:0[static-libs] )
|
||||
nilfs2? ( sys-fs/nilfs-utils[static-libs] )
|
||||
ntfs? ( sys-fs/ntfs3g[static-libs] )
|
||||
reiserfs? ( sys-fs/progsreiserfs[static-libs] )
|
||||
reiser4? ( sys-fs/reiser4progs[static-libs] )
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
DOCS=( AUTHORS ChangeLog HACKING NEWS README.md TODO )
|
||||
|
||||
src_prepare() {
|
||||
for f in "${FILESDIR}/${PN}-"*.patch; do
|
||||
eapply "$f"
|
||||
done
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable e2fs extfs)
|
||||
$(use_enable apfs)
|
||||
$(use_enable btrfs)
|
||||
$(use_enable exfat)
|
||||
$(use_enable f2fs)
|
||||
$(use_enable fat)
|
||||
$(use_enable fuse)
|
||||
$(use_enable hfs hfsp)
|
||||
$(use_enable jfs)
|
||||
$(use_enable minix)
|
||||
$(use_enable ncurses ncursesw)
|
||||
$(use_enable nilfs2)
|
||||
$(use_enable ntfs)
|
||||
$(use_enable reiserfs)
|
||||
$(use_enable reiser4)
|
||||
$(use_enable static)
|
||||
$(use_enable vmfs)
|
||||
$(use_enable ufs)
|
||||
$(use_enable xfs)
|
||||
)
|
||||
append-flags -fcommon
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user