2009-05-13 23:10:47 +00:00
|
|
|
# Template file for 'lvm2'
|
|
|
|
pkgname=lvm2
|
2010-04-10 08:52:54 +00:00
|
|
|
version=2.02.62
|
2010-04-16 20:09:33 +00:00
|
|
|
revision=1
|
2009-05-13 23:10:47 +00:00
|
|
|
wrksrc=LVM2.${version}
|
|
|
|
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
|
|
|
|
build_style=gnu_configure
|
2009-10-06 16:02:51 +00:00
|
|
|
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
2010-04-13 14:10:05 +00:00
|
|
|
--enable-fsadm --enable-applib"
|
2009-10-03 08:58:22 +00:00
|
|
|
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin
|
2010-04-13 14:10:05 +00:00
|
|
|
libdir=$XBPS_DESTDIR/$pkgname-$version/lib install"
|
2009-10-03 08:58:22 +00:00
|
|
|
short_desc="Logical Volume Manager 2 utilities"
|
2009-05-13 23:10:47 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-04-10 08:52:54 +00:00
|
|
|
checksum=8c304aaa5560b8232a3ef58eebc23860db74349fbeda440417e02cde01f93a9e
|
2009-05-13 23:10:47 +00: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."
|
|
|
|
|
2009-10-17 01:12:48 +00:00
|
|
|
keep_empty_dirs=yes
|
2010-04-13 14:10:05 +00:00
|
|
|
subpackages="liblvm2app liblvm2app-devel device-mapper device-mapper-devel"
|
2009-05-13 23:10:47 +00:00
|
|
|
conf_files="/etc/lvm/lvm.conf"
|
2009-10-03 08:58:22 +00:00
|
|
|
triggers="initramfs-tools"
|
2010-04-16 20:09:33 +00:00
|
|
|
openrc_services="lvm2 shutdown true"
|
2009-05-13 23:10:47 +00:00
|
|
|
|
2010-01-07 20:22:41 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run bash
|
|
|
|
Add_dependency run readline
|
2010-01-10 15:33:17 +00:00
|
|
|
Add_dependency run ncurses-libs
|
2010-01-07 20:22:41 +00:00
|
|
|
Add_dependency run device-mapper
|
|
|
|
Add_dependency build readline-devel
|
|
|
|
Add_dependency build ncurses-devel
|
2009-05-13 23:10:47 +00:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-10-03 08:58:22 +00:00
|
|
|
local initramfsdir=${DESTDIR}/usr/share/initramfs-tools
|
2009-05-13 23:10:47 +00:00
|
|
|
|
2009-10-03 08:58:22 +00: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
|
2010-01-25 16:11:56 +00: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 14:10:05 +00:00
|
|
|
cd ${DESTDIR}/usr/lib && \
|
|
|
|
ln -sf $(echo ../../lib/liblvm2app.so.*) liblvm2app.so
|
2009-05-13 23:10:47 +00:00
|
|
|
}
|