wok-next rev 19576

Up: kmod, procps-ng (added).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Dec 25 05:00:00 2016 +0200 (2016-12-25)
parents 518d42b63cdb
children 6b0977689017
files kmod/receipt procps-ng-dev/receipt procps-ng/receipt
line diff
     1.1 --- a/kmod/receipt	Sun Dec 25 04:35:46 2016 +0200
     1.2 +++ b/kmod/receipt	Sun Dec 25 05:00:00 2016 +0200
     1.3 @@ -1,19 +1,20 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="kmod"
     1.7 -VERSION="16"
     1.8 +VERSION="23"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="Linux kernel modules tools."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.14  WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/"
    1.15 -WGET_URL="$WEB_SITE$TARBALL"
    1.16 -PROVIDE="modules-init-tools"
    1.17  HOST_ARCH="i486 arm"
    1.18  
    1.19 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.20 +WGET_URL="$WEB_SITE$TARBALL"
    1.21 +
    1.22  DEPENDS="zlib liblzma"
    1.23 -BUILD_DEPENDS="wget zlib-dev liblzma-dev tar"
    1.24 +BUILD_DEPENDS="zlib-dev liblzma-dev tar"
    1.25 +PROVIDE="modules-init-tools"
    1.26  
    1.27  # Handle cross compilation. ARM use build host: tar
    1.28  case "$ARCH" in
    1.29 @@ -24,29 +25,26 @@
    1.30  compile_rules()
    1.31  {
    1.32  	./configure \
    1.33 -		--bindir=/sbin \
    1.34 +		--bindir=/bin \
    1.35  		--with-rootlibdir=/lib \
    1.36  		--sysconfdir=/etc \
    1.37  		--with-zlib \
    1.38  		--with-xz \
    1.39 -		--disable-manpages \
    1.40  		$CONFIGURE_ARGS &&
    1.41 -	make && make pkgconfigdir=/usr/lib/pkgconfig install
    1.42 +	make && make install
    1.43 +
    1.44 +	# compatibility with module-init-tools
    1.45 +	# (the package that previously handled Linux kernel modules)
    1.46 +	mkdir $install/sbin
    1.47 +	for tool in depmod insmod lsmod modinfo modprobe rmmod; do
    1.48 +		ln -s ../bin/kmod $install/sbin/$tool
    1.49 +	done
    1.50 +	ln -s kmod $install/bin/lsmod
    1.51  }
    1.52  
    1.53  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.54  genpkg_rules()
    1.55  {
    1.56 -	mkdir -p $fs/lib $fs/bin $fs/usr/lib
    1.57 -	cp -a $install/sbin $fs
    1.58 -	cp -a $install/lib/*.so* $fs/lib
    1.59 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.60 -	
    1.61 -	cd $fs/sbin
    1.62 -	# The kmod tools symlinks
    1.63 -	for tool in rmmod insmod modinfo modprobe depmod
    1.64 -	do
    1.65 -		ln -s kmod $tool
    1.66 -	done
    1.67 -	cd ../bin && ln -s ../sbin/kmod lsmod
    1.68 +	cook_copy_folders bin sbin
    1.69 +	cook_copy_files *.so*
    1.70  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/procps-ng-dev/receipt	Sun Dec 25 05:00:00 2016 +0200
     2.3 @@ -0,0 +1,18 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="procps-ng-dev"
     2.7 +VERSION="3.3.12"
     2.8 +CATEGORY="developmen"
     2.9 +SHORT_DESC="Programs for monitoring processes (development files)"
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +LICENSE="GPL2 LGPL2"
    2.12 +WEB_SITE="https://gitlab.com/procps-ng/procps"
    2.13 +
    2.14 +WANTED="procps-ng"
    2.15 +DEPENDS="procps-ng"
    2.16 +
    2.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.18 +genpkg_rules()
    2.19 +{
    2.20 +	cook_copy_files *.h *.la *.pc
    2.21 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/procps-ng/receipt	Sun Dec 25 05:00:00 2016 +0200
     3.3 @@ -0,0 +1,40 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="procps-ng"
     3.7 +VERSION="3.3.12"
     3.8 +CATEGORY="base-system"
     3.9 +SHORT_DESC="Programs for monitoring processes"
    3.10 +MAINTAINER="al.bobylev@gmail.com"
    3.11 +LICENSE="GPL2 LGPL2"
    3.12 +WEB_SITE="https://gitlab.com/procps-ng/procps"
    3.13 +
    3.14 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    3.16 +
    3.17 +DEPENDS="gettext-base ncurses"
    3.18 +BUILD_DEPENDS="gettext ncurses-dev"
    3.19 +
    3.20 +# Rules to configure and make the package.
    3.21 +compile_rules()
    3.22 +{
    3.23 +	./configure \
    3.24 +		--exec-prefix= \
    3.25 +		--libdir=/usr/lib \
    3.26 +		--docdir=/usr/share/doc/procps-ng-$VERSION \
    3.27 +		--disable-static \
    3.28 +		--disable-kill \
    3.29 +		$CONFIGURE_ARGS &&
    3.30 +	make && make install
    3.31 +
    3.32 +	mkdir -p $install/lib
    3.33 +	mv $install/usr/lib/libprocps.so.* $install/lib
    3.34 +	ln -sf ../../lib/$(readlink $install/usr/lib/libprocps.so) \
    3.35 +		$install/usr/lib/libprocps.so
    3.36 +}
    3.37 +
    3.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.39 +genpkg_rules()
    3.40 +{
    3.41 +	cook_copy_folders bin sbin
    3.42 +	cook_copy_files *.so*
    3.43 +}