# 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 Modules for Login Script Procssing" 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 ) 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 ~amd64" IUSE="gtk" DEPEND=">=app-arch/p7zip-4.15" RDEPEND="virtual/libc >=sys-libs/pam-0.99.3 >=app-crypt/novell-nici-2.7.3_p5-r1 >=net-misc/novell-client-script-2.0.0_p11-r1 >=net-misc/novell-client-config-2.0.0_p7-r1 >=sys-auth/novell-nmasclient-3.4.0_p10-r1 >=net-fs/novell-novfs-2.0.0_p20 >=net-fs/novell-novfsd-2.0.0_p20-r1 >=kde-misc/novell-qtgui-2.0.425_p2-r1 >=kde-misc/novell-ui-base-2.0.421_p3-r1 >=sys-libs/novell-xplatlib-1.0.3_p21-r1 >=net-nds/novell-xtier-base-3.1.5_p37-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 elif use amd64 then narch=x86_64 nlib=lib64 7z x ${DISTDIR}/Novell_Client_SLED10-x86_64-2007531-CD1.iso 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/ncl dobin ${WORKDIR}/${PN}-${MY_PV}/opt/novell/ncl/bin/* doman ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/*/* dodoc ${WORKDIR}/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/* if use x86 then doenvd "${FILESDIR}"/80novell-client elif use amd64 then doenvd "${FILESDIR}"/80novell-client64 fi }