# 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 NICI U.S./Worldwide (128bit) Crypto" HOMEPAGE="http://www.novell.com" SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-i386-2007531-CD1.iso http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/21a91ftmUKk~/Novell_Client_SLED10-x86_64-2007531-CD1.iso" LICENSE="Novell-eDir-88" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=app-arch/p7zip-4.15" RDEPEND="virtual/libc !net-misc/novell-nici" RESTRICT="nomirror nostrip" src_unpack() { cd ${WORKDIR} 7z x ${DISTDIR}/Novell_Client_SLED10-i386-2007531-CD1.iso # 7z x ${DISTDIR}/Novell_Client_SLED10-x86_64-2007531-CD1.iso mkdir -p ${WORKDIR}/${PN}-${MY_P} cd ${PN}-${MY_P} rpm_unpack ${WORKDIR}/suse/i586/nici-${MY_PV}.i586.rpm } src_compile() { :; } src_install() { into /opt/novell dolib.so ${WORKDIR}/${PN}-${MY_P}/opt/novell/lib/* doman ${WORKDIR}/${PN}-${MY_P}/opt/novell/man/*/* into /usr dosym ../../opt/novell/lib/libccs2.so /usr/lib/libccs2.so insinto /etc/opt/novell/ doins ${WORKDIR}/${PN}-${MY_P}/etc/opt/novell/nici.cfg dosym opt/novell/nici.cfg /etc/nici.cfg 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 doenvd ${FILESDIR}/80novell } pkg_postinst() { /var/opt/novell/nici/primenici }