kind: autotools
depends:
- foundation.bst
sources:
- kind: git
  url: upstream:lvm2
  track: v2_02_115
  ref: fa01faaa4aa96de834ba7e8fbb9d9aff908571c3
config:
  configure-commands:
  - |
    ./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="%{install-root}" install
  - make DESTDIR="%{install-root}" install_system_dirs
  - make DESTDIR="%{install-root}" install_systemd_generators
  - make DESTDIR="%{install-root}" install_systemd_units
  - make DESTDIR="%{install-root}" install_tmpfiles_configuration
  - sed -e 's/use_lvmetad = 0/use_lvmetad = 1/' -i "%{install-root}"/etc/lvm/lvm.conf
