opt/lvm2/Pkgfile
Michal Soltys 706b21c2c4 opt/lvm2: update to use udev
This delegates node creation to udev. Among other things, the
important advantage of this approach is population of all the related
stuff in /dev/disk/by-* ; relying on udev can also be controlled
through lvm.conf and some commands' options.

Comments related to this version:

- another minor patch for static build scenario had to be applied;
  hopefully it will be fixed in upstream one day

- configure is now consistent with libdevmapper (they can be trivially
  merged into single package now)

- if you ran vgchange initially without udevd active (e.g. in
  initramfs), you will likely need vgchange --refresh (vgmknodes
  --refresh could work too, not tested though); this is important if you
  expect /dev/disk/by-* to be filled with lvm stuff after handover from
  udevless initramfs (fstab, mount, etc.).

Signed-off-by: Michal Soltys <soltys@ziu.info>
2011-03-16 09:38:02 +01:00

37 lines
894 B
Plaintext

# Description: Userspace toolset for logical volume management
# URL: http://sourceware.org/lvm2/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libdevmapper
name=lvm2
version=2.02.84
release=2
source=(ftp://sources.redhat.com/pub/lvm2/releases/LVM2.$version.tgz
lvm2-static_udev_rt.patch
lvm2-static_build.patch)
build() {
cd LVM2.$version
patch -p1 -i $SRC/lvm2-static_build.patch
patch -p1 -i $SRC/lvm2-static_udev_rt.patch
./configure --prefix=/usr \
--exec-prefix= \
--datarootdir=/usr \
--with-udev-prefix= \
--disable-readline \
--enable-pkgconfig \
--enable-static_link \
--enable-udev_sync \
--enable-udev_rules \
--with-{user,group}=root
make
make DESTDIR=$PKG install_lvm2
install -d -m 0700 $PKG/etc/lvm/{archive,backup}
install -d -m 1777 $PKG/var/lock
install -d -m 0700 $PKG/var/lock/lvm
}