diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-09 18:53:55 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-10 02:56:38 +0000 |
commit | fb58cd9b0a94c4e03bd2bad76140ea92dc7bdd5c (patch) | |
tree | deafef7a12ab8702746ccca0222d0107f1603232 /main/kmod | |
parent | 12fd9c83e70d8eda36cf637c15569bec5d9344a6 (diff) | |
download | aports-fb58cd9b0a94c4e03bd2bad76140ea92dc7bdd5c.tar.bz2 aports-fb58cd9b0a94c4e03bd2bad76140ea92dc7bdd5c.tar.xz |
main/kmod: modernise, remove unused -libs split
Diffstat (limited to 'main/kmod')
-rw-r--r-- | main/kmod/APKBUILD | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD index 095cea532d..3cc1c630e3 100644 --- a/main/kmod/APKBUILD +++ b/main/kmod/APKBUILD @@ -6,6 +6,7 @@ pkgrel=0 pkgdesc="Linux kernel module management utilities" url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary" arch="all" +options="!check" # https://bugs.gentoo.org/408915#c3 license="GPL-2.0-or-later" depends="" depends_dev="" @@ -22,19 +23,8 @@ source="https://kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz kmod-static-nodes.initd " -_builddir="$srcdir"/kmod-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -43,30 +33,23 @@ build() { --sysconfdir=/etc \ --with-rootlibdir=/lib \ --with-zlib \ - --with-xz \ - || return 1 - make || return 1 + --with-xz + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install 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 + ln -sf ../bin/kmod "$pkgdir"/sbin/$i done for i in lsmod modinfo; do - ln -s kmod "$pkgdir"/bin/$i || return 1 + ln -s kmod "$pkgdir"/bin/$i done install -Dm755 "$srcdir"/kmod-static-nodes.initd \ - "$pkgdir"/etc/init.d/kmod-static-nodes || return 1 -} - -libs() { - pkgdesc="Libraries to handle kernel module loading and unloading" - mkdir -p "$subpkgdir"/ - mv "$pkgdir"/lib "$subpkgdir"/ + "$pkgdir"/etc/init.d/kmod-static-nodes } bashcomp() { @@ -75,8 +58,7 @@ bashcomp() { install_if="bash-completion $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir"/usr/share - mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/ \ - || return 1 + mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/ } |