The Free Software Foundation's core utilities Maintained by:firstname.lastname@example.org Port Added: 17 Dec 2003 01:31:13 Also Listed In:textproc License: GPLv3
The Free Software Foundation's core utilities:
basename, cat, chgrp, chmod, chown, chroot, cksum, comm, cp, csplit,
cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr,
factor, false, fmt, fold, groups, head, hostid, hostname, id, install,
join, kill, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod, mv, nice,
nl, nohup, od, paste, pathchk, pinky, pr, printenv, printf, ptx, pwd,
readlink, rm, rmdir, seq, sha1sum, shred, sleep, sort, split, stat, stty,
su, sum, sync, tac, tail, tee, test, touch, tr, true, tsort, tty, uname,
unexpand, uniq, unlink, uptime, users, vdir, wc, who, whoami, yes
Similar utilities to most of these exist in the FreeBSD base system,
but many of the GNU versions have added functionality that is
Note that this port will install these utilities with a `g' prefix,
for example gdate, gexpr, and gtest, but the texinfo documentation
will refer to them without the `g' prefix.
GNU su does not support a wheel group. This port installs it
without the suid bit, unless you define WITH_SUID while building.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
To install the port:cd /usr/ports/sysutils/coreutils/ && make install clean To add the package:pkg install sysutils/coreutils
===> The following configuration options are available for coreutils-8.22_2:
GMP=off: GMP (multiple precision arithmetic) support
NLS=on: Native Language Support
===> Use 'make config' to modify these settings
- update to 8.22
- support staging, strip libraries
- trim master_site
- use option helpers
- shift away from inclusion of bsd.port.pre.mk as bsd.port.options.mk
can test OSVERSION (less expensive)
- patch of Makefile was merged upstream so removed patch
Submitted by: jgh@ (myself)
Approved by: maintainer timeout, email@example.com ( 15 days )
- Fix reinstall/upgrade trying to use gmkdir since it
was detected during build 
- Mark MAKE_JOBS_UNSAFE:
help2man: can't get '--help' info from man/stty.td/stty
gmake: *** [man/stty.1] Error 127
gmake: *** Waiting for unfinished jobs....
PR: ports/173218 
Submitted by: Jason Harris <firstname.lastname@example.org> (maintainer) 
Feature safe: yes
- Rename gstat to gnustat; otherwise it collides with base gstat (for geom) 
- Correct REINPLACE for permissions; \+ is a special character in a BRE
Submitted by: Veniamin Gvozdikov <email@example.com>
Reviewed by: Jason Hellenthal, wxs, eadler
Approved by: Jason Harris <firstname.lastname@example.org> (maintainer)
Fixup for my previous commit/patch.
- OSVERSION check should be against 800039 or higher, as that's when
the sgtty changes were committed.
- Fix stty.c patch. Previous version would result in termios bits
being overridden by #include <sys/ioctl_compat.h>, causing coreutils'
stty to modify bits different than /bin/stty. This version removes
tab1/tab2 delay support, since tab1/tab2 delays aren't available in HEAD
outside of the binary compatibility interface. Also fixes stty --help
usage to indicate only tab0 and tab3 are available.
Fix-up for 8.0-CURRENT. src/stty.c fails to compile due to TAB1 and TAB2
termios bits being undefined. They've been moved to sys/ioctl_compat.h which
requires _KERNEL be defined. Somewhat of an ugly hack; possible alternative
would be to remove use of TAB1 and TAB2 in src/stty.c altogether.
Reported by: jsa @ EFnet
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.
To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.
To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.
Changes to Mk/*:
- Add runtime detection magic in bsd.port.mk
(Only the first 15 lines of the commit message are shown above )
Minor enhancement to sysutils/coreutils
Cleanup conflicts in this port (fileutils, sh-utils and
textutils don't exist anymore)
Provide a regression-test target to determine the convenience
of updating this port. Add commented USE_BISON line as it
is recommended but not required, maybe future versions will
Update the WWW.
No functional change.
Submitted by: "Pedro F. Giffuni" <email@example.com>
Approved by: maintainer timeout
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
Submitted by: edwin@
Approved by: portmgr (pav)
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them. This is determined by running ``configure --help'' in
do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
Approved by: portmgr
Discussed with: stas (Mk/*), gerald (info related stuffs)
Tested by: pointyhat exp run
From the PR:
- Update to GNU coreutils 6.9
- Eliminate configure warning
- Sort plist
While I am here:
- Remove unsupported checksum algorithm SHA1 and RMD160
Submitted by: "Eric P. Scott" <eps+pbug0704 AT ana.com>
Approved by: Jason Harris <jharris AT widomaker.com> (maintainer)
Remove USE_GPG from all effected ports. This knob is a no-op and the way it
was supposed to work is useless, because if we can't trust the distfile from
the remote machine, we can't trust the signature from the same machine either.
Our MD5 and SHA256 are good for checking both the sanity and the
trustiness of distfiles.
Approved by: portmgr (erwin), erwin (mentor)
Clean up handling of locale directories at deinstall-time:
* Don't remove "system directories" (which were created by BSD.*.dist)
* Silently try to remove locale directories which we might have created
Add coreutils, port of basic GNU file, shell and text manipulation utilities.
This port replaces fileutils, shellutils and textutils, which were distributed
as three individual sets, but now have been combined into coreutils.
For more details, see http://www.gnu.org/software/coreutils/
Submitted by: Jason Harris <firstname.lastname@example.org>