wok diff kmod/receipt @ rev 12531
kmod: install in /sbin /bin /lib, do symlinks and use xz/lzma compression
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 25 11:15:08 2012 +0200 (2012-04-25) |
parents | 127a849d861d |
children | b981e20f2719 |
line diff
1.1 --- a/kmod/receipt Mon Apr 23 18:12:59 2012 +0200 1.2 +++ b/kmod/receipt Wed Apr 25 11:15:08 2012 +0200 1.3 @@ -10,24 +10,34 @@ 1.4 WGET_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL" 1.5 PROVIDES="modules-init-tools" 1.6 1.7 -DEPENDS="zlib" 1.8 -BUILD_DEPENDS="zlib-dev" 1.9 +DEPENDS="zlib liblzma" 1.10 +BUILD_DEPENDS="zlib-dev liblzma-dev" 1.11 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 cd $src 1.16 ./configure \ 1.17 + --bindir=/sbin \ 1.18 + --libdir=/lib \ 1.19 --sysconfdir=/etc \ 1.20 --with-zlib \ 1.21 - $CONFIGURE_ARGS && 1.22 - make && make install 1.23 + --with-xz \ 1.24 + $CONFIGURE_ARGS && 1.25 + make && make pkgconfigdir=/usr/lib/pkgconfig install 1.26 } 1.27 1.28 # Rules to gen a SliTaz package suitable for Tazpkg. 1.29 genpkg_rules() 1.30 { 1.31 - mkdir -p $fs/usr/lib 1.32 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.33 - cp -a $install/usr/bin $fs/usr 1.34 + mkdir -p $fs/lib $fs/bin 1.35 + cp -a $install/lib/*.so* $fs/lib 1.36 + cp -a $install/sbin $fs 1.37 + cd $fs/sbin 1.38 + # The kmod tools symlinks 1.39 + for tool in rmmod insmod modinfo modprobe depmod 1.40 + do 1.41 + ln -s kmod $tool 1.42 + done 1.43 + cd ../bin && ln -s /sbin/kmod lsmod 1.44 }