53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
|
# 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"
|
||
|
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cache.novell.com/prot/2JyMn7sWP_Q~/novell-client-1.2-SLE10.tar.gz"
|
||
|
|
||
|
LICENSE="Novell-NCL"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~x86"
|
||
|
IUSE="gtk"
|
||
|
|
||
|
DEPEND=""
|
||
|
|
||
|
RDEPEND="virtual/libc
|
||
|
>=app-crypt/novell-nici-2.7.0_p001
|
||
|
>=net-misc/novell-client-script-1.2.0_p38
|
||
|
>=net-nds/novell-xtier-base-3.1.4_p4"
|
||
|
|
||
|
RESTRICT="nomirror nostrip"
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
|
||
|
cd ${PN}-${MY_PV}
|
||
|
rpm_unpack ${WORKDIR}/ncl_build_711/NCL_disk/novell/i586/yast2-novell-client-${MY_PV}.i586.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
|
||
|
doenvd "${FILESDIR}"/80novell-client
|
||
|
}
|
||
|
|
||
|
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"
|
||
|
}
|