You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
59 lines
1.3 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
|
||
|
EAPI="5"
|
||
13 years ago
|
|
||
3 years ago
|
inherit autotools epatch
|
||
13 years ago
|
|
||
|
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=""
|
||
|
|
||
3 years ago
|
RDEPEND=">=sys-apps/sg3_utils-1.44"
|
||
13 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
9 years ago
|
src_prepare() {
|
||
|
epatch "${FILESDIR}"/${P}-sysmacros.patch #580214
|
||
13 years ago
|
# 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
|
||
|
}
|
||
|
|
||
9 years ago
|
src_configure() {
|
||
|
econf --sbindir=/usr/sbin
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
into /usr
|
||
|
docdir="/usr/share/doc/${PF}/"
|
||
9 years ago
|
emake install DESTDIR="${D}" datato="${D}${docdir}"
|
||
13 years ago
|
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
|
||
|
}
|