summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:48:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:48:50 (GMT)
commit04a617c83b5da3028617d994309c3d66f56686aa (patch)
tree54ad62a5f2e94aee1bb63e17fb72bbc318d24d22 /abs/core
parentc43aac0b2af335f544f3d6846fcc2a084fccdb5b (diff)
downloadlinhes_pkgbuild-04a617c83b5da3028617d994309c3d66f56686aa.zip
linhes_pkgbuild-04a617c83b5da3028617d994309c3d66f56686aa.tar.gz
linhes_pkgbuild-04a617c83b5da3028617d994309c3d66f56686aa.tar.bz2
kmod 9
-new
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/kmod/PKGBUILD56
-rw-r--r--abs/core/kmod/depmod-search.conf5
-rw-r--r--abs/core/kmod/kmod.install9
3 files changed, 70 insertions, 0 deletions
diff --git a/abs/core/kmod/PKGBUILD b/abs/core/kmod/PKGBUILD
new file mode 100644
index 0000000..18c3ee0
--- /dev/null
+++ b/abs/core/kmod/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 163513 2012-07-14 13:07:23Z allan $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+
+pkgname=kmod
+pkgver=9
+pkgrel=2
+pkgdesc="Linux kernel module handling"
+arch=('i686' 'x86_64')
+url='http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary'
+license=('GPL2')
+depends=('glibc' 'zlib')
+options=('!libtool')
+provides=('module-init-tools=3.16')
+conflicts=('module-init-tools')
+replaces=('module-init-tools')
+install=kmod.install
+source=("ftp://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$pkgver.tar.xz"
+ "depmod-search.conf")
+md5sums=('c8ae2d2694fbca2b28e238b30543a0cd'
+ 'dd62cbf62bd8f212f51ef8c43bec9a77')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ --sysconfdir=/etc \
+ --with-zlib \
+ --with-rootprefix=/usr
+
+ make
+}
+
+check() {
+ # testsuite is broken on 32-bit because of an unhandled EEXIST on mkdir_p
+ make -C "$pkgname-$pkgver" check || :
+}
+
+package() {
+ make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+
+ # extra directories
+ install -dm755 "$pkgdir"/{etc,usr/lib}/{depmod,modprobe}.d "$pkgdir/sbin"
+
+ # add symlinks to kmod
+ ln -s ../usr/bin/kmod "$pkgdir/sbin/modprobe"
+ ln -s ../usr/bin/kmod "$pkgdir/sbin/depmod"
+
+ for tool in {ins,ls,rm}mod modinfo; do
+ ln -s kmod "$pkgdir/usr/bin/$tool"
+ done
+
+ # install depmod.d file for search/ dir
+ install -Dm644 "$srcdir/depmod-search.conf" "$pkgdir/usr/lib/depmod.d/search.conf"
+}
+
+# vim: ft=sh syn=sh et
diff --git a/abs/core/kmod/depmod-search.conf b/abs/core/kmod/depmod-search.conf
new file mode 100644
index 0000000..36f2cf7
--- /dev/null
+++ b/abs/core/kmod/depmod-search.conf
@@ -0,0 +1,5 @@
+#
+# /usr/lib/depmod.d/search.conf
+#
+
+search updates extramodules built-in
diff --git a/abs/core/kmod/kmod.install b/abs/core/kmod/kmod.install
new file mode 100644
index 0000000..0a2e88d
--- /dev/null
+++ b/abs/core/kmod/kmod.install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+post_upgrade() {
+ if [ "$(vercmp 9-2 "$2")" -eq 1 ]; then
+ echo "==> Kernel modules are now only read from /usr/lib/modules, all custom"
+ echo " built kernels and modules must be moved there before rebooting."
+ fi
+}
+