Commit d502222f authored by Natanael Copa's avatar Natanael Copa

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.
parent d82dd217
......@@ -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
......
#!/bin/sh
for i in "$@"; do
if [ -d "$i" ]; then
/sbin/depmod ${i#/lib/modules/}
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment