2007-08-15 18:01:23 +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 Client for Linux Configuration"
|
|
|
|
HOMEPAGE="http://www.novell.com"
|
2007-08-21 20:52:40 +02:00
|
|
|
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-15 18:01:23 +02:00
|
|
|
|
2007-08-21 20:52:40 +02:00
|
|
|
LICENSE="Novell-ncl-EULA"
|
2007-08-15 18:01:23 +02:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64"
|
|
|
|
IUSE="gtk"
|
|
|
|
|
|
|
|
DEPEND=">=app-arch/p7zip-4.15"
|
|
|
|
|
|
|
|
RDEPEND="virtual/libc
|
2007-08-21 21:36:44 +02:00
|
|
|
>=app-crypt/novell-nici-2.7.3_p11
|
|
|
|
>=net-misc/novell-client-script-2.0.0_p19
|
|
|
|
>=net-nds/novell-xtier-base-3.1.5_p43"
|
2007-08-15 18:01:23 +02:00
|
|
|
|
2007-08-21 20:52:40 +02:00
|
|
|
RESTRICT="mirror strip"
|
2007-08-15 18:01:23 +02:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
cd ${WORKDIR}
|
|
|
|
if use x86
|
|
|
|
then
|
|
|
|
narch=i586
|
|
|
|
nlib=lib
|
2007-08-21 20:52:40 +02:00
|
|
|
7z x ${DISTDIR}/Novell_Client_SLED10-i386-2007809-CD1.iso
|
2007-08-15 18:01:23 +02:00
|
|
|
elif use amd64
|
|
|
|
then
|
|
|
|
narch=x86_64
|
|
|
|
nlib=lib64
|
2007-08-21 20:52:40 +02:00
|
|
|
7z x ${DISTDIR}/Novell_Client_SLED10-x86_64-2007809-CD1.iso
|
2007-08-15 18:01:23 +02:00
|
|
|
fi
|
|
|
|
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
|
|
|
|
cd ${PN}-${MY_PV}
|
|
|
|
rpm_unpack ${WORKDIR}/suse/${narch}/yast2-novell-client-${MY_PV}.${narch}.rpm
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() { :; }
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto /etc/opt/novell/ncl
|
|
|
|
doins "${FILESDIR}"/*.conf
|
|
|
|
into /opt/novell/ncl
|
|
|
|
dobin "${WORKDIR}/${PN}-${MY_PV}"/opt/novell/ncl/bin/ncl_conf_xtier
|
|
|
|
insinto /usr/share
|
|
|
|
doins -r "${WORKDIR}/${PN}-${MY_PV}"/opt/novell/ncl/share/*
|
|
|
|
dodir /var/opt/novell/log/ncl
|
|
|
|
keepdir /var/opt/novell/log/ncl
|
|
|
|
if use x86
|
|
|
|
then
|
|
|
|
doenvd "${FILESDIR}"/80novell-client
|
|
|
|
elif use amd64
|
|
|
|
then
|
|
|
|
doenvd "${FILESDIR}"/80novell-client64
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst(){
|
|
|
|
/opt/novell/ncl/bin/ncl_conf_xtier rpm
|
|
|
|
einfo "Please run /opt/novell/ncl/bin/ncl_conf_xtier to import the config defaults"
|
|
|
|
einfo " from /etc/opt/novell/ncl/*.conf into the xtier registry Server"
|
|
|
|
}
|