-
Notifications
You must be signed in to change notification settings - Fork 8
/
build-e2fsprogs.sh
executable file
·40 lines (35 loc) · 1.09 KB
/
build-e2fsprogs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash -e
#
# Copyright 2016-2019 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# e2fsprogs provides libuuid library which is usually provided by util-linux.
# But util-linux is linux-specific so that libuuid should better be provided by
# e2fsprogs
#
# The other thing is that it also provides blkid utility and its usage is not
# compatible with the one provided by util-linux
#
PKG_NAME=e2fsprogs
PKG_VERSION=1.45.3
PKG_SOURCE="$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_SOURCE_URL="https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v$PKG_VERSION/$PKG_SOURCE"
PKG_SOURCE_MD5SUM=9bbf7ce425dfe58d3d54f1bb679aaf07
. "$PWD/env.sh"
CONFIGURE_ARGS+=(
--with-crond-dir="$INSTALL_PREFIX/etc/cron.d"
--with-systemd-unit-dir="$INSTALL_PREFIX/lib/systemd/system"
--with-udev-rules-dir="$INSTALL_PREFIX/lib/udev/rules.d"
)
configure_static_build() {
configure_static_build_default
CONFIGURE_ARGS+=( --disable-elf-shlibs)
}
configure_static_build_off() {
CONFIGURE_ARGS+=( --enable-elf-shlibs)
}
MAKE_VARS+=(
V=s
)