opt/lvm2/Pkgfile

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2009-06-27 16:22:14 +02:00
# Description: Userspace toolset for logical volume management
# URL: http://sourceware.org/lvm2/
# Maintainer: Juergen Daubert, jue at crux dot nu
2009-07-27 10:19:38 +02:00
# Depends on: libdevmapper
2009-06-27 16:22:14 +02:00
name=lvm2
2015-11-29 14:08:51 +01:00
version=2.02.136
release=2
2015-09-23 19:50:40 +02:00
source=(http://mirrors.kernel.org/sources.redhat.com/lvm2/releases/LVM2.$version.tgz)
2009-06-27 16:22:14 +02:00
build() {
cd LVM2.$version
2013-08-20 14:26:12 +02:00
# needed for static linking with eudev
export UDEV_LIBS="$(pkg-config --libs --static libudev)"
2013-11-15 14:34:47 +01:00
# needed for static linking
2015-09-07 10:38:41 +02:00
export LIBS="-lpthread -luuid -lm"
2013-11-15 14:34:47 +01:00
2009-06-27 16:22:14 +02:00
./configure --prefix=/usr \
2015-11-26 10:04:41 +01:00
--exec-prefix= \
--datarootdir=/usr \
--mandir=/usr/share/man \
--with-udev-prefix= \
--disable-readline \
--enable-pkgconfig \
--enable-static_link \
--enable-udev_sync \
--enable-udev_rules \
--with-{user,group}=root
2009-11-04 18:32:39 +01:00
make
2010-05-04 20:31:52 +02:00
make DESTDIR=$PKG install_lvm2
2009-07-27 10:19:38 +02:00
install -d -m 0700 $PKG/etc/lvm/{archive,backup,cache}
2009-06-27 16:22:14 +02:00
install -d -m 1777 $PKG/var/lock
install -d -m 0700 $PKG/var/lock/lvm
}