stable/branches/experimental/net-nds/novell-novlembox/novell-novlembox-8.8.1_p7.ebuild
2007-04-04 15:38:22 +00:00

47 lines
1.3 KiB
Bash

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm
MY_PV="${PV/_p/-}"
DESCRIPTION="Novell eDirectory Management Toolbox"
HOMEPAGE="http://www.novell.com"
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cache.novell.com/prot/cK697ew-SfQ~/20060526_0800_Linux_88-SP1_FINAL.tar.gz"
LICENSE="Novell-eDir-87"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/libc
virtual/jdk
>=net-misc/novell-ncpenc-1.1_p7
>=net-nds/novell-ndsbase-8.8.1_p7
>=net-nds/novell-ndsserv-8.8.1_p7
>=net-nds/novell-novlembox-8.8.1_p7
>=net-nds/novell-novllmgnt-8.8.1_p7
>=net-nds/novell-novlxis-8.8.1_p7"
RESTRICT="nomirror nostrip"
src_unpack() {
unpack ${A}
mkdir -p ${WORKDIR}/${PN}-${MY_PV}
cd ${PN}-${MY_PV}
rpm_unpack ${WORKDIR}/eDirectory/setup/novell-NOVLembox-${MY_PV}.i386.rpm
}
src_compile() { :; }
src_install() {
rm -rf "${WORKDIR}/${PN}-${MY_PV}"/opt/novell/eDirectory/lib/nds-modules/embox/jre
sed -i 's%$NDSHOME/opt/novell/eDirectory/lib/nds-modules/embox%${JAVA_HOME}%' "${WORKDIR}/${PN}-${MY_PV}"/opt/novell/eDirectory/bin/edirutil
mv "${WORKDIR}/${PN}-${MY_PV}"/opt "${D}"/ || die "mv opt"
insinto /etc/env.d
doins "${FILESDIR}"/80novell-edir
}