wok-next diff kmod/receipt @ rev 16796
Add luksus
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 04 12:17:56 2014 +0200 (2014-07-04) |
parents | 6282f5a01acb |
children | 36278632a653 |
line diff
1.1 --- a/kmod/receipt Sun Jan 19 21:53:30 2014 +0100 1.2 +++ b/kmod/receipt Fri Jul 04 12:17:56 2014 +0200 1.3 @@ -10,14 +10,19 @@ 1.4 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/" 1.5 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL" 1.6 PROVIDE="modules-init-tools" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="zlib liblzma" 1.10 BUILD_DEPENDS="zlib-dev liblzma-dev tar" 1.11 1.12 +# Handle cross compilation. ARM use build host: tar 1.13 +case "$ARCH" in 1.14 + arm) BUILD_DEPENDS="zlib-dev liblzma-dev" ;; 1.15 +esac 1.16 + 1.17 # Rules to configure and make the package. 1.18 compile_rules() 1.19 { 1.20 - cd $src 1.21 ./configure \ 1.22 --bindir=/sbin \ 1.23 --with-rootlibdir=/lib \ 1.24 @@ -32,9 +37,11 @@ 1.25 # Rules to gen a SliTaz package suitable for Tazpkg. 1.26 genpkg_rules() 1.27 { 1.28 - mkdir -p $fs/lib $fs/bin 1.29 + mkdir -p $fs/lib $fs/bin $fs/usr/lib 1.30 + cp -a $install/sbin $fs 1.31 cp -a $install/lib/*.so* $fs/lib 1.32 - cp -a $install/sbin $fs 1.33 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.34 + 1.35 cd $fs/sbin 1.36 # The kmod tools symlinks 1.37 for tool in rmmod insmod modinfo modprobe depmod