summaryrefslogtreecommitdiff
path: root/repo/util/llvm2/llvm2.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-18 23:40:38 +0100
committerdavidovski <david@davidovski.xyz>2022-05-18 23:40:38 +0100
commit0b977787374349328a21af0deade30d534cf3978 (patch)
tree3c2be28ef9a6f74a36f21cd48a34cb06b3080960 /repo/util/llvm2/llvm2.xibuild
parentdccab9b94dcfc5e040647210ba22b9cc4bddc742 (diff)
fixed gcc loader/linker errors
Diffstat (limited to 'repo/util/llvm2/llvm2.xibuild')
-rw-r--r--repo/util/llvm2/llvm2.xibuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/repo/util/llvm2/llvm2.xibuild b/repo/util/llvm2/llvm2.xibuild
new file mode 100644
index 0000000..cb364ec
--- /dev/null
+++ b/repo/util/llvm2/llvm2.xibuild
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+NAME="llvm2"
+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
+}
+
+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
+
+}