summaryrefslogtreecommitdiffstats
path: root/kmod/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-02-04 16:50:51 +0100
committerpiernov <piernov@piernov.org>2012-02-04 16:51:18 +0100
commitdf64ed10dc47aa491543d7d032ccfe5458b526cf (patch)
tree50e906c1cd835c67d69b4234a116b081f4866c3f /kmod/Pkgfile
parentaa08e87df640302d16030422263ea9f221d06e8a (diff)
downloadnutyx-pakxe-df64ed10dc47aa491543d7d032ccfe5458b526cf.tar.gz
nutyx-pakxe-df64ed10dc47aa491543d7d032ccfe5458b526cf.tar.bz2
nutyx-pakxe-df64ed10dc47aa491543d7d032ccfe5458b526cf.tar.xz
nutyx-pakxe-df64ed10dc47aa491543d7d032ccfe5458b526cf.zip
module-init-tools -> kmod 4-1
Diffstat (limited to 'kmod/Pkgfile')
-rwxr-xr-xkmod/Pkgfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/kmod/Pkgfile b/kmod/Pkgfile
new file mode 100755
index 000000000..cd788bed8
--- /dev/null
+++ b/kmod/Pkgfile
@@ -0,0 +1,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
+}