wok rev 19216

Add coreutils-multicall (GNU Coreutils all-in-one, like Busybox; 4 times lighter than ordinary Coreutils)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 15 17:27:10 2016 +0300 (2016-06-15)
parents 1d0123efe74c
children 8e1f5fe117e6
files coreutils-multicall/description.txt coreutils-multicall/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/coreutils-multicall/description.txt	Wed Jun 15 17:27:10 2016 +0300
     1.3 @@ -0,0 +1,108 @@
     1.4 +Coreutils: Core GNU (file, text, shell) utilities.
     1.5 +
     1.6 +  * [          exit with the status determined by expression
     1.7 +  * base32:    base32 encode/decode data and print to standard output
     1.8 +  * base64:    base64 encode/decode data and print to standard output
     1.9 +  * basename:  strip directory and suffix from filenames
    1.10 +  * cat:       concatenate files and print on the standard output
    1.11 +  * chcon:     change file SELinux security context
    1.12 +  * chgrp:     change group ownership
    1.13 +  * chmod:     change file mode bits
    1.14 +  * chown:     change file owner and group
    1.15 +  * chroot:    run command or interactive shell with special root directory
    1.16 +  * cksum:     checksum and count the bytes in a file
    1.17 +  * comm:      compare two sorted files line by line
    1.18 +  * cp:        copy files and directories
    1.19 +  * csplit:    split a file into sections determined by context lines
    1.20 +  * cut:       remove sections from each line of files
    1.21 +  * date:      print or set the system date and time
    1.22 +  * dd:        convert and copy a file
    1.23 +  * df:        report file system disk space usage
    1.24 +  * dir:       list directory contents
    1.25 +  * dircolors: color setup for ls
    1.26 +  * dirname:   strip last component from file name
    1.27 +  * du:        estimate file space usage
    1.28 +  * echo:      display a line of text
    1.29 +  * env:       run a program in a modified environment
    1.30 +  * expand:    convert tabs to spaces
    1.31 +  * expr:      evaluate expressions
    1.32 +  * factor:    factor numbers
    1.33 +  * false:     do nothing, unsuccessfully
    1.34 +  * fmt:       simple optimal text formatter
    1.35 +  * fold:      wrap each input line to fit in specified width
    1.36 +  * groups:    print the groups a user is in
    1.37 +  * head:      output the first part of files
    1.38 +  * hostid:    print the numeric identifier for the current host
    1.39 +  * id:        print real and effective user and group IDs
    1.40 +  * install:   copy files and set attributes
    1.41 +  * join:      join lines of two files on a common field
    1.42 +  * kill:      send signals to processes, or list signals
    1.43 +  * link:      call the link function to create a link to a file
    1.44 +  * ln:        make links between files
    1.45 +  * logname:   print user's login name
    1.46 +  * ls:        list directory contents
    1.47 +  * md5sum:    compute and check MD5 message digest
    1.48 +  * mkdir:     make directories
    1.49 +  * mkfifo:    make FIFOs (named pipes)
    1.50 +  * mknod:     make block or character special files
    1.51 +  * mktemp:    create a temporary file or directory
    1.52 +  * mv:        move (rename) files
    1.53 +  * nice:      run a program with modified scheduling priority
    1.54 +  * nl:        number lines of files
    1.55 +  * nohup:     run a command immune to hangups, with output to a non-tty
    1.56 +  * nproc:     print the number of processing units available
    1.57 +  * numfmt:    convert numbers from/to human-readable strings
    1.58 +  * od:        dump files in octal and other formats
    1.59 +  * paste:     merge lines of files
    1.60 +  * pathchk:   check whether file names are valid or portable
    1.61 +  * pinky:     lightweight finger
    1.62 +  * pr:        convert text files for printing
    1.63 +  * printenv:  print all or part of environment
    1.64 +  * printf:    format and print data
    1.65 +  * ptx:       produce a permuted index of file contents
    1.66 +  * pwd:       print name of current/working directory
    1.67 +  * readlink:  print resolved symbolic links or canonical file names
    1.68 +  * realpath:  print the resolved path
    1.69 +  * rm:        remove files or directories
    1.70 +  * rmdir:     remove empty directories
    1.71 +  * runcon:    run command with specified SELinux security context
    1.72 +  * seq:       print a sequence of numbers
    1.73 +  * sha1sum:   compute and check SHA1 message digest
    1.74 +  * sha224sum: compute and check SHA224 message digest
    1.75 +  * sha256sum: compute and check SHA256 message digest
    1.76 +  * sha384sum: compute and check SHA384 message digest
    1.77 +  * sha512sum: compute and check SHA512 message digest
    1.78 +  * shred:     overwrite a file to hide its contents, and optionally delete it
    1.79 +  * shuf:      generate random permutations
    1.80 +  * sleep:     delay for a specified amount of time
    1.81 +  * sort:      sort lines of text files
    1.82 +  * split:     split a file into pieces
    1.83 +  * stat:      display file or file system status
    1.84 +  * stdbuf:    run command with modified buffering operations for its standard
    1.85 +               streams
    1.86 +  * stty:      change and print terminal line settings
    1.87 +  * sum:       checksum and count the blocks in a file
    1.88 +  * sync:      synchronize cached writes to persistent storage
    1.89 +  * tac:       concatenate and print files in reverse
    1.90 +  * tail:      output the last part of files
    1.91 +  * tee:       read from standard input and write to standard output and files
    1.92 +  * test:      check file types and compare values
    1.93 +  * timeout:   run a command with a time limit
    1.94 +  * touch:     change file timestamps
    1.95 +  * tr:        translate or delete characters
    1.96 +  * true:      do nothing, successfully
    1.97 +  * truncate:  shrink or extend the size of a file to the specified size
    1.98 +  * tsort:     perform topological sort
    1.99 +  * tty:       print the file name of the terminal connected to standard input
   1.100 +  * uname:     print system information
   1.101 +  * unexpand:  convert spaces to tabs
   1.102 +  * uniq:      report or omit repeated lines
   1.103 +  * unlink:    call the unlink function to remove the specified file
   1.104 +  * uptime:    tell how long the system has been running
   1.105 +  * users:     print the user names of users currently logged in to the current
   1.106 +               host
   1.107 +  * vdir:      list directory contents
   1.108 +  * wc:        print newline, word, and byte counts for each file
   1.109 +  * who:       show who is logged on
   1.110 +  * whoami:    print effective user ID
   1.111 +  * yes:       output a string repeatedly until killed
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/coreutils-multicall/receipt	Wed Jun 15 17:27:10 2016 +0300
     2.3 @@ -0,0 +1,92 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="coreutils-multicall"
     2.7 +VERSION="8.25"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="Utilities for using and setting the basic system."
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +LICENSE="GPL3"
    2.12 +WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
    2.13 +TARBALL="coreutils-$VERSION.tar.xz"
    2.14 +WGET_URL="$GNU_MIRROR/coreutils/$TARBALL"
    2.15 +
    2.16 +SIBLINGS="coreutils"
    2.17 +DEPENDS="glibc-base acl attr libcap gmp"
    2.18 +BUILD_DEPENDS="automake xz libcap-dev gmp-dev"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	# LFS: Coreutils Internationalization Fixes Patch
    2.24 +	patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch
    2.25 +	# SliTaz: show extended info touching CPU via uname
    2.26 +	patch  -p1 -i $WOK/coreutils/stuff/uname.u
    2.27 +
    2.28 +	autoreconf -fi
    2.29 +
    2.30 +	FORCE_UNSAFE_CONFIGURE=1 \
    2.31 +	./configure \
    2.32 +		--enable-single-binary=symlinks \
    2.33 +		$CONFIGURE_ARGS &&
    2.34 +	make && make install
    2.35 +
    2.36 +	# LFS: Move programs to the locations specified by the FHS
    2.37 +	mkdir -p $install/bin $install/usr/sbin $install/usr/share/man/man8
    2.38 +	for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
    2.39 +		mknod mv pwd rm rmdir stty sync true uname; do
    2.40 +		rm $install/usr/bin/$i
    2.41 +		ln -s /usr/bin/coreutils $install/bin/$i
    2.42 +	done
    2.43 +	rm $install/usr/bin/chroot
    2.44 +	ln -s /usr/bin/coreutils $install/usr/sbin/chroot
    2.45 +	mv  $install/usr/share/man/man1/chroot.1 \
    2.46 +		$install/usr/share/man/man8/chroot.8
    2.47 +	sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
    2.48 +
    2.49 +	find $install/usr/share/man -type f -exec gzip -9 \{\} \;
    2.50 +}
    2.51 +
    2.52 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.53 +genpkg_rules()
    2.54 +{
    2.55 +	cp -a $install/* $fs
    2.56 +	rm -r $fs/usr/share/info $fs/usr/share/locale
    2.57 +}
    2.58 +
    2.59 +post_install()
    2.60 +{
    2.61 +	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
    2.62 +	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
    2.63 +	rm "$1/bin/base64"   # /usr/bin/base64
    2.64 +	rm "$1/bin/kill"     # /usr/bin/kill
    2.65 +	rm "$1/bin/mktemp"   # /usr/bin/mktemp
    2.66 +	rm "$1/bin/nice"     # /usr/bin/nice
    2.67 +	rm "$1/bin/printenv" # /usr/bin/printenv
    2.68 +	rm "$1/bin/sleep"    # /usr/bin/sleep
    2.69 +	rm "$1/bin/stat"     # /usr/bin/stat
    2.70 +	rm "$1/bin/touch"    # /usr/bin/touch
    2.71 +}
    2.72 +
    2.73 +post_remove()
    2.74 +{
    2.75 +	# Restore all Busybox applets that have been replaced
    2.76 +
    2.77 +	# /bin:
    2.78 +	for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \
    2.79 +		mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \
    2.80 +		touch true uname; do
    2.81 +		busybox ln -s busybox "$1/bin/$i"
    2.82 +	done
    2.83 +
    2.84 +	# /usr/bin:
    2.85 +	for i in '[' basename cksum comm cut dirname du env expand expr fold \
    2.86 +		groups head hostid id install logname md5sum mkfifo nohup od printf \
    2.87 +		readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \
    2.88 +		tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \
    2.89 +		yes; do
    2.90 +		busybox ln -s /bin/busybox "$1/usr/bin/$i"
    2.91 +	done
    2.92 +
    2.93 +	# /usr/sbin:
    2.94 +	busybox ln -s /bin/busybox "$1/usr/sbin/chroot"
    2.95 +}