wok-next annotate kmod/receipt @ rev 20658

Up/fix: gtkdialog (0.8.3), tilda (1.4.1).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 06 04:24:54 2018 +0300 (2018-05-06)
parents d43bf7aae921
children d224c2b13c81
rev   line source
al@19760 1 # SliTaz package receipt v2.
pankso@12484 2
pankso@12484 3 PACKAGE="kmod"
al@20436 4 VERSION="24"
pankso@12484 5 CATEGORY="base-system"
al@19760 6 SHORT_DESC="Linux kernel modules tools"
pankso@12484 7 MAINTAINER="pankso@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pascal@17923 9 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/"
al@20436 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kmod.html"
pankso@12484 11
al@19576 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19576 13 WGET_URL="$WEB_SITE$TARBALL"
al@19576 14
al@20436 15 BUILD_DEPENDS_arm="zlib-dev xz-dev"
al@19760 16 BUILD_DEPENDS="zlib-dev xz-dev tar"
al@19760 17 SPLIT="kmod-dev"
pankso@16067 18
al@20317 19 compile_rules() {
pankso@12484 20 ./configure \
al@19576 21 --bindir=/bin \
erjo@15800 22 --with-rootlibdir=/lib \
pankso@12484 23 --with-zlib \
pankso@12531 24 --with-xz \
pankso@12531 25 $CONFIGURE_ARGS &&
al@20575 26 fix libtool &&
al@20575 27 make &&
al@20575 28 make install || return 1
al@19576 29
al@19576 30 # compatibility with module-init-tools
al@19576 31 # (the package that previously handled Linux kernel modules)
al@19576 32 mkdir $install/sbin
al@19576 33 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
al@19576 34 ln -s ../bin/kmod $install/sbin/$tool
al@19576 35 done
al@19576 36 ln -s kmod $install/bin/lsmod
pankso@12484 37 }
pankso@12484 38
al@20317 39 genpkg_rules() {
al@19760 40 case $PACKAGE in
al@19760 41 kmod)
al@19760 42 copy @std
al@19760 43 PROVIDE="modules-init-tools depmod"
al@20317 44 # please keep glibc-base here because kmod used in the post-install
al@20317 45 # of linux-* packages and will not work instead
al@20317 46 DEPENDS="glibc-base zlib liblzma"
al@20436 47 TAGS="LFS"
al@19760 48 ;;
al@19760 49 *-dev)
al@19760 50 copy @dev
al@20513 51 DEPENDS="kmod xz-dev"
al@19760 52 ;;
al@19760 53 esac
pankso@12484 54 }