diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 10:01:07 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 10:01:07 +0000 |
commit | f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb (patch) | |
tree | 7c4d5b1aa87b991fecb0b2c585514069947c3f0a /old/strata/core/e2fsprogs.morph | |
parent | deba555368fd21316025c5ee0eaaf517b938775e (diff) | |
download | definitions-f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb.tar.gz |
Move old Baserock format definitions into old/ directory
Diffstat (limited to 'old/strata/core/e2fsprogs.morph')
-rw-r--r-- | old/strata/core/e2fsprogs.morph | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/old/strata/core/e2fsprogs.morph b/old/strata/core/e2fsprogs.morph new file mode 100644 index 00000000..6f32ad38 --- /dev/null +++ b/old/strata/core/e2fsprogs.morph @@ -0,0 +1,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" |