summaryrefslogtreecommitdiff
path: root/strata/core/e2fsprogs.morph
blob: 6f32ad385401fc21a7c495de001ab6eedf8a36f3 (plain)
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
name: e2fsprogs
kind: chunk
build-system: autotools
configure-commands:
# Configure with the usual paths for binaries and config
# but also disable whatever we can that is already provided by util-linux
# Disabling e2fsprofs' libblkid does not work, but we don't have to
# install it.
- |
  ./configure --prefix="$PREFIX" --sysconfdir=/etc \
    --disable-libuuid --disable-uuidd --disable-libblkid
build-commands:
# Without this, the static archive libcom_err is generated without
# position independant code; later when samba tries to create a shared
# library linking to this archive, we get errors.
- make CFLAGS="-g -O2 -DHAVE_CONFIG_H -fPIC"
install-commands:
# e2fsprogs also includes tools that are provided by util-linux, so we
# need to selectively exclude them.  Removing them directly from DESTDIR
# causes problems, so we need to remove them beforehand.
- |
  td="$(mktemp -d)"
  make DESTDIR="$td" install
  make DESTDIR="$td" install-libs
  find "$td" \( -name blkid -o -name findfs -o \) -delete
  find "$td" \( -name blkid.8 -o -name findfs.8 \) -delete
  mv "$td"/* "$DESTDIR"