lvm2: move dm stuff to device-mapper pkg.

This commit is contained in:
Juan RP 2012-05-11 04:25:44 +02:00
parent 00998ebdee
commit 60004edc69
3 changed files with 12 additions and 7 deletions

View file

@ -5,8 +5,8 @@ long_desc="
This package contains the supporting userspace utility, dmsetup, This package contains the supporting userspace utility, dmsetup,
for the kernel device-mapper and its required library, libdevmapper." for the kernel device-mapper and its required library, libdevmapper."
replaces="lvm2-device-mapper>=0" replaces="lvm2<2.02.95_3"
revision=2 revision=3
do_install() { do_install() {
vmove "usr/sbin/dm*" usr/sbin vmove "usr/sbin/dm*" usr/sbin
@ -14,4 +14,9 @@ do_install() {
vmove "usr/lib/liblvm2cmd.so*" usr/lib vmove "usr/lib/liblvm2cmd.so*" usr/lib
vmove "usr/share/man/man8/dm*" usr/share/man/man8 vmove "usr/share/man/man8/dm*" usr/share/man/man8
vmove usr/lib/device-mapper usr/lib vmove usr/lib/device-mapper usr/lib
for f in 10-dm 13-dm-disk 95-dm-notify; do
vmove lib/udev/rules.d/${f}.rules 644 lib/udev/rules.d
done
vinstall ${FILESDIR}/11-dm-initramfs.rules 644 \
usr/share/initramfs-tools/udev-rules
} }

View file

@ -26,10 +26,11 @@ if [ -e /etc/lvm/lvm.conf ]; then
fi fi
mkdir -p ${DESTDIR}/lib/udev/rules.d mkdir -p ${DESTDIR}/lib/udev/rules.d
for f in 10-dm.rules 11-dm-initramfs.rules 11-dm-lvm.rules \ for f in 10-dm 11-dm-lvm 13-dm-disk 95-dm-notify; do
13-dm-disk.rules 95-dm-notify.rules; do cp /lib/udev/rules.d/${f}.rules ${DESTDIR}/lib/udev/rules.d
cp /lib/udev/rules.d/${f} ${DESTDIR}/lib/udev/rules.d
done done
cp /usr/share/initramfs-tools/udev-rules/11-dm-initramfs.rules \
${DESTDIR}/lib/udev/rules.d
copy_exec /usr/sbin/dmsetup /sbin copy_exec /usr/sbin/dmsetup /sbin
copy_exec /usr/sbin/lvm /sbin copy_exec /usr/sbin/lvm /sbin

View file

@ -1,7 +1,7 @@
# Template file for 'lvm2' # Template file for 'lvm2'
pkgname=lvm2 pkgname=lvm2
version=2.02.95 version=2.02.95
revision=2 revision=3
wrksrc=LVM2.${version} wrksrc=LVM2.${version}
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz" distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
build_style=gnu-configure build_style=gnu-configure
@ -43,5 +43,4 @@ post_install() {
${initramfsdir}/hooks lvm2 ${initramfsdir}/hooks lvm2
vinstall ${FILESDIR}/lvm2.initramfs-local-top 755 \ vinstall ${FILESDIR}/lvm2.initramfs-local-top 755 \
${initramfsdir}/scripts/local-top lvm2 ${initramfsdir}/scripts/local-top lvm2
vinstall ${FILESDIR}/11-dm-initramfs.rules 644 lib/udev/rules.d
} }