wok-next annotate kmod/receipt @ rev 20080
fix
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 11:39:56 2017 +0200 (2017-10-25) |
parents | 4eab61ea2c5a |
children | 0709fcf9b0d7 |
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 |
pankso@12484 | 19 # Rules to configure and make the package. |
pankso@12484 | 20 compile_rules() |
pankso@12484 | 21 { |
pankso@12484 | 22 ./configure \ |
al@19576 | 23 --bindir=/bin \ |
erjo@15800 | 24 --with-rootlibdir=/lib \ |
pankso@12484 | 25 --sysconfdir=/etc \ |
pankso@12484 | 26 --with-zlib \ |
pankso@12531 | 27 --with-xz \ |
pankso@12531 | 28 $CONFIGURE_ARGS && |
al@19576 | 29 make && make install |
al@19576 | 30 |
al@19576 | 31 # compatibility with module-init-tools |
al@19576 | 32 # (the package that previously handled Linux kernel modules) |
al@19576 | 33 mkdir $install/sbin |
al@19576 | 34 for tool in depmod insmod lsmod modinfo modprobe rmmod; do |
al@19576 | 35 ln -s ../bin/kmod $install/sbin/$tool |
al@19576 | 36 done |
al@19576 | 37 ln -s kmod $install/bin/lsmod |
pankso@12484 | 38 } |
pankso@12484 | 39 |
pankso@12484 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12484 | 41 genpkg_rules() |
pankso@12484 | 42 { |
al@19760 | 43 case $PACKAGE in |
al@19760 | 44 kmod) |
al@19760 | 45 copy @std |
al@19760 | 46 PROVIDE="modules-init-tools depmod" |
al@19760 | 47 DEPENDS="zlib liblzma" |
al@19760 | 48 ;; |
al@19760 | 49 *-dev) |
al@19760 | 50 copy @dev |
al@19760 | 51 DEPENDS="kmod xz-dev pkg-config" |
al@19760 | 52 ;; |
al@19760 | 53 esac |
pankso@12484 | 54 } |