diff options
author | Thomas Sachau <tommy@gentoo.org> | 2009-09-18 14:49:13 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2009-09-18 14:49:13 +0000 |
commit | 4ad8a0d56b45439091712c6f7fae956c00433055 (patch) | |
tree | 33dfbe345effecec742e23cd8acf5aaf6cb8611a /sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild | |
parent | Remove old version using built_with_use. (diff) | |
download | gentoo-2-4ad8a0d56b45439091712c6f7fae956c00433055.tar.gz gentoo-2-4ad8a0d56b45439091712c6f7fae956c00433055.tar.bz2 gentoo-2-4ad8a0d56b45439091712c6f7fae956c00433055.zip |
Version bump (bug #285241), also change metadata.xml, i take over proxy-maintainership since genstef is away
(Portage version: 2.2_rc40-r1/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild')
-rw-r--r-- | sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild b/sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild new file mode 100644 index 000000000000..45f4d4a7a074 --- /dev/null +++ b/sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/dmraid-1.0.0_rc16.ebuild,v 1.1 2009/09/18 14:49:12 tommy Exp $ + +EAPI="2" + +inherit linux-info flag-o-matic + +MY_PV=${PV/_/.} + +DESCRIPTION="Device-mapper RAID tool and library" +HOMEPAGE="http://people.redhat.com/~heinzm/sw/dmraid/" +SRC_URI="http://people.redhat.com/~heinzm/sw/dmraid/src/${PN}-${MY_PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="static selinux" + +RDEPEND="|| ( >=sys-fs/lvm2-2.02.45 + sys-fs/device-mapper ) + selinux? ( sys-libs/libselinux + sys-libs/libsepol )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN}/${MY_PV} + +pkg_setup() { + if kernel_is lt 2 6 ; then + ewarn "You are using a kernel < 2.6" + ewarn "DMraid uses recently introduced Device-Mapper features." + ewarn "These might be unavailable in the kernel you are running now." + fi + if use static && use selinux ; then + eerror "ERROR - cannot compile static with libselinux / libsepol" + die "USE flag conflicts." + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-undo-p-rename.patch \ + "${FILESDIR}"/${PN}-destdir-fix.patch \ + "${FILESDIR}"/${P}-as-needed.patch + + # archive the patched source for use with genkernel + cd "${WORKDIR}" + tar -jcf ${PN}-${MY_PV}-prepatched.tar.bz2 ${PN} || die +} + +src_configure() { + econf \ + $(use_enable static static_link) \ + $(use_enable selinux libselinux) \ + $(use_enable selinux libsepol) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGELOG README TODO KNOWN_BUGS doc/* || die "dodoc failed" + insinto /usr/share/${PN} + doins "${WORKDIR}"/${PN}-${MY_PV}-prepatched.tar.bz2 || die +} + +pkg_postinst() { + elog "For booting Gentoo from Device-Mapper RAID you can use Genkernel." + elog " " + elog "Genkernel will generate the kernel and the initrd with a statically " + elog "linked dmraid binary (its own version which may not be the same as this version):" + elog "\t emerge -av sys-kernel/genkernel" + elog "\t genkernel --dmraid all" + elog " " + elog "If you would rather use this version of DMRAID with Genkernel, update the following" + elog "in /etc/genkernel.conf:" + elog "\t DMRAID_VER=\"${MY_PV}\"" + elog "\t DMRAID_SRCTAR=\"/usr/share/${PN}/${PN}-${MY_PV}-prepatched.tar.bz2\"" + elog " " + ewarn "DMRAID should be safe to use, but no warranties can be given" +} |