diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-05-30 12:27:04 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-05-30 12:28:10 +0200 |
commit | 65d663e7d996ef9bbdb3af1d286d3334a5fad0b2 (patch) | |
tree | b2c86d477ac56260902cc70edc5c70dffccb0215 /main/kmod/APKBUILD | |
parent | 73629368469eb638b75141001ba442b1478ce364 (diff) | |
download | aports-65d663e7d996ef9bbdb3af1d286d3334a5fad0b2.tar.bz2 aports-65d663e7d996ef9bbdb3af1d286d3334a5fad0b2.tar.xz |
main/kmod: add symlinks for utils
Diffstat (limited to 'main/kmod/APKBUILD')
-rw-r--r-- | main/kmod/APKBUILD | 9 |
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 } |