# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: dmraid-1.0.0_rc3.ebuild,v 1.0 2004/09/06 20:00:00 assl0r Exp $ inherit flag-o-matic IUSE="" DESCRIPTION="dmraid (Device-mapper RAID tool and library)" SRC_URI="http://people.redhat.com/~heinzm/sw/dmraid/src/${P/_/.}.tar.bz2" HOMEPAGE="http://people.redhat.com/~heinzm/" LICENSE="GPL-1" DEPEND=">=sys-fs/device-mapper-1.00.17-r1" RDEPEND=${DEPEND} SLOT=0 KEYWORDS="x86 amd64" pkg_setup() { if [ ! `echo ${KV} | grep 2\.[56]\.` ]; then eerror "You are using kernel version ${KV}" eerror "This makes only sense for the 2.6.* kernel-branch" eerror "so stopping the merge!" die fi } src_compile() { #inlining doesnt seem to work for dmraid ewarn "******************************************" ewarn "* dmraid does not support -fno-inlining *" ewarn "* so removing the flag! *" ewarn "******************************************" filter-flags -fno-inline cd ${WORKDIR}/dmraid/${PV/_/.} econf || die "can not configure" make -s || die "make failed" } src_install () { #make install doesnt work! cd ${WORKDIR}/dmraid/${PV/_/.} dosbin tools/dmraid dolib.a lib/*.a #dolib.so lib/*.so dodoc CHANGELOG README TODO KNOWN_BUGS doc/* doman man/*.8 } pkg_postinst() { ewarn "*******************************************************************" ewarn "This is Alpha software and it can destroy your data!" ewarn "So please take backups and start accessing your data in dmraid" ewarn "activated ATARAID sets READ-ONLY first before you try to write it!" ewarn "*******************************************************************" }