blob: eff7a0f277f3d8e4892981768134b61edc654763 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
}
|