# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: Addme please DESCRIPTION="Kernel module for the Coda Filesystem. The stock module will not work for Coda versions 6.0 and above." HOMEPAGE="http://www.coda.cs.cmu.edu/" SRC_URI="ftp://ftp.coda.cs.cmu.edu/pub/coda/linux/kernel/linux-coda-${PV}.tgz" RESTRICT="nostrip" LICENSE="GPL-2" SLOT="${KV}" KEYWORDS="x86" DEPEND=">=virtual/linux-sources-2.4" S="${WORKDIR}/linux-coda" src_compile() { # Why does everything about Coda have to be different? # Why use 'Configure' when everyone else on earth uses 'configure'... 0_o ./Configure -n # Must unset the CFLAGS or we trigger an ifdef in the Makefile which causes # the module to not build correctly. ;| unset CFLAGS emake -j1 coda.o || die "make failed" } src_install() { einstall MODDIR="${D}/lib/modules/${KV}" } pkg_postinst() { [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules }