2009-05-14 01:10:47 +02:00
|
|
|
# Template file for 'lvm2'
|
|
|
|
pkgname=lvm2
|
2009-10-03 10:58:22 +02:00
|
|
|
version=2.02.53
|
2009-10-06 18:02:51 +02:00
|
|
|
revision=1
|
2009-05-14 01:10:47 +02:00
|
|
|
wrksrc=LVM2.${version}
|
|
|
|
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
|
|
|
|
build_style=gnu_configure
|
2009-10-06 18:02:51 +02:00
|
|
|
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
|
|
|
--enable-pkgconfig --enable-fsadm"
|
2009-10-03 10:58:22 +02:00
|
|
|
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin
|
|
|
|
libdir=$XBPS_DESTDIR/$pkgname-$version/lib
|
|
|
|
install_device-mapper install_lvm2"
|
|
|
|
short_desc="Logical Volume Manager 2 utilities"
|
2009-05-14 01:10:47 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-10-03 10:58:22 +02:00
|
|
|
checksum=f0f2122e46d7e46dd826b96752485e5ed08fa4b5b252c6f6db0b61a10da5e31e
|
2009-05-14 01:10:47 +02:00
|
|
|
long_desc="
|
|
|
|
LVM2 includes all of the support for handling read/write operations on
|
|
|
|
physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
|
|
|
|
multiple devices (MD), see mdadd(8) or even loop devices, see
|
|
|
|
losetup(8)), creating volume groups (kind of virtual disks) from one
|
|
|
|
or more physical volumes and creating one or more logical volumes
|
|
|
|
(kind of logical partitions) in volume groups."
|
|
|
|
|
|
|
|
disable_parallel_build=yes
|
2009-10-03 10:58:22 +02:00
|
|
|
subpackages="device-mapper"
|
2009-05-14 01:10:47 +02:00
|
|
|
conf_files="/etc/lvm/lvm.conf"
|
2009-10-03 10:58:22 +02:00
|
|
|
triggers="initramfs-tools"
|
2009-10-06 18:02:51 +02:00
|
|
|
openrc_services="lvm2 shutdown"
|
2009-05-14 01:10:47 +02:00
|
|
|
|
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency full bash
|
|
|
|
Add_dependency full readline
|
2009-10-03 10:58:22 +02:00
|
|
|
Add_dependency run lvm2-device-mapper ${version}
|
2009-05-14 01:10:47 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-10-03 10:58:22 +02:00
|
|
|
local initramfsdir=${DESTDIR}/usr/share/initramfs-tools
|
2009-05-14 01:10:47 +02:00
|
|
|
|
2009-10-03 10:58:22 +02:00
|
|
|
install -d ${DESTDIR}/etc/lvm/archive ${DESTDIR}/etc/lvm/backup \
|
|
|
|
${DESTDIR}/etc/init.d ${initramfsdir}/scripts/local-top \
|
|
|
|
${initramfsdir}/hooks
|
|
|
|
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
|
2009-05-14 01:10:47 +02:00
|
|
|
}
|