2019-06-20 23:55:39 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-02-08 13:14:02 -07:00
|
|
|
export LDFLAGS="$LDFLAGS -static"
|
|
|
|
|
2019-06-20 23:55:39 -06:00
|
|
|
./configure \
|
2019-07-06 19:28:15 -06:00
|
|
|
--prefix=/usr \
|
2019-07-17 07:40:01 -06:00
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--sysconfdir=/etc \
|
2019-06-20 23:55:39 -06:00
|
|
|
--enable-symlink-install \
|
2020-02-08 13:14:02 -07:00
|
|
|
--enable-libuuid \
|
|
|
|
--enable-libblkid \
|
2020-02-18 11:18:35 -07:00
|
|
|
--disable-nls \
|
2019-06-21 00:37:23 -06:00
|
|
|
--disable-uuidd \
|
2020-02-08 13:14:02 -07:00
|
|
|
--disable-fsck \
|
|
|
|
--disable-elf-shlibs
|
2019-06-20 23:55:39 -06:00
|
|
|
|
2019-06-21 00:26:07 -06:00
|
|
|
# MKDIR_P fixes an install issue on musl/busybox.
|
2019-06-20 23:55:39 -06:00
|
|
|
make
|
2020-02-18 11:18:35 -07:00
|
|
|
make MKDIR_P="install -d" DESTDIR="$1" install
|
2019-06-20 23:55:39 -06:00
|
|
|
|
2020-02-18 11:18:35 -07:00
|
|
|
# Our e2fsprogs build uses the private libblkid
|
|
|
|
# and libuuid libraries which ship with it.
|
|
|
|
#
|
|
|
|
# It is then built statically which allows us to
|
|
|
|
# remove the libraries entirely.
|
|
|
|
#
|
|
|
|
# This is all done to remove the util-linux
|
|
|
|
# dependency from this package.
|
|
|
|
#
|
|
|
|
# The build system doesn't provide a target
|
|
|
|
# for this so we must do it ourselves.
|
|
|
|
rm -rf \
|
|
|
|
"$1/usr/bin/blkid" \
|
|
|
|
"$1/usr/bin/uuidgen" \
|
|
|
|
"$1/usr/bin/findfs" \
|
|
|
|
"$1/usr/share/man/man8/findfs.8" \
|
|
|
|
"$1/usr/share/man/man8/blkid.8" \
|
|
|
|
"$1/usr/share/man/man3/libblkid.3" \
|
|
|
|
"$1/usr/share/man/man3/"uuid* \
|
|
|
|
"$1/usr/share/man/man1/uuidgen.1" \
|
|
|
|
"$1/usr/lib/pkgconfig/uuid.pc" \
|
|
|
|
"$1/usr/lib/pkgconfig/blkid.pc" \
|
|
|
|
"$1/usr/lib/libuuid.a" \
|
|
|
|
"$1/usr/lib/libblkid.a" \
|
|
|
|
"$1/usr/include/blkid" \
|
|
|
|
"$1/usr/include/uuid"
|