wok-next annotate kmod/receipt @ rev 20317
Up kmod, lxqt, oxygen-icons, slitaz-base-files, slitaz-configs; add eggwm-qt5, pencil2d.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 11 16:06:23 2017 +0200 (2017-11-11) |
parents | 0abbdf485a8d |
children | 90a5eb560fd6 |
rev | line source |
---|---|
al@19760 | 1 # SliTaz package receipt v2. |
pankso@12484 | 2 |
pankso@12484 | 3 PACKAGE="kmod" |
al@19576 | 4 VERSION="23" |
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/" |
pankso@16067 | 10 HOST_ARCH="i486 arm" |
pankso@12484 | 11 |
al@19576 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19576 | 13 WGET_URL="$WEB_SITE$TARBALL" |
al@19576 | 14 |
al@19760 | 15 BUILD_DEPENDS="zlib-dev xz-dev tar" |
al@19760 | 16 BUILD_DEPENDS_arm="zlib-dev xz-dev" |
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 --sysconfdir=/etc \ |
pankso@12484 | 24 --with-zlib \ |
pankso@12531 | 25 --with-xz \ |
pankso@12531 | 26 $CONFIGURE_ARGS && |
al@19576 | 27 make && make install |
al@19576 | 28 |
al@19576 | 29 # compatibility with module-init-tools |
al@19576 | 30 # (the package that previously handled Linux kernel modules) |
al@19576 | 31 mkdir $install/sbin |
al@19576 | 32 for tool in depmod insmod lsmod modinfo modprobe rmmod; do |
al@19576 | 33 ln -s ../bin/kmod $install/sbin/$tool |
al@19576 | 34 done |
al@19576 | 35 ln -s kmod $install/bin/lsmod |
pankso@12484 | 36 } |
pankso@12484 | 37 |
al@20317 | 38 genpkg_rules() { |
al@19760 | 39 case $PACKAGE in |
al@19760 | 40 kmod) |
al@19760 | 41 copy @std |
al@19760 | 42 PROVIDE="modules-init-tools depmod" |
al@20317 | 43 # please keep glibc-base here because kmod used in the post-install |
al@20317 | 44 # of linux-* packages and will not work instead |
al@20317 | 45 DEPENDS="glibc-base zlib liblzma" |
al@19760 | 46 ;; |
al@19760 | 47 *-dev) |
al@19760 | 48 copy @dev |
al@19760 | 49 DEPENDS="kmod xz-dev pkg-config" |
al@19760 | 50 ;; |
al@19760 | 51 esac |
pankso@12484 | 52 } |