diff options
-rw-r--r-- | main/kmod/APKBUILD | 5 | ||||
-rw-r--r-- | main/kmod/kmod.trigger | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD index 7e8e6cacec..65d0755924 100644 --- a/main/kmod/APKBUILD +++ b/main/kmod/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=kmod pkgver=21 -pkgrel=2 +pkgrel=3 pkgdesc="Linux kernel module management utilities" url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary" arch="all" @@ -12,7 +12,8 @@ depends_dev="" # gnu sed is needed for symlink makedepends="$depends_dev zlib-dev xz-dev libxslt" install="" -subpackages="$pkgname-dev $pkgname-doc $pkgname-libs +triggers="$pkgname.trigger=/lib/modules/*" +subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion:completion" source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz strndupa.patch diff --git a/main/kmod/kmod.trigger b/main/kmod/kmod.trigger new file mode 100644 index 0000000000..1693ea1eae --- /dev/null +++ b/main/kmod/kmod.trigger @@ -0,0 +1,8 @@ +#!/bin/sh + +for i in "$@"; do + if [ -d "$i" ]; then + /sbin/depmod ${i#/lib/modules/} + fi +done + |