# 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/ttXNAk5nEeg~/patchfiles/ss204_SLAH.tgz" LICENSE="Novell-eDir-88" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="virtual/libc !net-misc/novell-nici" RESTRICT="nomirror nostrip" src_unpack() { unpack ${A} mkdir -p ${WORKDIR}/${PN}-${MY_P} cd ${PN}-${MY_P} rpm_unpack ${WORKDIR}/Linux/eDir87x/nici-${MY_PV}-0.01.i386.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 }