mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 15:41:04 +02:00
sys-fs/btrfs-progs: Sync with Gentoo
It's from Gentoo commit a429b970949c21e97dfc4e6b8cee01ed0bb4e2ff.
This commit is contained in:
parent
e4ed5a2b7e
commit
2f363001f1
@ -35,7 +35,7 @@ HOMEPAGE="https://btrfs.readthedocs.io/en/latest/"
|
|||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0/0" # libbtrfs soname
|
SLOT="0/0" # libbtrfs soname
|
||||||
IUSE="+convert +man reiserfs static static-libs udev +zstd"
|
IUSE="+convert +man experimental reiserfs static static-libs udev +zstd"
|
||||||
# Could support it with just !systemd => eudev, see mdadm, but let's
|
# Could support it with just !systemd => eudev, see mdadm, but let's
|
||||||
# see if someone asks for it first.
|
# see if someone asks for it first.
|
||||||
REQUIRED_USE="static? ( !udev )"
|
REQUIRED_USE="static? ( !udev )"
|
||||||
@ -131,7 +131,7 @@ src_configure() {
|
|||||||
--bindir="${EPREFIX}"/sbin
|
--bindir="${EPREFIX}"/sbin
|
||||||
|
|
||||||
--enable-lzo
|
--enable-lzo
|
||||||
--disable-experimental
|
$(use_enable experimental)
|
||||||
--disable-python
|
--disable-python
|
||||||
$(use_enable convert)
|
$(use_enable convert)
|
||||||
$(use_enable man documentation)
|
$(use_enable man documentation)
|
||||||
@ -171,6 +171,11 @@ src_install() {
|
|||||||
|
|
||||||
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
emake V=1 DESTDIR="${D}" install "${makeargs[@]}"
|
||||||
|
|
||||||
|
if use experimental; then
|
||||||
|
exeinto /sbin
|
||||||
|
doexe btrfs-corrupt-block
|
||||||
|
fi
|
||||||
|
|
||||||
newbashcomp btrfs-completion btrfs
|
newbashcomp btrfs-completion btrfs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
</maintainer>
|
</maintainer>
|
||||||
<use>
|
<use>
|
||||||
<flag name="convert">Build ext2 conversion utility (btrfs-convert)</flag>
|
<flag name="convert">Build ext2 conversion utility (btrfs-convert)</flag>
|
||||||
|
<flag name="experimental">Enable unstable and experimental features and install btrfs-corrupt-block, as needed by xfstests</flag>
|
||||||
<flag name="reiserfs">Enable reiserfs support in btrfs-convert tool.</flag>
|
<flag name="reiserfs">Enable reiserfs support in btrfs-convert tool.</flag>
|
||||||
<flag name="static">Build static binaries in addition to the dynamic ones</flag>
|
<flag name="static">Build static binaries in addition to the dynamic ones</flag>
|
||||||
</use>
|
</use>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user