# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/sg3_utils/sg3_utils-1.15.ebuild,v 1.1 2005/06/06 22:16:48 vapier Exp $ inherit eutils DESCRIPTION="apps for querying the sg SCSI interface (contains rescan_scsi_bus.sh)" HOMEPAGE="http://www.torque.net/sg/" SRC_URI="http://www.torque.net/sg/p/${P}.tgz http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" DEPEND="" src_unpack() { unpack ${P}.tgz cd "${S}" epatch "${FILESDIR}"/${PN}-llseek.patch sed -i \ -e "s:-g -O2:${CFLAGS}:g" \ -e '/^PREFIX=/s:/local::' \ -e 's:$(DESTDIR)/:$(DESTDIR):' \ Makefile } src_compile() { emake || die } src_install() { dobin "${DISTDIR}"/rescan-scsi-bus.sh || die "rescan-scsi-bus.sh failed" make install DESTDIR="${D}" || die "make install failed" }