# HG changeset patch # User Aleksej Bobylev # Date 1482634800 -7200 # Node ID 01b295f47e958ed15941160c8732696c90eeb1ec # Parent 518d42b63cdb5efd776ed4b7555c8036190efe6e Up: kmod, procps-ng (added). diff -r 518d42b63cdb -r 01b295f47e95 kmod/receipt --- a/kmod/receipt Sun Dec 25 04:35:46 2016 +0200 +++ b/kmod/receipt Sun Dec 25 05:00:00 2016 +0200 @@ -1,19 +1,20 @@ # SliTaz package receipt. PACKAGE="kmod" -VERSION="16" +VERSION="23" CATEGORY="base-system" SHORT_DESC="Linux kernel modules tools." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/" -WGET_URL="$WEB_SITE$TARBALL" -PROVIDE="modules-init-tools" HOST_ARCH="i486 arm" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="$WEB_SITE$TARBALL" + DEPENDS="zlib liblzma" -BUILD_DEPENDS="wget zlib-dev liblzma-dev tar" +BUILD_DEPENDS="zlib-dev liblzma-dev tar" +PROVIDE="modules-init-tools" # Handle cross compilation. ARM use build host: tar case "$ARCH" in @@ -24,29 +25,26 @@ compile_rules() { ./configure \ - --bindir=/sbin \ + --bindir=/bin \ --with-rootlibdir=/lib \ --sysconfdir=/etc \ --with-zlib \ --with-xz \ - --disable-manpages \ $CONFIGURE_ARGS && - make && make pkgconfigdir=/usr/lib/pkgconfig install + make && make install + + # compatibility with module-init-tools + # (the package that previously handled Linux kernel modules) + mkdir $install/sbin + for tool in depmod insmod lsmod modinfo modprobe rmmod; do + ln -s ../bin/kmod $install/sbin/$tool + done + ln -s kmod $install/bin/lsmod } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/lib $fs/bin $fs/usr/lib - cp -a $install/sbin $fs - cp -a $install/lib/*.so* $fs/lib - cp -a $install/usr/lib/*.so* $fs/usr/lib - - 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 + cook_copy_folders bin sbin + cook_copy_files *.so* } diff -r 518d42b63cdb -r 01b295f47e95 procps-ng-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/procps-ng-dev/receipt Sun Dec 25 05:00:00 2016 +0200 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="procps-ng-dev" +VERSION="3.3.12" +CATEGORY="developmen" +SHORT_DESC="Programs for monitoring processes (development files)" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL2 LGPL2" +WEB_SITE="https://gitlab.com/procps-ng/procps" + +WANTED="procps-ng" +DEPENDS="procps-ng" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.h *.la *.pc +} diff -r 518d42b63cdb -r 01b295f47e95 procps-ng/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/procps-ng/receipt Sun Dec 25 05:00:00 2016 +0200 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="procps-ng" +VERSION="3.3.12" +CATEGORY="base-system" +SHORT_DESC="Programs for monitoring processes" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL2 LGPL2" +WEB_SITE="https://gitlab.com/procps-ng/procps" + +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +DEPENDS="gettext-base ncurses" +BUILD_DEPENDS="gettext ncurses-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --exec-prefix= \ + --libdir=/usr/lib \ + --docdir=/usr/share/doc/procps-ng-$VERSION \ + --disable-static \ + --disable-kill \ + $CONFIGURE_ARGS && + make && make install + + mkdir -p $install/lib + mv $install/usr/lib/libprocps.so.* $install/lib + ln -sf ../../lib/$(readlink $install/usr/lib/libprocps.so) \ + $install/usr/lib/libprocps.so +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_folders bin sbin + cook_copy_files *.so* +}