2019-06-21 05:55:39 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-02-08 20:14:02 +00:00
|
|
|
export LDFLAGS="$LDFLAGS -static"
|
|
|
|
|
2019-06-21 05:55:39 +00:00
|
|
|
./configure \
|
2019-07-07 01:28:15 +00:00
|
|
|
--prefix=/usr \
|
2019-07-17 13:40:01 +00:00
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--sysconfdir=/etc \
|
2019-06-21 05:55:39 +00:00
|
|
|
--enable-symlink-install \
|
2020-02-08 20:14:02 +00:00
|
|
|
--enable-libuuid \
|
|
|
|
--enable-libblkid \
|
2019-06-21 06:37:23 +00:00
|
|
|
--disable-uuidd \
|
2020-02-08 20:14:02 +00:00
|
|
|
--disable-fsck \
|
|
|
|
--disable-elf-shlibs
|
2019-06-21 05:55:39 +00:00
|
|
|
|
2019-06-21 06:26:07 +00:00
|
|
|
# MKDIR_P fixes an install issue on musl/busybox.
|
2019-06-21 05:55:39 +00:00
|
|
|
make
|
2020-02-08 20:14:02 +00:00
|
|
|
make MKDIR_P="install -d" DESTDIR="$1" install-progs-recursive
|
2019-06-21 05:55:39 +00:00
|
|
|
|
2020-02-08 20:14:02 +00:00
|
|
|
# Remove utilities which conflict with util-linux.
|
|
|
|
rm -f "$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/man1/uuidgen.1"
|