summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-11-02 16:13:41 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-11-02 16:13:41 +0000
commita1e3816ecfcfaf3ff8c346126b39f97da96ee2d6 (patch)
treecfa95ef3f3f85b720bb51156f91b6f0a19338ea0 /sys-fs/dmraid
parentRemoved old ebuild. (diff)
downloadgentoo-2-a1e3816ecfcfaf3ff8c346126b39f97da96ee2d6.tar.gz
gentoo-2-a1e3816ecfcfaf3ff8c346126b39f97da96ee2d6.tar.bz2
gentoo-2-a1e3816ecfcfaf3ff8c346126b39f97da96ee2d6.zip
version bump
(Portage version: 2.1.2_rc1-r2)
Diffstat (limited to 'sys-fs/dmraid')
-rw-r--r--sys-fs/dmraid/ChangeLog8
-rw-r--r--sys-fs/dmraid/dmraid-1.0.0_rc13.ebuild78
-rw-r--r--sys-fs/dmraid/files/digest-dmraid-1.0.0_rc133
3 files changed, 88 insertions, 1 deletions
diff --git a/sys-fs/dmraid/ChangeLog b/sys-fs/dmraid/ChangeLog
index 57848f777b1a..aaf46ac14955 100644
--- a/sys-fs/dmraid/ChangeLog
+++ b/sys-fs/dmraid/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-fs/dmraid
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/ChangeLog,v 1.7 2006/09/04 15:22:40 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/ChangeLog,v 1.8 2006/11/02 16:13:41 genstef Exp $
+
+*dmraid-1.0.0_rc13 (02 Nov 2006)
+
+ 02 Nov 2006; Stefan Schweizer <genstef@gentoo.org>
+ -dmraid-1.0.0_rc12.ebuild, +dmraid-1.0.0_rc13.ebuild:
+ version bump
04 Sep 2006; Stefan Schweizer <genstef@gentoo.org>
+files/dmraid-destdir-fix.patch, -files/dmraid-manpage-destdir.patch,
diff --git a/sys-fs/dmraid/dmraid-1.0.0_rc13.ebuild b/sys-fs/dmraid/dmraid-1.0.0_rc13.ebuild
new file mode 100644
index 000000000000..fd397842f5d4
--- /dev/null
+++ b/sys-fs/dmraid/dmraid-1.0.0_rc13.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2006 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_rc13.ebuild,v 1.1 2006/11/02 16:13:41 genstef Exp $
+
+inherit linux-info flag-o-matic
+
+MY_PV=${PV/_/.}
+MY_P=${PN}-${MY_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/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~x86 ~amd64"
+IUSE="static selinux"
+
+DEPEND="sys-fs/device-mapper
+ selinux? ( sys-libs/libselinux
+ sys-libs/libsepol )"
+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_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/dmraid-destdir-fix.patch
+}
+
+src_compile() {
+ #inlining doesnt seem to work for dmraid
+ filter-flags -fno-inline
+
+ econf $(use_enable static static_link) \
+ $(use_enable selinux libselinux) \
+ $(use_enable selinux libsepol) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake install failed"
+
+ # Put the distfile into /usr/share/genkernel/pkg for genkernel
+ # in case the user wants to uuse this instead of genkernel's internal version
+ dodir /usr/share/genkernel/pkg
+ cp ${DISTDIR}/${A} ${D}/usr/share/genkernel/pkg/${A}
+
+ dodoc CHANGELOG README TODO KNOWN_BUGS doc/*
+}
+
+pkg_postinst() {
+ einfo "For booting Gentoo from Device-Mapper RAID you can use Genkernel."
+ einfo " "
+ einfo "Genkernel will generate the kernel and the initrd with a statically "
+ einfo "linked dmraid binary (its own version - not this version):"
+ einfo "emerge -av sys-kernel/genkernel"
+ einfo "genkernel --dmraid --udev all"
+ einfo " "
+ einfo "If you would rather use this version of DMRAID with Genkernel, update"
+ einfo "the following in /etc/genkernel.conf:"
+ einfo "DMRAID_VER=\"${MY_PV/_/.}\""
+ einfo "DMRAID_SRCTAR=\"\${GK_SHARE}/pkg/${A}\""
+ ewarn " "
+ ewarn "DMRAID should be safe to use, but no warranties can be given"
+ ewarn " "
+}
diff --git a/sys-fs/dmraid/files/digest-dmraid-1.0.0_rc13 b/sys-fs/dmraid/files/digest-dmraid-1.0.0_rc13
new file mode 100644
index 000000000000..35319bac03b5
--- /dev/null
+++ b/sys-fs/dmraid/files/digest-dmraid-1.0.0_rc13
@@ -0,0 +1,3 @@
+MD5 a2a8948de7717e2e76a1291fc1daf9d1 dmraid-1.0.0.rc13.tar.bz2 170497
+RMD160 9b95d68c2177c3bb7c74227c375780d3b4936ef7 dmraid-1.0.0.rc13.tar.bz2 170497
+SHA256 8497196528d50203053de0f733917b1d85aae416d2136c695a07aee5632b12b9 dmraid-1.0.0.rc13.tar.bz2 170497