84 lines
2.4 KiB
Bash
84 lines
2.4 KiB
Bash
# Copyright 1999-2007 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
inherit eutils rpm multilib
|
|
|
|
MY_PV="${PV/_p/-}"
|
|
|
|
DESCRIPTION="Novell NMAS Client for Linux"
|
|
HOMEPAGE="http://www.novell.com"
|
|
SRC_URI="x86? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-i386-2007531-CD1.iso )
|
|
multilib? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-i386-2007531-CD1.iso )
|
|
amd64? ( http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-x86_64-2007531-CD1.iso )"
|
|
|
|
LICENSE="Novell-NCL"
|
|
SLOT="0"
|
|
KEYWORDS="~x86"
|
|
IUSE="gtk"
|
|
|
|
DEPEND=">=app-arch/p7zip-4.15"
|
|
|
|
RDEPEND="virtual/libc
|
|
>=app-crypt/novell-nici-2.7.3_p5-r1"
|
|
|
|
RESTRICT="nomirror strip"
|
|
|
|
src_unpack() {
|
|
cd ${WORKDIR}
|
|
if use x86
|
|
then
|
|
narch=i586
|
|
nlib=lib
|
|
|
|
7z x ${DISTDIR}/Novell_Client_SLED10-i386-2007531-CD1.iso
|
|
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
|
|
cd ${PN}-${MY_PV}
|
|
rpm_unpack ${WORKDIR}/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
|
|
elif use amd64
|
|
then
|
|
narch=x86_64
|
|
nlib=lib64
|
|
|
|
if has_multilib_profile
|
|
then
|
|
7z x ${DISTDIR}/Novell_Client_SLED10-i386-2007531-CD1.iso
|
|
fi
|
|
7z x -y ${DISTDIR}/Novell_Client_SLED10-x86_64-2007531-CD1.iso
|
|
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
|
|
cd ${PN}-${MY_PV}
|
|
rpm_unpack ${WORKDIR}/suse/${narch}/${PN}-${MY_PV}.${narch}.rpm
|
|
|
|
if has_multilib_profile
|
|
then
|
|
rpm_unpack ${WORKDIR}/suse/i586/${PN}-${MY_PV}.i586.rpm
|
|
fi
|
|
|
|
fi
|
|
}
|
|
|
|
src_compile() { :; }
|
|
|
|
src_install() {
|
|
into /opt/novell/nmas/client/
|
|
dobin ${WORKDIR}/${PN}-${MY_PV}/opt/novell/nmas/client/bin/*
|
|
|
|
if use x86
|
|
then
|
|
dolib.so ${WORKDIR}/${PN}-${MY_PV}/opt/novell/nmas/client/${nlib}/*
|
|
elif has_multilib_profile
|
|
then
|
|
dolib.so ${WORKDIR}/${PN}-${MY_PV}/opt/novell/nmas/client/${nlib}/*
|
|
ABI="x86" dolib.so ${WORKDIR}/${PN}-${MY_PV}/opt/novell/nmas/client/lib/*
|
|
else
|
|
dolib.so ${WORKDIR}/${PN}-${MY_PV}/opt/novell/nmas/client/${nlib}/*
|
|
fi
|
|
|
|
if use x86
|
|
then
|
|
doenvd "${FILESDIR}"/80novell-nmasclient
|
|
elif use amd64
|
|
then
|
|
doenvd "${FILESDIR}"/80novell-nmasclient64
|
|
fi
|
|
} |