# HG changeset patch # User Christophe Lincoln # Date 1335345308 -7200 # Node ID 3c3ae2ea75d613dd9c0f3b4577993581f048f4aa # Parent 6971e86f8875e6519e569f4e7f8d743d9cbd3038 kmod: install in /sbin /bin /lib, do symlinks and use xz/lzma compression diff -r 6971e86f8875 -r 3c3ae2ea75d6 kmod-dev/receipt --- a/kmod-dev/receipt Wed Apr 25 10:44:52 2012 +0200 +++ b/kmod-dev/receipt Wed Apr 25 11:15:08 2012 +0200 @@ -11,8 +11,8 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.*a $fs/usr/lib + mkdir -p $fs/lib $fs/usr/lib + cp -a $install/lib/*.*a $fs/lib cp -a $install/usr/lib/pkgconfig $fs/usr/lib cp -a $install/usr/include $fs/usr } diff -r 6971e86f8875 -r 3c3ae2ea75d6 kmod/receipt --- a/kmod/receipt Wed Apr 25 10:44:52 2012 +0200 +++ b/kmod/receipt Wed Apr 25 11:15:08 2012 +0200 @@ -10,24 +10,34 @@ WGET_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL" PROVIDES="modules-init-tools" -DEPENDS="zlib" -BUILD_DEPENDS="zlib-dev" +DEPENDS="zlib liblzma" +BUILD_DEPENDS="zlib-dev liblzma-dev" # Rules to configure and make the package. compile_rules() { cd $src ./configure \ + --bindir=/sbin \ + --libdir=/lib \ --sysconfdir=/etc \ --with-zlib \ - $CONFIGURE_ARGS && - make && make install + --with-xz \ + $CONFIGURE_ARGS && + make && make pkgconfigdir=/usr/lib/pkgconfig install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/bin $fs/usr + mkdir -p $fs/lib $fs/bin + cp -a $install/lib/*.so* $fs/lib + cp -a $install/sbin $fs + cd $fs/sbin + # The kmod tools symlinks + for tool in rmmod insmod modinfo modprobe depmod + do + ln -s kmod $tool + done + cd ../bin && ln -s /sbin/kmod lsmod }