stable/branches/experimental/net-nds/novell-xtier-xplat/novell-xtier-xplat-3.1.5_p43.ebuild

58 lines
1.6 KiB
Bash
Raw Normal View History

2007-08-05 12:41:22 +02:00
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm
MY_PV="${PV/_p/-}"
DESCRIPTION="Novell XTier XPLAT runtime libraries"
HOMEPAGE="http://www.novell.com"
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-i386-2007809-CD1.iso )
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-x86_64-2007809-CD1.iso )"
2007-08-05 12:41:22 +02:00
LICENSE="Novell-ncl-EULA"
2007-08-05 12:41:22 +02:00
SLOT="0"
KEYWORDS="~x86 ~amd64"
2007-08-05 13:26:22 +02:00
IUSE=""
2007-08-05 12:41:22 +02:00
DEPEND=">=app-arch/p7zip-4.15"
RDEPEND="virtual/libc
>=sys-auth/novell-nmasclient-3.4.0_p16
=net-nds/novell-xtier-base-${PV}"
2007-08-05 12:41:22 +02:00
RESTRICT="mirror strip"
2007-08-05 12:41:22 +02:00
src_unpack() {
cd ${WORKDIR}
if use x86
then
narch=i586
nlib=lib
7z x ${DISTDIR}/Novell_Client_SLED10-i386-2007809-CD1.iso
2007-08-05 12:41:22 +02:00
elif use amd64
then
narch=x86_64
nlib=lib64
7z x ${DISTDIR}/Novell_Client_SLED10-x86_64-2007809-CD1.iso
2007-08-05 12:41:22 +02:00
fi
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm_unpack ${WORKDIR}/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
}
src_compile() { :; }
src_install() {
into /opt/novell/xtier/
dolib.so ${WORKDIR}/${PN}-${MY_PV}/opt/novell/xtier/${nlib}/*
dodoc ${WORKDIR}/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
if use x86
then
doenvd "${FILESDIR}"/80novell-xtier
elif use amd64
then
doenvd "${FILESDIR}"/80novell-xtier64
fi
}