diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-21 08:27:18 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-21 08:27:18 +0000 |
commit | cab8886d7504b0fcd32a0f9fa89989e1ac5721a6 (patch) | |
tree | 5cfb54c345500f02d810ad7db1b932c2842b2ea2 /sys-block/scsirastools | |
parent | Restricting jython (diff) | |
download | gentoo-2-cab8886d7504b0fcd32a0f9fa89989e1ac5721a6.tar.gz gentoo-2-cab8886d7504b0fcd32a0f9fa89989e1ac5721a6.tar.bz2 gentoo-2-cab8886d7504b0fcd32a0f9fa89989e1ac5721a6.zip |
Version bump.
(Portage version: 2.2.0_alpha87/cvs/Linux x86_64)
Diffstat (limited to 'sys-block/scsirastools')
-rw-r--r-- | sys-block/scsirastools/ChangeLog | 9 | ||||
-rw-r--r-- | sys-block/scsirastools/scsirastools-1.5.7.ebuild | 65 |
2 files changed, 72 insertions, 2 deletions
diff --git a/sys-block/scsirastools/ChangeLog b/sys-block/scsirastools/ChangeLog index e366883f8704..70ead5c60c25 100644 --- a/sys-block/scsirastools/ChangeLog +++ b/sys-block/scsirastools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-block/scsirastools -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/ChangeLog,v 1.9 2009/09/23 20:32:42 patrick Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/ChangeLog,v 1.10 2012/02/21 08:27:18 robbat2 Exp $ + +*scsirastools-1.5.7 (21 Feb 2012) + + 21 Feb 2012; Robin H. Johnson <robbat2@gentoo.org> +scsirastools-1.5.7.ebuild: + Version bump. 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> scsirastools-1.5.4.ebuild: Remove virtual/libc diff --git a/sys-block/scsirastools/scsirastools-1.5.7.ebuild b/sys-block/scsirastools/scsirastools-1.5.7.ebuild new file mode 100644 index 000000000000..3ebb0b88ee58 --- /dev/null +++ b/sys-block/scsirastools/scsirastools-1.5.7.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/scsirastools-1.5.7.ebuild,v 1.1 2012/02/21 08:27:18 robbat2 Exp $ + +inherit autotools eutils + +DESCRIPTION="Serviceability for SCSI Disks and Arrays" +HOMEPAGE="http://scsirastools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="sys-apps/rescan-scsi-bus + sys-apps/sg3_utils" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + # this builds a really old mdadm + sed -i \ + -e '/RPMB/d' \ + -e '/^SUBDIRS/s,mdadm.d,,' \ + -e '/^SUBDIRS/s,files,,' \ + Makefile.am || die "sed Makefile.am failed" + epatch "${FILESDIR}"/${PN}-1.5.6-glibc-2.10.patch + eautoreconf + # i386 ELF binaries in tarball = bad + rm -f "${S}"/files/alarms* + + # Fix up /sbin instances to be /usr/sbin instead + for i in src/sgraidmon.c src/sgdiskmon.c ; do + sed -i "${S}"/${i} \ + -e '/evtcmd\[\].*\"\/sbin\//s,/sbin/,/usr/sbin/,' \ + || die "Failed to set /sbin in sources" + done +} + +src_compile() { + econf --sbindir=/usr/sbin \ + || die "econf failed" + emake \ + || die "emake failed" +} + +src_install() { + into /usr + docdir="/usr/share/doc/${PF}/" + emake install DESTDIR="${D}" datato="${D}${docdir}" \ + || die "emake install failed" + dosbin files/sgevt + dosbin files/mdevt + # unneeded files + rm -f "${D}"${docdir}/{SCSIRAS,COPYING} + # install modepage files + insinto /usr/share/${PN} + doins files/*.mdf + # new docs + dodoc ChangeLog AUTHORS TODO + # ensure that other docs from the emake install are compressed too. + prepalldocs +} |