lvm2: drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 04:57:41 +02:00
parent e26c9b26fe
commit 541bcf4066
2 changed files with 1 additions and 18 deletions

View File

@ -1,16 +0,0 @@
#!/sbin/runscript
#
# OpenRC service for LVM.
depend()
{
after *
}
start()
{
ebegin "Deactivating LVM volumes"
lvm vgchange --ignoremonitoring --ignorelockingfailure \
-an >/dev/null 2>&1
eend $?
}

View File

@ -1,6 +1,7 @@
# Template file for 'lvm2'
pkgname=lvm2
version=2.02.85
revision=1
wrksrc=LVM2.${version}
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
build_style=gnu_configure
@ -26,7 +27,6 @@ keep_empty_dirs=yes
subpackages="liblvm2app liblvm2app-devel device-mapper device-mapper-devel"
conf_files="/etc/lvm/lvm.conf"
triggers="initramfs-tools"
openrc_services="lvm2 shutdown true"
Add_dependency run glibc
Add_dependency run bash
@ -44,7 +44,6 @@ post_install()
install -m755 ${FILESDIR}/lvm2.initramfs-hook ${initramfsdir}/hooks/lvm2
install -m755 ${FILESDIR}/lvm2.initramfs-local-top \
${initramfsdir}/scripts/local-top/lvm2
install -m755 ${FILESDIR}/lvm2.rc ${DESTDIR}/etc/init.d/lvm2
rm -f ${DESTDIR}/lib/*.so ${DESTDIR}/usr/lib/*.so
cd ${DESTDIR}/usr/lib && \
ln -sf $(echo ../../lib/libdevmapper.so.*) libdevmapper.so