# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils kmod DESCRIPTION="Digi RealPort Linux is a driver package for Digi's Ethernet-based Serial Products, including EtherLite, PortServer, PortServer II and PortServer TS, and Digi's." SRC_URI="http://supportold.digi.com/support/drivers/linux/40002086_G.tgz" HOMEPAGE="http://www.digi.com/" SLOT="${KV}" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND="virtual/glibc sys-libs/ncurses" pkg_setup() { if [[ "${KV}" > "2.5" ]] ; then cd /usr/src/linux ./scripts/modpost ./vmlinux fi echo ewarn "" ewarn "" ewarn "" echo } src_unpack() { check_KV kmod_src_unpack # unpack ${A} } src_compile() { unset ARCH sed -i "s:RPM_BUILD_ROOT:DESTDIR:" Makefile.inc ./configure --prefix=/usr --sysconfdir=/etc \ --mandir=/usr/share/man || die "configure failed" dodir /lib/modules/${KV}/misc make SYSSRC="${KERNEL_DIR}" INSTALL_MOD_PATH=${D} all \ || die "Failed to build module" } src_install () { make DESTDIR="${D}" install || die "make install failed" dohtml release_notes.html }