Files
haikuports/sys-fs/e2fsprogs/e2fsprogs-1.43.9.recipe

91 lines
2.3 KiB
Bash

SUMMARY="Standard EXT2/EXT3/EXT4 filesystem utilities"
DESCRIPTION="Various tools to manage EXT2,3,4 filesystems (resize, etc)"
HOMEPAGE="http://e2fsprogs.sourceforge.net/"
COPYRIGHT="2004-2017 Theodore Ts'o"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v$portVersion/e2fsprogs-$portVersion.tar.gz"
CHECKSUM_SHA256="5be0ffc01b9720a3f3ccfc86396016baf1334b98751fefa09e0c63eaffdc3897"
PATCHES="e2fsprogs-$portVersion.patchset"
ARCHITECTURES=""
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
GLOBAL_WRITABLE_FILES="
settings/mke2fs.conf keep-old
"
PROVIDES="
e2fsprogs$secondaryArchSuffix = $portVersion
cmd:badblocks$commandSuffix
cmd:blkid$commandSuffix
cmd:chattr$commandSuffix
cmd:dumpe2fs$commandSuffix
cmd:e2freefrag$commandSuffix
cmd:e2fsck$commandSuffix
cmd:e2image$commandSuffix
cmd:e2label$commandSuffix
cmd:e2undo$commandSuffix
cmd:filefrag$commandSuffix
cmd:findfs$commandSuffix
cmd:fsck.ext2$commandSuffix
cmd:fsck.ext3$commandSuffix
cmd:fsck.ext4$commandSuffix
cmd:logsave$commandSuffix
cmd:lsattr$commandSuffix
cmd:mke2fs$commandSuffix
cmd:mkfs.ext2$commandSuffix
cmd:mkfs.ext3$commandSuffix
cmd:mkfs.ext4$commandSuffix
cmd:mklost+found$commandSuffix
cmd:resize2fs$commandSuffix
cmd:tune2fs$commandSuffix
cmd:uuidd$commandSuffix
cmd:uuidgen$commandSuffix
lib:libblkid$commandSuffix = 1.0 compat >= 1
lib:libcom_err$secondaryArchSuffix = 2.1 compat >= 2
lib:libe2p$secondaryArchSuffix = 2.3 compat >= 2
lib:libext2fs$secondaryArchSuffix = 2.4 compat >= 2
lib:libss$secondaryArchSuffix = 2.0 compat >= 2
lib:libuuid$secondaryArchSuffix = 1.2 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoconf
libdir=`finddir B_COMMON_LIB_DIRECTORY`
runConfigure --omit-dirs "binDir sbinDir" ./configure \
--bindir="$commandBinDir" \
--sbindir="$commandBinDir" \
USE=-loop-aes --disable-tls \
--disable-fsck --disable-debugfs \
--enable-elf-shlibs --enable-symlink-build --enable-symlink-install
make $jobArgs
}
INSTALL()
{
make install
}