Commit edad8fc2 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

coreutils-8.31, bin-4.9

parent 86dae933
This diff is collapsed.
../../../sources/packages/a/banners/patches/banners.patch -p0
../../../sources/packages/a/todos/patches/todos.patch -p0
../../../sources/packages/m/fb/fbset/patches/fbset-2.1.patch -p0
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
bin: bin @VERSION@ (some command-line utilities)
bin:
bin: The bin package is a collection of miscellaneous command-line
bin: utilities. Some of these (such as 'tempfile') are used in system
bin: scripts.
bin:
bin:
bin:
bin:
bin:
bin:
#!/bin/sh
# Preserve new files
install_file() {
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
# If there's no file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
install_file etc/fb.modes.new
}
# arg 1: the new package version
# arg 2: the old package version
pre_update() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_update() {
post_install
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
/bin/true
}
operation=$1
shift
$operation $*
/*
* Linux Frame Buffer Device Configuration
*
* © Copyright 1995-1999 by Geert Uytterhoeven
* (Geert.Uytterhoeven@cs.kuleuven.ac.be)
*
* --------------------------------------------------------------------------
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of the Linux
* distribution for more details.
*
* Petr Vandrovec <vandrove@vc.cvut.cz>:
* -grayscale, -rgba, -nonstd, VGA modes reporting
*
* Brad Midgley <brad@exodus.pht.com>:
* -match
*
*/
#!/bin/sh
echo -n "Insert source disk in first floppy drive, then hit enter"
read ans;
MCOOKIE=`mcookie`
dd if=/dev/fd0 of=/tmp/dcopy.$MCOOKIE
echo -n "Remove source disk and insert destination disk, then hit enter"
read ans;
dd of=/dev/fd0 if=/tmp/dcopy.$MCOOKIE
/bin/rm -f /tmp/dcopy.$MCOOKIE
#
# A script to extract binary files from uudecoded files. Ignores all headers
# and irrelevant stuff. Has shortfalls like all such scripts/programs but works
# (almost) 100% of the time. We tested it against many such tools available
# at many ftp sites and found it having higher success rate. There are
# a few c-programs out there and it is slower as compared to them but it
# works even in those cases when they fail to work.
# The only time it will not work is that if uuencoded source file is cut up
# in many pieces and LAST part contains LESS THAN 3 SOURCE lines in it and
# we know that such cases (almost) never arise....guarenteed....:)
#
# Written by Tahir Zia Khawaja and
# Nasir Ahmed Noor
#umnoor@ccu.umanitoba.ca
#umkhawaj@ccu.umanitoba.ca
#
awk '$0 ~ /^begin / {print $0; exit}' $1 > $$gifile
egrep "^M[^a-z]" $1 >> $$gifile
awk 'NR > 2 {sl=lr; lr=pr; pr=$0} $1 ~ /^end/ {print sl; print lr; print pr; exit}' $1 >> $$gifile
uudecode $$gifile
rm $$gifile
COMPONENT_TARGETS = $(HARDWARE_PC32)
COMPONENT_TARGETS += $(HARDWARE_PC64)
COMPONENT_TARGETS += $(HARDWARE_CB1X)
COMPONENT_TARGETS += $(HARDWARE_CB2X)
COMPONENT_TARGETS += $(HARDWARE_CB3X)
COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
COMPONENT_TARGETS += $(HARDWARE_POIN2)
COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
COMPONENT_TARGETS += $(HARDWARE_M201)
COMPONENT_TARGETS += $(HARDWARE_MXV)
COMPONENT_TARGETS += $(HARDWARE_P201)
COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
COMPONENT_TARGETS += $(HARDWARE_P212)
COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
COMPONENT_TARGETS += $(HARDWARE_Q201)
COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
COMPONENT_TARGETS += $(HARDWARE_CI20)
COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
COMPONENT_TARGETS += $(HARDWARE_MBC4_PC)
COMPONENT_TARGETS += $(HARDWARE_S824L)
COMPONENT_TARGETS += $(HARDWARE_VESNIN)
COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
NEED_ABS_PATH = true
COMPONENT_IS_3PP = true
include ../../../build-system/constants.mk
SOURCE_REQUIRES = sources/GNU/coreutils
REQUIRES = app/acl/2.2.53
REQUIRES += secure/libcap/2.27
REQUIRES += net/openssl/1.1.1d
# ======= __END_OF_REQUIRES__ =======
version = 8.31
tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/coreutils/coreutils-$(version).tar.xz
SRC_ARCHIVE = $(tar_xz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/coreutils-$(version)
src_dir_name = coreutils-$(version)
src_done = $(TARGET_BUILD_DIR)/.source_done
PATCHES = PATCHES
build_dir = $(TARGET_BUILD_DIR)/build
build_target = $(TARGET_BUILD_DIR)/.build_done
install_target = $(TARGET_BUILD_DIR)/.install_done
####### Targets
PKG_GROUP = app
#
# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
#
COREUTILS_PKG_NAME = coreutils
COREUTILS_PKG_VERSION = 8.31
COREUTILS_PKG_ARCH = $(TOOLCHAIN)
COREUTILS_PKG_DISTRO_NAME = $(DISTRO_NAME)
COREUTILS_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
COREUTILS_PKG_GROUP = $(PKG_GROUP)
### |---handy-ruler-------------------------------|
COREUTILS_PKG_SHORT_DESCRIPTION = core GNU utilities
COREUTILS_PKG_URL = $(BUG_URL)
COREUTILS_PKG_LICENSE = GPLv2
COREUTILS_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(COREUTILS_PKG_NAME)-pkg-description
COREUTILS_PKG_DESCRIPTION_FILE_IN = $(COREUTILS_PKG_NAME)-pkg-description.in
COREUTILS_PKG_INSTALL_SCRIPT = $(COREUTILS_PKG_NAME)-pkg-install.sh
COREUTILS_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(COREUTILS_PKG_NAME)-package
pkg_basename = $(COREUTILS_PKG_NAME)-$(COREUTILS_PKG_VERSION)-$(COREUTILS_PKG_ARCH)-$(COREUTILS_PKG_DISTRO_NAME)-$(COREUTILS_PKG_DISTRO_VERSION)
pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
pkg_certificate = $(call cert-name,$(pkg_archive))
pkg_signature = $(call sign-name,$(pkg_archive))
pkg_description = $(call desc-name,$(pkg_archive))
products = $(call pkg-files,$(pkg_archive))
BUILD_TARGETS = $(build_target)
BUILD_TARGETS += $(install_target)
PRODUCT_TARGETS = $(products)
ROOTFS_TARGETS = $(pkg_archive)
include ../../../build-system/core.mk
env_sysroot = DESTDIR=$(COREUTILS_PKG)
environment = FORCE_UNSAFE_CONFIGURE=1
environment += DEFAULT_POSIX2_VERSION=199209
extra_configure_switches = --libdir=/lib$(LIBSUFFIX)
extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
extra_configure_switches += --infodir=/usr/share/info
extra_configure_switches += --mandir=/usr/share/man
extra_configure_switches += --sysconfdir=/etc
extra_configure_switches += --disable-rpath
extra_configure_switches += --bindir=/bin
extra_configure_switches += --without-gmp
extra_configure_switches += --enable-install-program=arch
####### Dependencies
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
$(APPLY_PATCHES)
@touch $@
$(build_target): $(src_done)
@mkdir -p $(build_dir)
@cd $(build_dir) && \
$(BUILD_ENVIRONMENT) $(environment) ../$(src_dir_name)/configure \
--prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET) \
$(extra_configure_switches)
@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(environment) $(MAKE)
@touch $@
$(install_target): $(build_target)
@mkdir -p $(COREUTILS_PKG)
@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(environment) $(MAKE) -j1 install $(env_sysroot)
@rm -rf $(COREUTILS_PKG)/usr/share/locale/*/LC_TIME
@mkdir -p $(COREUTILS_PKG)/bin $(COREUTILS_PKG)/usr/bin
@( cd $(COREUTILS_PKG)/bin ; mv mktemp mktemp-gnu )
@( cd $(COREUTILS_PKG)/usr/bin ; \
for file in ../../bin/* ; do \
ln -sf $$file . ; \
done \
)
@mkdir -p $(COREUTILS_PKG)/etc/profile.d
@cat $(CURDIR)/dir-colors/DIR_COLORS > $(COREUTILS_PKG)/etc/DIR_COLORS.new
@cp -a $(CURDIR)/dir-colors/coreutils-dircolors.* $(COREUTILS_PKG)/etc/profile.d
@chmod 0755 $(COREUTILS_PKG)/etc/profile.d/coreutils-dircolors.*
@( cd $(COREUTILS_PKG)/bin ; ln -sf install ginstall )
@( cd $(COREUTILS_PKG)/usr/bin ; ln -sf ../../bin/ginstall ginstall )
@( cd $(COREUTILS_PKG)/usr/share/man/man1 ; ln -sf install.1 ginstall.1 )
# ======= Remove 'hostname', 'kill', 'su', 'uptime' =======
@for dupe in hostname kill su uptime ; do \
rm -f $(COREUTILS_PKG)/bin/$$dupe $(COREUTILS_PKG)/usr/bin/$$dupe \
$(COREUTILS_PKG)/usr/sbin/$$dupe $(COREUTILS_PKG)/usr/share/man/man?/$$dupe.* ; \
done
# ======= Install Documentation =======
@rm -f $(COREUTILS_PKG)/usr/share/info/dir
@gzip -9 $(COREUTILS_PKG)/usr/share/info/*
@if [ -d $(COREUTILS_PKG)/usr/share/man ]; then \
( cd $(COREUTILS_PKG)/usr/share/man ; \
for manpagedir in `find . -type d -name "man*"` ; do \
( cd $$manpagedir ; \
for eachpage in `find . -type l -maxdepth 1` ; do \
ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
rm $$eachpage ; \
done ; \
gzip -9 *.? ; \
) \
done \
) \
fi
@mkdir -p $(COREUTILS_PKG)/usr/doc/$(src_dir_name)
@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
$(COREUTILS_PKG)/usr/doc/$(src_dir_name)
@mkdir -p $(COREUTILS_PKG)/usr/share/doc/$(src_dir_name)
@( cd $(SRC_DIR) ; \
cp -a AUTHORS COPYING INSTALL NEWS README THANKS THANKS-* TODO \
$(COREUTILS_PKG)/usr/share/doc/$(src_dir_name) \
)
@( cd $(SRC_DIR) ; \
if [ -r ChangeLog ]; then \
DOCSDIR=`echo $(COREUTILS_PKG)/usr/share/doc/$(src_dir_name)` ; \
cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
fi \
)
# ======= Install the same to $(TARGET_DEST_DIR) =======
$(call install-into-devenv, $(COREUTILS_PKG))
# ======= Strip binaries =======
@( cd $(COREUTILS_PKG) ; \
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
)
@touch $@
$(COREUTILS_PKG_DESCRIPTION_FILE): $(COREUTILS_PKG_DESCRIPTION_FILE_IN)
@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
$(pkg_certificate) : $(pkg_archive) ;
$(pkg_signature) : $(pkg_archive) ;
$(pkg_description) : $(pkg_archive) ;
$(pkg_archive): $(install_target) $(COREUTILS_PKG_DESCRIPTION_FILE) $(COREUTILS_PKG_INSTALL_SCRIPT)
@cp $(COREUTILS_PKG_DESCRIPTION_FILE) $(COREUTILS_PKG)/.DESCRIPTION
@cp $(COREUTILS_PKG_INSTALL_SCRIPT) $(COREUTILS_PKG)/.INSTALL
@$(BUILD_PKG_REQUIRES) $(COREUTILS_PKG)/.REQUIRES
@echo "pkgname=$(COREUTILS_PKG_NAME)" > $(COREUTILS_PKG)/.PKGINFO ; \
echo "pkgver=$(COREUTILS_PKG_VERSION)" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "arch=$(COREUTILS_PKG_ARCH)" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "distroname=$(COREUTILS_PKG_DISTRO_NAME)" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "distrover=$(COREUTILS_PKG_DISTRO_VERSION)" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "group=$(COREUTILS_PKG_GROUP)" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "short_description=\"$(COREUTILS_PKG_SHORT_DESCRIPTION)\"" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "url=$(COREUTILS_PKG_URL)" >> $(COREUTILS_PKG)/.PKGINFO ; \
echo "license=$(COREUTILS_PKG_LICENSE)" >> $(COREUTILS_PKG)/.PKGINFO
@$(PSEUDO) sh -c "cd $(COREUTILS_PKG) && chown -R root:root . && $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
../../../sources/GNU/coreutils/patches/coreutils-8.31-uname.patch -p0
../../../sources/GNU/coreutils/patches/coreutils-8.31-no-ls-quoting.patch -p0
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
coreutils: coreutils @VERSION@ (core GNU utilities)
coreutils:
coreutils: These are the GNU core utilities, the basic command line programs
coreutils: such as 'mkdir', 'ls', and 'rm' that are needed for the system to
coreutils: run. This package is the union of the GNU fileutils, sh-utils, and
coreutils: textutils packages. Most of these programs have significant
coreutils: advantages over their Unix counterparts, such as greater speed,
coreutils: additional options, and fewer arbitrary limits.
coreutils:
coreutils:
coreutils:
#!/bin/sh
# Preserve new files
install_file() {
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
# If there's no file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
install_file etc/DIR_COLORS.new
#
# NOTE:
# 'install-info' can work using relative paths and we can make use build machine
# utility during installation to the some partition and use target 'install-info'
# during installation directly on the running target machine.
#
if [ -x /usr/bin/install-info ] ; then
install-info --info-dir=usr/share/info usr/share/info/coreutils.info.gz 2>/dev/null
elif ! grep "(coreutils)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
cat << EOF >> usr/share/info/dir
Basics
* Common options: (coreutils)Common options.
* Coreutils: (coreutils). Core GNU (file, text, shell) utilities.
* Date input formats: (coreutils)Date input formats.
* File permissions: (coreutils)File permissions.
Access modes.
Individual utilities
* arch: (coreutils)arch invocation. Print machine hardware name.
* b2sum: (coreutils)b2sum invocation. Print or check BLAKE2 digests.
* base32: (coreutils)base32 invocation. Base32 encode/decode data.
* base64: (coreutils)base64 invocation. Base64 encode/decode data.
* basename: (coreutils)basename invocation. Strip directory and suffix.
* basenc: (coreutils)basenc invocation. Encoding/decoding of data.
* cat: (coreutils)cat invocation. Concatenate and write files.
* chcon: (coreutils)chcon invocation. Change SELinux CTX of files.
* chgrp: (coreutils)chgrp invocation. Change file groups.
* chmod: (coreutils)chmod invocation. Change access permissions.
* chown: (coreutils)chown invocation. Change file owners and groups.
* chroot: (coreutils)chroot invocation. Specify the root directory.
* cksum: (coreutils)cksum invocation. Print POSIX CRC checksum.
* comm: (coreutils)comm invocation. Compare sorted files by line.
* cp: (coreutils)cp invocation. Copy files.
* csplit: (coreutils)csplit invocation. Split by context.
* cut: (coreutils)cut invocation. Print selected parts of lines.
* date: (coreutils)date invocation. Print/set system date and time.
* dd: (coreutils)dd invocation. Copy and convert a file.
* df: (coreutils)df invocation. Report file system disk usage.
* dircolors: (coreutils)dircolors invocation. Color setup for ls.
* dirname: (coreutils)dirname invocation. Strip last file name component.
* dir: (coreutils)dir invocation. List directories briefly.
* du: (coreutils)du invocation. Report on disk usage.
* echo: (coreutils)echo invocation. Print a line of text.
* env: (coreutils)env invocation. Modify the environment.
* expand: (coreutils)expand invocation. Convert tabs to spaces.
* expr: (coreutils)expr invocation. Evaluate expressions.
* factor: (coreutils)factor invocation. Print prime factors
* false: (coreutils)false invocation. Do nothing, unsuccessfully.
* fmt: (coreutils)fmt invocation. Reformat paragraph text.
* fold: (coreutils)fold invocation. Wrap long input lines.
* groups: (coreutils)groups invocation. Print group names a user is in.
* head: (coreutils)head invocation. Output the first part of files.
* hostid: (coreutils)hostid invocation. Print numeric host identifier.
* hostname: (coreutils)hostname invocation. Print or set system name.
* id: (coreutils)id invocation. Print user identity.
* install: (coreutils)install invocation. Copy files and set attributes.
* join: (coreutils)join invocation. Join lines on a common field.
* kill: (coreutils)kill invocation. Send a signal to processes.
* link: (coreutils)link invocation. Make hard links between files.
* ln: (coreutils)ln invocation. Make links between files.
* logname: (coreutils)logname invocation. Print current login name.
* ls: (coreutils)ls invocation. List directory contents.
* md5sum: (coreutils)md5sum invocation. Print or check MD5 digests.
* mkdir: (coreutils)mkdir invocation. Create directories.
* mkfifo: (coreutils)mkfifo invocation. Create FIFOs (named pipes).
* mknod: (coreutils)mknod invocation. Create special files.
* mktemp: (coreutils)mktemp invocation. Create temporary files.
* mv: (coreutils)mv invocation. Rename files.
* nice: (coreutils)nice invocation. Modify niceness.
* nl: (coreutils)nl invocation. Number lines and write files.
* nohup: (coreutils)nohup invocation. Immunize to hangups.
* nproc: (coreutils)nproc invocation. Print the number of processors.
* numfmt: (coreutils)numfmt invocation. Reformat numbers.
* od: (coreutils)od invocation. Dump files in octal, etc.
* paste: (coreutils)paste invocation. Merge lines of files.
* pathchk: (coreutils)pathchk invocation. Check file name portability.
* printenv: (coreutils)printenv invocation. Print environment variables.
* printf: (coreutils)printf invocation. Format and print data.
* pr: (coreutils)pr invocation. Paginate or columnate files.
* ptx: (coreutils)ptx invocation. Produce permuted indexes.
* pwd: (coreutils)pwd invocation. Print working directory.
* readlink: (coreutils)readlink invocation. Print referent of a symlink.
* realpath: (coreutils)realpath invocation. Print resolved file names.
* rmdir: (coreutils)rmdir invocation. Remove empty directories.
* rm: (coreutils)rm invocation. Remove files.
* runcon: (coreutils)runcon invocation. Run in specified SELinux CTX.
* seq: (coreutils)seq invocation. Print numeric sequences
* sha1sum: (coreutils)sha1sum invocation. Print or check SHA-1 digests.
* sha2: (coreutils)sha2 utilities. Print or check SHA-2 digests.
* shred: (coreutils)shred invocation. Remove files more securely.
* shuf: (coreutils)shuf invocation. Shuffling text files.
* sleep: (coreutils)sleep invocation. Delay for a specified time.
* sort: (coreutils)sort invocation. Sort text files.
* split: (coreutils)split invocation. Split into pieces.
* stat: (coreutils)stat invocation. Report file(system) status.
* stdbuf: (coreutils)stdbuf invocation. Modify stdio buffering.
* stty: (coreutils)stty invocation. Print/change terminal settings.
* sum: (coreutils)sum invocation. Print traditional checksum.
* sync: (coreutils)sync invocation. Synchronize memory to disk.
* tac: (coreutils)tac invocation. Reverse files.
* tail: (coreutils)tail invocation. Output the last part of files.
* tee: (coreutils)tee invocation. Redirect to multiple files.
* test: (coreutils)test invocation. File/string tests.
* timeout: (coreutils)timeout invocation. Run with time limit.
* touch: (coreutils)touch invocation. Change file timestamps.
* true: (coreutils)true invocation. Do nothing, successfully.
* truncate: (coreutils)truncate invocation. Shrink/extend size of a file.
* tr: (coreutils)tr invocation. Translate characters.
* tsort: (coreutils)tsort invocation. Topological sort.
* tty: (coreutils)tty invocation. Print terminal name.
* uname: (coreutils)uname invocation. Print system information.
* unexpand: (coreutils)unexpand invocation. Convert spaces to tabs.
* uniq: (coreutils)uniq invocation. Uniquify files.
* unlink: (coreutils)unlink invocation. Removal via unlink(2).
* uptime: (coreutils)uptime invocation. Print uptime and load.
* users: (coreutils)users invocation. Print current user names.
* vdir: (coreutils)vdir invocation. List directories verbosely.
* wc: (coreutils)wc invocation. Line, word, and byte counts.
* whoami: (coreutils)whoami invocation. Print effective user ID.
* who: (coreutils)who invocation. Print who is logged in.
* yes: (coreutils)yes invocation. Print a string indefinitely.
EOF
fi
}
# arg 1: the new package version
# arg 2: the old package version
pre_update() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_update() {
post_install
}
# arg 1: the old package version
pre_remove() {
if [ -x /usr/bin/install-info ] ; then
install-info --delete --info-file=usr/share/info/coreutils.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
fi
}
# arg 1: the old package version
post_remove() {
/bin/true
}
operation=$1
shift
$operation $*
#
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
#
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# (see the scripts in /etc/profile.d/coreutils-dircolors.* to change default
# options in the Slackware aliases)
#
# Below, there should be one TERM entry for each termtype that is colorizable
TERM Eterm
TERM ansi
TERM color-xterm
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM cons25
TERM console
TERM cygwin
TERM dtterm
TERM eterm-color
TERM gnome
TERM gnome-256color
TERM jfbterm
TERM konsole
TERM kterm
TERM linux
TERM linux-c
TERM mach-color
TERM mlterm
TERM putty
TERM rxvt
TERM rxvt-256color
TERM rxvt-cygwin
TERM rxvt-cygwin-native
TERM rxvt-unicode
TERM rxvt-unicode-256color
TERM rxvt-unicode256
TERM screen
TERM screen-256color
TERM screen-256color-bce
TERM screen-bce
TERM screen-w
TERM screen.linux
TERM screen.rxvt
TERM terminator
TERM tmux
TERM tmux-256color
TERM vt100
TERM xterm
TERM xterm-16color
TERM xterm-256color
TERM xterm-88color
TERM xterm-color
TERM xterm-debian
TERM xterm-new
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
# RESET 0 # reset to "normal" color
DIR 01;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.)
# HARDLINK 44;37 # regular file with more than one link
FIFO 40;33 # pipe
SOCK 01;35 # socket
DOOR 01;35 # door
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file
SETUID 37;41 # file that is setuid (u+s)
SETGID 30;43 # file that is setgid (g+s)
CAPABILITY 30;41 # file with capability
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
EXEC 01;32 # This is for files with execute permission:
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# DOS-style executables (bright green)
.bat 01;32
.btm 01;32
.cmd 01;32
.com 01;32
.dll 01;32
.exe 01;32
# archives or compressed (bright red)
.7z 01;31
.ace 01;31
.arj 01;31
.bz2 01;31
.cpio 01;31
.deb 01;31
.dz 01;31
.gz 01;31
.jar 01;31
.lha 01;31
.lz 01;31
.lzh 01;31
.lzma 01;31
.rar 01;31
.rpm 01;31
.rz 01;31
.tar 01;31
.taz 01;31
.tb2 01;31
.tbz2 01;31
.tbz 01;31
.tgz 01;31
.tlz 01;31
.trz 01;31
.txz 01;31
.tz 01;31
.tz2 01;31
.xz 01;31
.z 01;31
.zip 01;31
.zoo 01;31
# multimedia (video/image/sound) file formats
.aac 01;35
.anx 01;35
.asf 01;35
.au 01;35
.axa 01;35
.axv 01;35
.avi 01;35
.bmp 01;35
.divx 01;35
.flac 01;35
.gif 01;35
.ico 01;35
.jpg 01;35
.jpeg 01;35
.m2a 01;35
.m2v 01;35
.m4a 01;35
.m4p 01;35
.m4v 01;35
.mid 01;35
.midi 01;35
.mka 01;35
.mkv 01;35