2009-05-14 01:10:47 +02:00
|
|
|
# Template file for 'lvm2'
|
|
|
|
pkgname=lvm2
|
2011-05-31 16:39:30 +02:00
|
|
|
version=2.02.85
|
2011-11-09 19:27:11 +01:00
|
|
|
revision=2
|
2009-05-14 01:10:47 +02:00
|
|
|
wrksrc=LVM2.${version}
|
|
|
|
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-10-06 18:02:51 +02:00
|
|
|
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
2010-04-13 16:10:05 +02:00
|
|
|
--enable-fsadm --enable-applib"
|
2009-10-03 10:58:22 +02:00
|
|
|
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin
|
2010-04-13 16:10:05 +02:00
|
|
|
libdir=$XBPS_DESTDIR/$pkgname-$version/lib install"
|
2009-10-03 10:58:22 +02:00
|
|
|
short_desc="Logical Volume Manager 2 utilities"
|
2009-05-14 01:10:47 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-31 16:39:30 +02:00
|
|
|
homepage="http://sourceware.org/lvm2/"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
checksum=e5c2b0d76e7b1df7630e211734eb09697d66ab879b17eb19545cb77272813eb7
|
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."
|
|
|
|
|
2010-04-13 16:10:05 +02:00
|
|
|
subpackages="liblvm2app liblvm2app-devel device-mapper device-mapper-devel"
|
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-05-14 01:10:47 +02:00
|
|
|
|
2010-01-07 21:22:41 +01:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run bash
|
|
|
|
Add_dependency run readline
|
|
|
|
Add_dependency run device-mapper
|
|
|
|
Add_dependency build readline-devel
|
2009-05-14 01:10:47 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-11-09 19:27:11 +01:00
|
|
|
local initramfsdir=usr/share/initramfs-tools
|
2009-05-14 01:10:47 +02:00
|
|
|
|
2011-11-09 19:27:11 +01:00
|
|
|
vmkdir etc/lvm/archive
|
|
|
|
touch ${DESTDIR}/etc/lvm/archive/.owned
|
|
|
|
vmkdir etc/lvm/backup
|
|
|
|
touch ${DESTDIR}/etc/lvm/backup/.owned
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/lvm2.initramfs-hook 755 \
|
|
|
|
${initramfsdir}/hooks lvm2
|
|
|
|
vinstall ${FILESDIR}/lvm2.initramfs-local-top 755 \
|
|
|
|
${initramfsdir}/scripts/local-top lvm2
|
2010-01-25 17:11:56 +01:00
|
|
|
rm -f ${DESTDIR}/lib/*.so ${DESTDIR}/usr/lib/*.so
|
|
|
|
cd ${DESTDIR}/usr/lib && \
|
|
|
|
ln -sf $(echo ../../lib/libdevmapper.so.*) libdevmapper.so
|
2010-04-13 16:10:05 +02:00
|
|
|
cd ${DESTDIR}/usr/lib && \
|
|
|
|
ln -sf $(echo ../../lib/liblvm2app.so.*) liblvm2app.so
|
2010-04-22 15:45:43 +02:00
|
|
|
chmod 755 ${DESTDIR}/lib/*.so* ${DESTDIR}/sbin/*
|
2009-05-14 01:10:47 +02:00
|
|
|
}
|