summaryrefslogtreecommitdiffstats
path: root/module-init-tools/Pkgfile
blob: 298daa08536f5b9bedd522ea5a709b13eea1c19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Description: Modules utilitaires pour le noyau
# URL: http://www.kernel.org/pub/linux/kernel/people/rusty/modules
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=module-init-tools
version=3.13
release=1
source=(http://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.bz2\
	nouveau.conf modprobe.conf blacklist-fb.conf usb.conf)

build() {
cd $name-$version
echo '.so man5/modprobe.conf.5' > modprobe.d.5
./configure
make check
make clean

./configure --prefix=/  --enable-zlib-dynamic \
	--mandir=/usr/share/man

make
install -d $PKG/usr/share/man
install -d $PKG/etc/{modprobe.d,depmod.d}
make DESTDIR=$PKG mandir=/usr/share/man install
rm -f $PKG/sbin/generate-modprobe.conf
for i in  modprobe.conf blacklist-fb.conf usb.conf nouveau.conf
do
	install -m 644 ../$i $PKG/etc/modprobe.d/$i
done
}