diff options
author | davidovski <david@davidovski.xyz> | 2022-05-22 17:47:09 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-22 17:47:09 +0100 |
commit | 79062a39e9bcb9731adbacd0bd9bcd0b59d19d0a (patch) | |
tree | f67d3b58f0c4387e7248967c491442afcee0cd06 /repo/util/lvm2/lvm2.xibuild | |
parent | 2f6c333a5bcef47d9fee59f180fa827cb24290d4 (diff) |
fixes to allow for full build
Diffstat (limited to 'repo/util/lvm2/lvm2.xibuild')
-rw-r--r-- | repo/util/lvm2/lvm2.xibuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/repo/util/lvm2/lvm2.xibuild b/repo/util/lvm2/lvm2.xibuild new file mode 100644 index 0000000..eff7a0f --- /dev/null +++ b/repo/util/lvm2/lvm2.xibuild @@ -0,0 +1,48 @@ +#!/bin/sh + +NAME="lvm2" +DESC="Logical Volume Manager 2 utilities" + +MAKEDEPS="make " +DEPS="libaio util-linux musl device-mapper" + +PKG_VER=2.02.187 +SOURCE="https://mirrors.kernel.org/sourceware/lvm2/LVM2.$PKG_VER.tgz" +ADDITIONAL="mlockall-default-config.patch mallinfo.patch lvm.initd lvm.confd fix-stdio-usage.patch dmeventd.initd " + +prepare () { + apply_patches + autoreconf -fi +} + +build () { + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static \ + --enable-static_link \ + --disable-nls \ + --disable-readline \ + --enable-pkgconfig \ + --enable-applib \ + --with-thin=internal \ + --enable-dmeventd \ + --enable-cmdlib \ + --with-thin-check=/sbin/thin_check \ + --with-thin-dump=/sbin/thin_dump \ + --with-thin-repair=/sbin/thin_repair \ + --with-dmeventd-path=/sbin/dmeventd \ + --enable-udev_rules + + make +} + +package () { + make DESTDIR="$PKG_DEST" install + install -d "$PKG_DEST"/etc/lvm/archive "$PKG_DEST"/etc/lvm/backup + install -Dm755 lvm.initd "$PKG_DEST"/etc/init.d/lvm + install -Dm644 lvm.confd "$PKG_DEST"/etc/conf.d/lvm + ln -s libdevmapper.so.1.02 "$PKG_DEST"/lib/libdevmapper.so + +} |