# $Id$ PNAME="module-init-tools" PVER="3.16" PBUILD="r1" PCATEGORIE="sys-apps" DESCRIPTION="Kernel module utilities for 2.6x kernel series." HOMEPAGE="http://www.kerneltools.org/" DEPEND=">= virtual/glibc >= sys-libs/zlib-1.2.5 >= virtual/debianutils" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" MCORE_ONLY_KEEP="bin/lsmod sbin/depmod sbin/insmod sbin/lsmod sbin/modprobe sbin/rmmod" sminclude mtools mcore-split SRC_URI=( http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE} http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | grep -v latest | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not regenerate man-pages (needs docbook2man) touch *.5 *.8 || die } src_compile() { cd ${SRCDIR} DOCBOOKTOMAN=true mconfigure --prefix=/ --enable-zlib || die mmake || die } mcore_generic_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # installs compat symlinks mlink ../bin/lsmod /sbin/lsmod || die } postinstall() { if [ -x /sbin/modules-update ] then echo "Updating module dependencies" /sbin/modules-update fi }