# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # sys-cluster/iANS-2.3.35-r2.ebuild, Brett Simpson (simpsonb@impmail.dnsalias.com) # IUSE="" DESCRIPTION="Intel(R) Advanced Network Services (ANS) package for load balancing and clustering of Intel nics." HOMEPAGE="http://support.intel.com/support/network/adapter/ans/index.htm" LICENSE="intel" DEPEND="virtual/linux-sources" RDEPEND="e100? ( =net-misc/e100-2.2* ) e1000? ( =net-misc/e1000-5.0* )" SRC_URI="ftp://aiedownload.intel.com/df-support/5600/eng/${P}.tar.gz" SLOT="0" KEYWORDS="x86" S="${WORKDIR}/${P}" pkg_setup() { # check if we have all needed files for i in \ ians.conf \ ians.boot do [[ ! -r "${FILESDIR}/${i}" ]] && die "${FILESDIR}/${i} missing" done exit 0 } src_compile() { check_KV cd "${S}/src" make KSRC=/usr/src/linux || die } src_install() { insinto "/lib/modules/${KV}/kernel/drivers/net" doins ${S}/bin/ia32/ians.o || die into /usr/ dosbin bin/ia32/ianscfg || die dodir /etc/ians insinto /etc/ians doins ${FILESDIR}/ians.conf || die exeinto /etc/init.d doexe ${FILESDIR}/ians.boot || die cp -Rdp ${ROOT}/etc/init.d/net.eth0 ${D}/etc/init.d/net.vadapt1 || die doman ianscfg.1 dodoc LICENSE README ians.spec ldistrib.txt einfo "" einfo "An example file called /etc/ians/ians.cfg has been installed" einfo "and will work in AFT mode with two e100 Intel nics." einfo "" einfo "Do the following so the driver will load at boot:" einfo "rc-update add ians.boot boot" einfo "rc-update add net.vadapt default" einfo "" einfo "Modify your /etc/conf.d/net so that it includes" einfo "iface_vadapt1=\"dhcp\" or an ip address." einfo "" einfo "Read the ianscfg man page and /usr/share/doc/${P}/README.gz" einfo "file for detailed configuration information." einfo "" einfo "Please note that if you use ALB (Adaptive Load Balancing)" einfo "with Vmware then you will get duplicate ip address warnings" einfo "in your guest OS's since ALB will send and receive on" einfo "different MAC address. Use AFT (Adaptive Fault Tolerance)" einfo "instead." einfo "" }