aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/kmod/APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD
index 4701132cbc..cc5e2a5748 100644
--- a/main/kmod/APKBUILD
+++ b/main/kmod/APKBUILD
@@ -2,14 +2,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kmod
pkgver=17
-pkgrel=0
+pkgrel=1
pkgdesc="Linux kernel module management utilities"
url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
-makedepends="$depends_dev zlib-dev xz-dev libxslt"
+makedepends="$depends_dev zlib-dev xz-dev libxslt tar"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz
@@ -42,6 +42,11 @@ build() {
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
+ local i
+ mkdir -p "$pkgdir"/sbin
+ for i in lsmod rmmod insmod modinfo modprobe depmod; do
+ ln -sf ../bin/kmod "$pkgdir"/sbin/$i || return 1
+ done
rm -f "$pkgdir"/usr/lib/*.la
}