# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86 DESCRIPTION="Dbtoyfs is a linux kernel module implementing a remote filesystem. The purpose of this filesystem is to let you browse the content of a relational database through a set of directories and xml files." SRC_URI="http://www.thesaguaros.com/products/dbtoyfs/${P}.tgz" S=${WORKDIR}/dbtoy HOMEPAGE="http://www.thesaguaros.com/products/dbtoyfs" SLOT="0" KEYWORDS="~x86" LICENSE="GPL-2" IUSE="" DEPEND="virtual/kernel dev-db/mysql" src_compile(){ check_KV emake || die "compile failed" } src_install(){ dolib libdbt_my.so || die "no lib found" dobin dbtoyd || die "no daemon found" dodir /lib/modules/${KV}/misc cd ${S} cp start.o ${D}lib/modules/${KV}/misc/dbtoy.o || ewarn "Please copy kernel-module start.o to ${KV} manually." dodoc README } pkg_postinst() { einfo "upating modules" update-modules einfo "Kernel-module dbtoy.o installed in /lib/modules/${KV}/misc/" }