e2fsprogs: install only what we want

This commit is contained in:
Dylan Araps 2021-07-06 01:22:57 +03:00
parent d63b14759f
commit eb4a0ce367
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -14,33 +14,30 @@ export LDFLAGS="$LDFLAGS -static"
--disable-fsck \ --disable-fsck \
--disable-elf-shlibs --disable-elf-shlibs
# MKDIR_P needs to be set or installation fails.
make make
make MKDIR_P="mkdir -p" DESTDIR="$1" install
# Our e2fsprogs build uses the private libblkid dest=$1
# and libuuid libraries which ship with it.
# set -- \
# It is then built statically which allows us to DESTDIR="$dest" \
# remove the libraries entirely. MKDIR_P="mkdir -p" \
# BLKID_MAN="" \
# This is all done to remove the util-linux BLKID_PROG="" \
# dependency from this package. FINDFS_LINK="" \
# FINDFS_MAN="" \
# The build system doesn't provide a target UMANPAGES="chattr.1 lsattr.1" \
# for this so we must do it ourselves. UPROGS="chattr lsattr"
rm -rf \
"$1/usr/bin/blkid" \ for p in \
"$1/usr/bin/uuidgen" \ debugfs \
"$1/usr/bin/findfs" \ e2fsck \
"$1/usr/share/man/man8/findfs.8" \ lib/e2p \
"$1/usr/share/man/man8/blkid.8" \ lib/et \
"$1/usr/share/man/man3/libblkid.3" \ lib/ext2fs \
"$1/usr/share/man/man3/"uuid* \ lib/ss \
"$1/usr/share/man/man1/uuidgen.1" \ misc \
"$1/usr/lib/pkgconfig/uuid.pc" \ resize \
"$1/usr/lib/pkgconfig/blkid.pc" \ scrub
"$1/usr/lib/libuuid.a" \ do
"$1/usr/lib/libblkid.a" \ make -C "$p" "$@" install
"$1/usr/include/blkid" \ done
"$1/usr/include/uuid"