wok 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 | 6971e86f8875 |
children | cf2a0f07befd |
files | kmod-dev/receipt kmod/receipt |
line diff
1.1 --- a/kmod-dev/receipt Wed Apr 25 10:44:52 2012 +0200 1.2 +++ b/kmod-dev/receipt Wed Apr 25 11:15:08 2012 +0200 1.3 @@ -11,8 +11,8 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/lib 1.8 - cp -a $install/usr/lib/*.*a $fs/usr/lib 1.9 + mkdir -p $fs/lib $fs/usr/lib 1.10 + cp -a $install/lib/*.*a $fs/lib 1.11 cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.12 cp -a $install/usr/include $fs/usr 1.13 }
2.1 --- a/kmod/receipt Wed Apr 25 10:44:52 2012 +0200 2.2 +++ b/kmod/receipt Wed Apr 25 11:15:08 2012 +0200 2.3 @@ -10,24 +10,34 @@ 2.4 WGET_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL" 2.5 PROVIDES="modules-init-tools" 2.6 2.7 -DEPENDS="zlib" 2.8 -BUILD_DEPENDS="zlib-dev" 2.9 +DEPENDS="zlib liblzma" 2.10 +BUILD_DEPENDS="zlib-dev liblzma-dev" 2.11 2.12 # Rules to configure and make the package. 2.13 compile_rules() 2.14 { 2.15 cd $src 2.16 ./configure \ 2.17 + --bindir=/sbin \ 2.18 + --libdir=/lib \ 2.19 --sysconfdir=/etc \ 2.20 --with-zlib \ 2.21 - $CONFIGURE_ARGS && 2.22 - make && make install 2.23 + --with-xz \ 2.24 + $CONFIGURE_ARGS && 2.25 + make && make pkgconfigdir=/usr/lib/pkgconfig install 2.26 } 2.27 2.28 # Rules to gen a SliTaz package suitable for Tazpkg. 2.29 genpkg_rules() 2.30 { 2.31 - mkdir -p $fs/usr/lib 2.32 - cp -a $install/usr/lib/*.so* $fs/usr/lib 2.33 - cp -a $install/usr/bin $fs/usr 2.34 + mkdir -p $fs/lib $fs/bin 2.35 + cp -a $install/lib/*.so* $fs/lib 2.36 + cp -a $install/sbin $fs 2.37 + cd $fs/sbin 2.38 + # The kmod tools symlinks 2.39 + for tool in rmmod insmod modinfo modprobe depmod 2.40 + do 2.41 + ln -s kmod $tool 2.42 + done 2.43 + cd ../bin && ln -s /sbin/kmod lsmod 2.44 }