blob: cd788bed8ff484c2ecec1fddebccb68fef1d2953 (
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
32
33
34
35
36
37
38
39
|
# Description: Gestion des module du kernel Linux
# URL: http://git.profusion.mobi/cgit.cgi/kmod.git
# Maintainer: Lucas De Marchi
# Packager: piernov <piernov@piernov.org>
name=kmod
version=4
release=1
source=(http://packages.profusion.mobi/$name/$name-$version.tar.xz
depmod-search.conf
nouveau.conf
blacklist-fb.conf
usb.conf)
build() {
cd $name-$version
./configure --sysconfdir=/etc \
--with-rootprefix= \
--with-zlib \
--with-xz
make
make check
make DESTDIR=$PKG install
install -dm755 $PKG/{,s}bin
install -dm755 $PKG/{etc,lib}/{depmod,modprobe}.d
ln -s /usr/bin/kmod $PKG/bin/lsmod
for tool in {ins,rm,dep}mod mod{info,probe}; do
ln -s ../usr/bin/kmod $PKG/sbin/$tool
done
install -Dm644 ../depmod-search.conf $PKG/lib/depmod.d/search.conf
for i in blacklist-fb.conf usb.conf nouveau.conf
do
install -m 644 ../$i $PKG/etc/modprobe.d/$i
done
}
|