From 860b090f6db6803cb58d83083b7bad637f8a2d8e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 14 May 2009 01:10:47 +0200 Subject: [PATCH] Added lvm2-2.02.45 template. --HG-- extra : convert_revision : 4f65768f3f92071c379482ae31651f20f94a5142 --- templates/lvm2/template | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/lvm2/template diff --git a/templates/lvm2/template b/templates/lvm2/template new file mode 100644 index 00000000000..1d0dd9d8b4d --- /dev/null +++ b/templates/lvm2/template @@ -0,0 +1,37 @@ +# Template file for 'lvm2' +pkgname=lvm2 +version=2.02.45 +wrksrc=LVM2.${version} +distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz" +build_style=gnu_configure +configure_args="--exec-prefix= --disable-selinux" +make_install_args="sbindir=${XBPS_DESTDIR}/$pkgname-$version/sbin + libdir=$XBPS_DESTDIR/$pkgname-$version/lib" +short_desc="Userland logical volume management tools" +maintainer="Juan RP " +checksum=2ad7490f5747ea8547ddfbf89256549fcdcffb990df2f3cbdea84d985887ecb8 +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 + +conf_files="/etc/lvm/lvm.conf" + +Add_dependency full glibc +Add_dependency full bash +Add_dependency full readline +Add_dependency full device-mapper + +post_install() +{ + install -d ${DESTDIR}/etc/lvm/archive ${DESTDIR}/etc/lvm/backup + + # Remove files provided by device-mapper. + rm -rf ${DESTDIR}/usr/include ${DESTDIR}/lib + rm -f ${DESTDIR}/sbin/dmsetup +}