Lines 2-14
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-block/megacli/megacli-8.00.46.ebuild,v 1.1 2011/05/26 18:12:27 ramereth Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-block/megacli/megacli-8.00.46.ebuild,v 1.1 2011/05/26 18:12:27 ramereth Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit rpm |
7 |
inherit rpm multilib |
8 |
|
8 |
|
9 |
DESCRIPTION="LSI Logic MegaRAID Command Line Interface management tool" |
9 |
DESCRIPTION="LSI Logic MegaRAID Command Line Interface management tool" |
10 |
HOMEPAGE="http://www.lsi.com/" |
10 |
HOMEPAGE="http://www.lsi.com/" |
11 |
SRC_URI="http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=56682 -> ${PV}_Linux_MegaCLI.zip" |
11 |
SRC_URI="http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/${PV}_Linux_MegaCLI.zip" |
12 |
|
12 |
|
13 |
LICENSE="LSI" |
13 |
LICENSE="LSI" |
14 |
SLOT="0" |
14 |
SLOT="0" |
Lines 22-33
Link Here
|
22 |
|
22 |
|
23 |
RESTRICT="strip mirror test" |
23 |
RESTRICT="strip mirror test" |
24 |
|
24 |
|
|
|
25 |
S=${WORKDIR} |
26 |
|
25 |
src_unpack() { |
27 |
src_unpack() { |
26 |
unpack ${A} |
28 |
unpack ${A} |
27 |
cd "${S}" |
29 |
cd "${S}" |
28 |
unpack ./MegaCliLin.zip || die "failed to unpack inner ZIP" |
30 |
unpack ./MegaCliLin.zip || die |
29 |
rpm_unpack ./MegaCli-${PV}-1.i386.rpm || die "failed to unpack RPM" |
31 |
rpm_unpack ./MegaCli-${PV}-1.i386.rpm || die |
30 |
rpm_unpack ./Lib_Utils-1.00-08.noarch.rpm || die "failed to unpack RPM" |
32 |
rpm_unpack ./Lib_Utils-1.00-08.noarch.rpm || die |
|
|
33 |
} |
34 |
|
35 |
src_prepare() { |
36 |
libsysfs=libsysfs.so.2.0.2 |
37 |
case ${ARCH} in |
38 |
amd64) MegaCli=MegaCli64 libsysfs_path="x86_64/${libsysfs}";; |
39 |
x86) MegaCli=MegaCli;; |
40 |
*) die "invalid ARCH";; |
41 |
esac |
42 |
export MegaCli libsysfs libsysfs_path |
31 |
} |
43 |
} |
32 |
|
44 |
|
33 |
src_compile() { |
45 |
src_compile() { |
Lines 37-52
Link Here
|
37 |
src_install() { |
49 |
src_install() { |
38 |
exeinto /opt/MegaRAID/MegaCli |
50 |
exeinto /opt/MegaRAID/MegaCli |
39 |
|
51 |
|
40 |
libsysfs=libsysfs.so.2.0.2 |
|
|
41 |
case ${ARCH} in |
42 |
amd64) MegaCli=MegaCli64 libsysfs="x86_64/${libsysfs}";; |
43 |
x86) MegaCli=MegaCli;; |
44 |
*) die "invalid ARCH";; |
45 |
esac |
46 |
doexe opt/MegaRAID/MegaCli/${MegaCli} |
52 |
doexe opt/MegaRAID/MegaCli/${MegaCli} |
47 |
dosym /opt/MegaRAID/MegaCli/${MegaCli} /usr/sbin/MegaCli |
53 |
dosym /opt/MegaRAID/MegaCli/${MegaCli} usr/sbin/MegaCli |
48 |
dosym /opt/MegaRAID/MegaCli/${MegaCli} /usr/sbin/megacli |
54 |
dosym /opt/MegaRAID/MegaCli/${MegaCli} usr/sbin/megacli |
49 |
dolib.so opt/lsi/3rdpartylibs/${libsysfs} |
55 |
dosym ${libsysfs} usr/$(get_libdir)/libsysfs.so.2 |
|
|
56 |
dolib.so opt/lsi/3rdpartylibs/${libsysfs_path} |
50 |
dodoc ${PV}_Linux_MegaCLI.txt |
57 |
dodoc ${PV}_Linux_MegaCLI.txt |
51 |
} |
58 |
} |
52 |
|
59 |
|