114 lines
2.9 KiB
Bash
114 lines
2.9 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 NICI U.S./Worldwide (128bit) Crypto"
|
|
HOMEPAGE="http://www.novell.com"
|
|
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 )"
|
|
|
|
LICENSE="Novell-ncl-EULA"
|
|
SLOT="0"
|
|
KEYWORDS="~x86 ~amd64"
|
|
IUSE=""
|
|
|
|
DEPEND=">=app-arch/p7zip-4.15"
|
|
|
|
RDEPEND="virtual/libc"
|
|
|
|
RESTRICT="mirror strip"
|
|
|
|
src_unpack() {
|
|
cd ${WORKDIR}
|
|
if use x86
|
|
then
|
|
narch=i586
|
|
nlib=lib
|
|
|
|
7z x ${DISTDIR}/Novell_Client_SLED10-i386-2007809-CD1.iso
|
|
mkdir -p ${WORKDIR}/${PN}-${MY_P}
|
|
cd ${PN}-${MY_P}
|
|
rpm_unpack ${WORKDIR}/suse/${narch}/nici-${MY_PV}.${narch}.rpm
|
|
elif use amd64
|
|
then
|
|
narch=x86_64
|
|
nlib=lib64
|
|
|
|
7z x ${DISTDIR}/Novell_Client_SLED10-x86_64-2007809-CD1.iso
|
|
mkdir -p ${WORKDIR}/${PN}-${MY_P}
|
|
cd ${PN}-${MY_P}
|
|
rpm_unpack ${WORKDIR}/suse/${narch}/nici64-${MY_PV}.${narch}.rpm
|
|
|
|
if has_multilib_profile
|
|
then
|
|
rpm_unpack ${WORKDIR}/suse/i586/nici-${MY_PV}.i586.rpm
|
|
fi
|
|
|
|
fi
|
|
}
|
|
|
|
src_compile() { :; }
|
|
|
|
src_install() {
|
|
into /opt/novell
|
|
|
|
if use x86
|
|
then
|
|
dolib.so ${WORKDIR}/${PN}-${MY_P}/opt/novell/${nlib}/*
|
|
elif has_multilib_profile
|
|
then
|
|
dolib.so ${WORKDIR}/${PN}-${MY_P}/opt/novell/${nlib}/*
|
|
ABI="x86" dolib.so ${WORKDIR}/${PN}-${MY_P}/opt/novell/lib/*
|
|
ABI="x86" dosym ../../opt/novell/$(get_libdir)/libccs2.so /usr/$(get_libdir)/libccs2.so
|
|
else
|
|
dolib.so ${WORKDIR}/${PN}-${MY_P}/opt/novell/${nlib}/*
|
|
fi
|
|
|
|
doman ${WORKDIR}/${PN}-${MY_P}/opt/novell/man/*/*
|
|
|
|
into /usr
|
|
dosym ../../opt/novell/$(get_libdir)/libccs2.so /usr/$(get_libdir)/libccs2.so
|
|
|
|
insinto /etc/opt/novell/
|
|
doins ${WORKDIR}/${PN}-${MY_P}/etc/opt/novell/nici*.cfg
|
|
|
|
if use x86 || has_multilib_profile
|
|
then
|
|
dosym opt/novell/nici.cfg /etc/nici.cfg
|
|
fi
|
|
|
|
diropts -m777
|
|
dodir /var/opt/novell/nici
|
|
exeinto /var/opt/novell/nici
|
|
doexe ${WORKDIR}/${PN}-${MY_P}/var/opt/novell/nici/primenici*
|
|
doexe ${WORKDIR}/${PN}-${MY_P}/var/opt/novell/nici/nicimud*
|
|
doexe ${WORKDIR}/${PN}-${MY_P}/var/opt/novell/nici/set_server_mode*
|
|
|
|
insinto /var/opt/novell/nici
|
|
doins ${WORKDIR}/${PN}-${MY_P}/var/opt/novell/nici/nicifk.new
|
|
doins ${WORKDIR}/${PN}-${MY_P}/var/opt/novell/nici/xmgrcfg.wks
|
|
dodir /var/novell
|
|
dosym ../opt/novell/nici /var/novell/nici
|
|
|
|
if use x86
|
|
then
|
|
doenvd ${FILESDIR}/80novell
|
|
elif use amd64
|
|
then
|
|
doenvd ${FILESDIR}/80novell64
|
|
fi
|
|
}
|
|
|
|
pkg_postinst() {
|
|
if use x86
|
|
then
|
|
/var/opt/novell/nici/primenici
|
|
elif use amd64
|
|
then
|
|
/var/opt/novell/nici/primenici64
|
|
fi
|
|
} |