# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # The most current version has a "-a" at the end, which screws up Portage if # it's included in the file name, so we'll just fudge it here. MY_P="${P}-a" DESCRIPTION="A file system for Linux systems that exports all tracks and boot images on a CD as normal files." HOMEPAGE="http://www.elis.rug.ac.be/~ronsse/cdfs/" SRC_URI="http://www.elis.rug.ac.be/~ronsse/cdfs/download/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="${KV}" KEYWORDS="~x86" IUSE="" DEPEND="" #RDEPEND="" S=${WORKDIR}/${MY_P} src_unpack() { # Something inside portage sets $O for some reason, this screws up # the build. Fortunately it looks like Makefile.in really shouldn't # have been using it to begin with. unpack ${A} cd ${S} sed -i -e 's/$(O)//' Makefile.in } src_compile() { econf || die emake || die } src_install() { # The driver goes in the standard modules location insinto /lib/modules/${KV}/fs doins cdfs.o dodoc CHANGES COPYING INSTALL } pkg_postinst() { ebegin "Running depmod -a" depmod -a && eend 0 || eend 1 einfo "Module name is cdfs.o, located in /lib/modules/${KV}/fs" }