# HG changeset patch # User Aleksej Bobylev # Date 1466000830 -10800 # Node ID 5b84caa85ec8b3d766c248c670344f9220a6f8f2 # Parent 1d0123efe74c844c1abbcd37e9f035c5e209ed20 Add coreutils-multicall (GNU Coreutils all-in-one, like Busybox; 4 times lighter than ordinary Coreutils) diff -r 1d0123efe74c -r 5b84caa85ec8 coreutils-multicall/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreutils-multicall/description.txt Wed Jun 15 17:27:10 2016 +0300 @@ -0,0 +1,108 @@ +Coreutils: Core GNU (file, text, shell) utilities. + + * [ exit with the status determined by expression + * base32: base32 encode/decode data and print to standard output + * base64: base64 encode/decode data and print to standard output + * basename: strip directory and suffix from filenames + * cat: concatenate files and print on the standard output + * chcon: change file SELinux security context + * chgrp: change group ownership + * chmod: change file mode bits + * chown: change file owner and group + * chroot: run command or interactive shell with special root directory + * cksum: checksum and count the bytes in a file + * comm: compare two sorted files line by line + * cp: copy files and directories + * csplit: split a file into sections determined by context lines + * cut: remove sections from each line of files + * date: print or set the system date and time + * dd: convert and copy a file + * df: report file system disk space usage + * dir: list directory contents + * dircolors: color setup for ls + * dirname: strip last component from file name + * du: estimate file space usage + * echo: display a line of text + * env: run a program in a modified environment + * expand: convert tabs to spaces + * expr: evaluate expressions + * factor: factor numbers + * false: do nothing, unsuccessfully + * fmt: simple optimal text formatter + * fold: wrap each input line to fit in specified width + * groups: print the groups a user is in + * head: output the first part of files + * hostid: print the numeric identifier for the current host + * id: print real and effective user and group IDs + * install: copy files and set attributes + * join: join lines of two files on a common field + * kill: send signals to processes, or list signals + * link: call the link function to create a link to a file + * ln: make links between files + * logname: print user's login name + * ls: list directory contents + * md5sum: compute and check MD5 message digest + * mkdir: make directories + * mkfifo: make FIFOs (named pipes) + * mknod: make block or character special files + * mktemp: create a temporary file or directory + * mv: move (rename) files + * nice: run a program with modified scheduling priority + * nl: number lines of files + * nohup: run a command immune to hangups, with output to a non-tty + * nproc: print the number of processing units available + * numfmt: convert numbers from/to human-readable strings + * od: dump files in octal and other formats + * paste: merge lines of files + * pathchk: check whether file names are valid or portable + * pinky: lightweight finger + * pr: convert text files for printing + * printenv: print all or part of environment + * printf: format and print data + * ptx: produce a permuted index of file contents + * pwd: print name of current/working directory + * readlink: print resolved symbolic links or canonical file names + * realpath: print the resolved path + * rm: remove files or directories + * rmdir: remove empty directories + * runcon: run command with specified SELinux security context + * seq: print a sequence of numbers + * sha1sum: compute and check SHA1 message digest + * sha224sum: compute and check SHA224 message digest + * sha256sum: compute and check SHA256 message digest + * sha384sum: compute and check SHA384 message digest + * sha512sum: compute and check SHA512 message digest + * shred: overwrite a file to hide its contents, and optionally delete it + * shuf: generate random permutations + * sleep: delay for a specified amount of time + * sort: sort lines of text files + * split: split a file into pieces + * stat: display file or file system status + * stdbuf: run command with modified buffering operations for its standard + streams + * stty: change and print terminal line settings + * sum: checksum and count the blocks in a file + * sync: synchronize cached writes to persistent storage + * tac: concatenate and print files in reverse + * tail: output the last part of files + * tee: read from standard input and write to standard output and files + * test: check file types and compare values + * timeout: run a command with a time limit + * touch: change file timestamps + * tr: translate or delete characters + * true: do nothing, successfully + * truncate: shrink or extend the size of a file to the specified size + * tsort: perform topological sort + * tty: print the file name of the terminal connected to standard input + * uname: print system information + * unexpand: convert spaces to tabs + * uniq: report or omit repeated lines + * unlink: call the unlink function to remove the specified file + * uptime: tell how long the system has been running + * users: print the user names of users currently logged in to the current + host + * vdir: list directory contents + * wc: print newline, word, and byte counts for each file + * who: show who is logged on + * whoami: print effective user ID + * yes: output a string repeatedly until killed diff -r 1d0123efe74c -r 5b84caa85ec8 coreutils-multicall/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreutils-multicall/receipt Wed Jun 15 17:27:10 2016 +0300 @@ -0,0 +1,92 @@ +# SliTaz package receipt. + +PACKAGE="coreutils-multicall" +VERSION="8.25" +CATEGORY="system-tools" +SHORT_DESC="Utilities for using and setting the basic system." +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL3" +WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" +TARBALL="coreutils-$VERSION.tar.xz" +WGET_URL="$GNU_MIRROR/coreutils/$TARBALL" + +SIBLINGS="coreutils" +DEPENDS="glibc-base acl attr libcap gmp" +BUILD_DEPENDS="automake xz libcap-dev gmp-dev" + +# Rules to configure and make the package. +compile_rules() +{ + # LFS: Coreutils Internationalization Fixes Patch + patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch + # SliTaz: show extended info touching CPU via uname + patch -p1 -i $WOK/coreutils/stuff/uname.u + + autoreconf -fi + + FORCE_UNSAFE_CONFIGURE=1 \ + ./configure \ + --enable-single-binary=symlinks \ + $CONFIGURE_ARGS && + make && make install + + # LFS: Move programs to the locations specified by the FHS + mkdir -p $install/bin $install/usr/sbin $install/usr/share/man/man8 + for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \ + mknod mv pwd rm rmdir stty sync true uname; do + rm $install/usr/bin/$i + ln -s /usr/bin/coreutils $install/bin/$i + done + rm $install/usr/bin/chroot + ln -s /usr/bin/coreutils $install/usr/sbin/chroot + mv $install/usr/share/man/man1/chroot.1 \ + $install/usr/share/man/man8/chroot.8 + sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 + + find $install/usr/share/man -type f -exec gzip -9 \{\} \; +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs + rm -r $fs/usr/share/info $fs/usr/share/locale +} + +post_install() +{ + # Remove Busybox applets in order to not clash with ("/bin", "/sbin", + # "/usr/bin" and "/usr/sbin" conflicts with the same filename) + rm "$1/bin/base64" # /usr/bin/base64 + rm "$1/bin/kill" # /usr/bin/kill + rm "$1/bin/mktemp" # /usr/bin/mktemp + rm "$1/bin/nice" # /usr/bin/nice + rm "$1/bin/printenv" # /usr/bin/printenv + rm "$1/bin/sleep" # /usr/bin/sleep + rm "$1/bin/stat" # /usr/bin/stat + rm "$1/bin/touch" # /usr/bin/touch +} + +post_remove() +{ + # Restore all Busybox applets that have been replaced + + # /bin: + for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \ + mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \ + touch true uname; do + busybox ln -s busybox "$1/bin/$i" + done + + # /usr/bin: + for i in '[' basename cksum comm cut dirname du env expand expr fold \ + groups head hostid id install logname md5sum mkfifo nohup od printf \ + readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \ + tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \ + yes; do + busybox ln -s /bin/busybox "$1/usr/bin/$i" + done + + # /usr/sbin: + busybox ln -s /bin/busybox "$1/usr/sbin/chroot" +}