diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-17 11:25:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-17 11:35:56 +0000 |
commit | d502222fc4c8a439ee6b6c134f8dd28030dfe13a (patch) | |
tree | bf49ab1ef896f24d718ddcd4b8a32e2b3c50822a /main/kmod | |
parent | d82dd2170a72063b32c2e56ec6e2acaa31af40d3 (diff) | |
download | aports-d502222fc4c8a439ee6b6c134f8dd28030dfe13a.tar.bz2 aports-d502222fc4c8a439ee6b6c134f8dd28030dfe13a.tar.xz |
main/kmod: add trigger and remove -libs subpackage
libkmod currently depends on kmod's depmod, so if anything needs libkmod
it we need pull in kmod and run depmod. We do so with a trigger.
Diffstat (limited to 'main/kmod')
-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 + |