# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="3ware 3DM2 Management Utility" HOMEPAGE="http://www.3ware.com" LICENSE="3ware" SLOT="0" KEYWORDS="-* ~x86 ~amd64" IUSE="" RESTRICT="fetch nostrip nomirror" DEPEND="virtual/libc dev-libs/openssl" MY_P="${PN}-${ARCH/amd64/x86_64}-${PV}" DOWNLOAD_URL="x86? ( ${HOMEPAGE}/support/download_${PV}.asp?SNO=495 ) amd64? ( ${HOMEPAGE}/support/download_${PV}.asp?SNO=496 )" SRC_URI="x86? ( ${HOMEPAGE}/download/Escalade9000Series/${PV}/${MY_P}.tgz ) amd64? ( ${HOMEPAGE}/download/Escalade9000Series/${PV}/${MY_P}.tgz )" S="${WORKDIR}/${MY_P}" pkg_nofetch() { einfo "Please visit the following URL to download the tarball:" einfo " " einfo "${DOWNLOAD_URL}" einfo " " einfo "Download the x86 version for 32-bit installs or the amd64" einfo "version for 64-bit machines." einfo " " einfo "Place your downloads into:" einfo " " einfo "${DISTDIR}" einfo " " } src_unpack() { unpack ${MY_P}.tgz cd ${WORKDIR}/${ARCH} tar xzf 3dm-lnx.tgz tar xzf 3dm-help.tgz tar xzf 3dm-msg.tgz cp -p ${FILESDIR}/3dm2.conf ${WORKDIR}/${ARCH}/ sed -ie "s/\$VERSION/${P}/" ${WORKDIR}/${ARCH}/3dm2.conf cp -p ${FILESDIR}/rc.gentoo ${WORKDIR}/${ARCH}/ } src_install() { cd ${WORKDIR}/${ARCH} dodir /etc/3dm2 dodir /etc/init.d dodir /usr/share/${P}/help/en dodir /usr/share/${P}/msg into /usr dosbin 3dm2 insinto /etc/3dm2 doins 3dm2.conf exeinto /etc/init.d newexe rc.gentoo 3dm2 insinto /usr/share/${P}/help/en doins en/* insinto /usr/share/${P}/msg doins t*_en }