# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.88.ebuild,v 1.14 2012/11/28 10:55:33 ssuominen Exp $ EAPI=3 inherit eutils multilib toolchain-funcs autotools linux-info DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." HOMEPAGE="http://sources.redhat.com/lvm2/" SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz ftp://sources.redhat.com/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-linux" IUSE="readline +static +static-libs clvm cman +lvm1 selinux" DEPEND_COMMON="!!sys-fs/device-mapper readline? ( sys-libs/readline ) clvm? ( =sys-cluster/dlm-2* cman? ( =sys-cluster/cman-2* ) ) virtual/udev" RDEPEND="${DEPEND_COMMON} !=sys-apps/util-linux-2.16" # Upgrading to this LVM will break older cryptsetup RDEPEND="${RDEPEND} ! /libXX link sed -e "s-/lib/rcscripts/-/$(get_libdir)/rcscripts/-" -i "${ED}"/etc/init.d/* elog "USE flag nocman is deprecated and replaced" elog "with the cman USE flag." elog "" elog "USE flags clvm and cman are masked" elog "by default and need to be unmasked to be used" elog "" elog "If you are using genkernel and root-on-LVM, rebuild the initramfs." } pkg_postinst() { elog "lvm volumes are no longer automatically created for" elog "baselayout-2 users. If you are using baselayout-2, be sure to" elog "run: # rc-update add lvm boot" elog "Do NOT add it if you are still using baselayout-1." } src_test() { einfo "Testcases disabled because of device-node mucking" einfo "If you want them, compile the package and see ${S}/tests" }