diff options
Diffstat (limited to 'core/kmod')
-rw-r--r-- | core/kmod/PKGBUILD | 16 | ||||
-rw-r--r-- | core/kmod/kmod.install | 9 |
2 files changed, 14 insertions, 11 deletions
diff --git a/core/kmod/PKGBUILD b/core/kmod/PKGBUILD index 45fb7b5ae..6f32487fe 100644 --- a/core/kmod/PKGBUILD +++ b/core/kmod/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 162219 2012-06-23 18:29:15Z dreisner $ +# $Id: PKGBUILD 163513 2012-07-14 13:07:23Z allan $ # Maintainer: Dave Reisner <dreisner@archlinux.org> pkgname=kmod pkgver=9 -pkgrel=1 +pkgrel=2 pkgdesc="Linux kernel module handling" arch=('i686' 'x86_64' 'mips64el') url='http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary' @@ -13,21 +13,15 @@ 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" - "0002-config-hardcode-the-path-to-modules-to-be-lib-module.patch") + "depmod-search.conf") md5sums=('c8ae2d2694fbca2b28e238b30543a0cd' - 'dd62cbf62bd8f212f51ef8c43bec9a77' - 'b099be8997331dcb549617188cabc6af') + 'dd62cbf62bd8f212f51ef8c43bec9a77') build() { cd "$pkgname-$pkgver" - patch -Np1 <"$srcdir"/0002-config-hardcode-the-path-to-modules-to-be-lib-module.patch - - # Architecture-specific test. - sed -ri 's:(&smodinfo_jonsmodules,):/*\1*/:' testsuite/test-modinfo.c - ./configure \ --sysconfdir=/etc \ --with-zlib \ diff --git a/core/kmod/kmod.install b/core/kmod/kmod.install new file mode 100644 index 000000000..0a2e88dc5 --- /dev/null +++ b/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 +} + |