From 908b00a99b4096846ee7524a32b50df5a4b624a4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 18 Mar 2009 10:01:28 +0100 Subject: [PATCH] module-init-tools: create an empty /etc/modprobe.conf. --HG-- extra : convert_revision : 510d085ab154e0f6a9d5beaa53ad77fa22bb4364 --- templates/module-init-tools/template | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/templates/module-init-tools/template b/templates/module-init-tools/template index 5bffc886e1..17cec63d90 100644 --- a/templates/module-init-tools/template +++ b/templates/module-init-tools/template @@ -6,8 +6,7 @@ patch_args="-Np1" distfiles=" http://www.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure -configure_args="--enable-zlib --bindir=$XBPS_DESTDIR/$pkgname-$version/sbin - --sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin" +configure_args="--enable-zlib --prefix=" short_desc="Tools for managing kernel modules" maintainer="Juan RP " checksum=64a0b3b058f2236be1a8138356306c91e5f23f149a131428e4c7d97b1c050728 @@ -16,5 +15,17 @@ long_desc=" needed by Linux systems for managing loadable Linux Kernel Modules. This includes depmod, insmod, rmmod, modprobe and tools like modinfo." +conf_files="/etc/modprobe.conf" Add_dependency full glibc Add_dependency full zlib + +post_install() +{ + mkdir -p ${DESTDIR}/etc + cat >> ${DESTDIR}/etc/modprobe.conf <<_EOF +# +# /etc/modprobe.conf. Please read modprobe.conf(8). +# +_EOF + chmod 644 ${DESTDIR}/etc/modprobe.conf +}