summaryrefslogtreecommitdiff
path: root/unmaintained/strata/lvm/lvm2.morph
blob: d9633bb9b095435bce634269a5db305988c7dd85 (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
28
29
30
31
32
name: lvm2
kind: chunk
build-system: autotools

configure-commands:
# We specify --sbindir explicitly due to a bug in .service file generation:
# if left to the default, @sbindir@ is expanded to the literal string
# '${exec_prefix}/sbin' in the generated .service files.
#
# udev rules *must* go in wherever Systemd is configured to look at. We don't expect
# Systemd to change anymore.
- |
  ./configure --prefix="$PREFIX" \
    --sbindir="$PREFIX"/sbin \
    --with-udev-prefix="$PREFIX" \
    --with-systemdsystemunitdir="$PREFIX"/lib/systemd/system \
    --enable-applib --enable-cmdlib --enable-pkgconfig --enable-lvmetad \
    --enable-dmeventd --enable-udev_sync

install-commands:
- make DESTDIR="$DESTDIR" install
- make DESTDIR="$DESTDIR" install_system_dirs
- make DESTDIR="$DESTDIR" install_systemd_generators
- make DESTDIR="$DESTDIR" install_systemd_units
- make DESTDIR="$DESTDIR" install_tmpfiles_configuration

# Use lvmetad by default. This means we don't have to use the
# `lvm2-activation-generator` systemd generator, which is a good thing
# because I have seen it cause systems to completely fail to boot. Fedora
# does something similar, see:
# http://pkgs.fedoraproject.org/cgit/lvm2.git/tree/lvm2-enable-lvmetad-by-default.patch
- sed -e 's/use_lvmetad = 0/use_lvmetad = 1/' -i "$DESTDIR"/etc/lvm/lvm.conf