Commit Graph

35 Commits

Author SHA1 Message Date
Rob Landley
e13985bf81 Document % argument suffixes in toybox --help. 2018-10-21 21:55:18 -05:00
Rob Landley
71921dc74d Remove old uClibc compatibility glue. It's been 5 years since the last release.
See http://lists.busybox.net/pipermail/buildroot/2016-December/180102.html
for a full post-mortem on the project.
2017-05-08 22:09:08 -05:00
Elliott Hughes
de3e5ea4fe Implement zlib-based gzip/gunzip/zcat. 2017-04-30 02:08:59 -05:00
Rob Landley
cb8e5ad6c5 Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments,
and make uptime use it.
2017-03-20 12:41:22 -05:00
Rob Landley
cefc0a2183 Explain some generic argument parsing features in toybox --help. 2016-10-05 13:29:55 -05:00
Rob Landley
29e75d51d4 Move --version handling next to --help handling, so it applies to all commands.
Say "toybox" before version string. Tweak sed to preserve lie-to-autoconf.
2016-10-01 15:52:00 -05:00
Rob Landley
adef5dcb18 Add optional openssl accelerated versions of hash functions, loosely based on
a patch from Elliott Hughes, who said:

[PATCH] Add support for libcrypto for MD5/SHA.

Orders of magnitude faster (for architectures where OpenSSL/BoringSSL
has optimized assembler).

Also adds sha224sum, sha256sum, sha384sum, and sha512sum for folks
building with libcrypto.

The fallback portable C implementations could easily be refactored
to be API-compatible, but I don't know whether they'd stay here or
move to lib/ so I've left that part alone for now.
2016-07-15 04:45:08 -05:00
Rob Landley
8c588d822a Menuconfig option for musl-libc pretending mmu is just pining for the fijords. 2015-08-29 22:12:56 -05:00
Rob Landley
39f2e91e8b Whitespace. 2015-07-31 03:05:24 -05:00
Rob Landley
08f51b53be Put SELINUX in a a menu, and add config option for SMACK. 2015-04-15 20:53:00 -05:00
Rob Landley
0a403900d6 Update multiplexer help text for --version 2015-04-08 17:17:44 -05:00
Elliott Hughes
7e2af1c748 This patch adds a TOYBOX_SELINUX configuration option to control both
the SELinux commands (such as chcon) and the SELinux-specific options
to regular commands (such as ls -Z).

This lets us #include <selinux/selinux.h> in portability.h.

I've also fixed chcon to insist on being given the a context argument.

This patch also adds -Z to id and fixes id's regular output (-G should
be separated by spaces, non-G output should be separated by commas,
and you don't want a double comma where the egid is omitted from the
list of groups).
2015-01-16 13:36:53 -06:00
Rob Landley
977e48e162 Add TOYBOX_NORECURSE so xexec() won't make internal function calls. 2014-10-20 19:52:29 -05:00
Rob Landley
5bcc7ea10f Typo from the dawn of time: toybox is not capitalized the way BusyBox was.
It's just a word. Capitalize at the start of the sentence, otherwise don't.
Yeah, it could be always capitalized as a proper name but since the command
"toybox" is all lower case, that would be weird.
2014-09-20 13:20:17 -05:00
Rob Landley
a8bee46cfe Cleanups on useradd/groupadd/groupdel, and put TOYBOX_UID_SYS and TOYBOX_UID_USR in the top level Config. 2014-08-18 19:10:45 -05:00
Rob Landley
8431692738 Update toybox help to say how to install the static binary. 2014-06-10 21:57:05 -05:00
Rob Landley
d04dc1feb9 Add scripts/single.sh to build individual non-multiplexed standalone commands.
Alas, you can't quite do this yet:

  make defconfig
  make
  for i in $(./toybox)
  do
    echo $i
    PREFIX=singles/ scripts/single.sh $i || break
  done

Because the OLDTOY() aliases for commands won't build without the base command.
And I can't just skip them because chown/chmod or mv/cp aren't the same thing.
2013-08-30 01:53:31 -05:00
Rob Landley
bb504f382d Start of TOYBOX_SINGLE support, for building standalone commands with no multiplexer. 2013-07-19 02:03:02 -05:00
Rob Landley
953722e382 Add config option for --help support in all commands. 2013-06-30 15:58:24 -05:00
Rob Landley
d683b17f4e Typo fix 2013-06-16 20:00:11 -05:00
Rob Landley
36ffc5aa3e Move guts of help command into show_help() in lib/help.c, with config TOYBOX_HELP controlling infrastructure. 2013-04-14 21:43:22 -05:00
Rob Landley
26c0045a6e Tweak help text. 2013-04-14 12:35:25 -05:00
Felix Janda
250e0055fe Make internalization support optional 2012-11-21 20:38:29 +01:00
Rob Landley
76ec485eb6 Put the commands at the start of menuconfig and the toybox library options at the end. (Aesthetic tweak.) 2012-10-21 17:57:23 -05:00
Rob Landley
3a9241add9 Move commands into "posix", "lsb", and "other" menus/directories. 2012-08-25 14:25:22 -05:00
Rob Landley
1b7ad01f5e Don't mix the the probed symbols with the command symbols. 2012-02-23 21:03:18 -06:00
Rob Landley
f01503d18a Commit 415 needs the other two files. (Oops.) 2012-02-02 07:26:39 -06:00
Rob Landley
e0377fb294 Add TOYBOX_SUID. 2010-01-05 12:17:05 -06:00
Rob Landley
2896480c49 Zap toys/Config.in and instead create generated/Config.in from contents of
toys/*.c.  Move relevant info into comment at the top of each toys/*.c.  Also
convert more of Makefile into a thin wrapper around shell scripts that actually
do the work.  (Makefile is only still there for the user interface.)
2008-01-19 17:08:39 -06:00
Rob Landley
d06c58df5c Promote help to global config option, teach error_exit() to output usage message when called
from get_optflags().
2007-10-11 15:36:36 -05:00
Rob Landley
de05a7024f Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_. 2007-01-31 14:37:01 -05:00
Rob Landley
8324b89598 New option parsing infrastructure (doesn't use getopt). Hook it up to
existing applets.  Still a bit buggy, but bits of it work.
2006-11-19 02:49:22 -05:00
Rob Landley
3c49a45999 Thinko: the Config.in for the toys should be in ./toys, not ./lib. 2006-11-02 11:20:53 -05:00
landley
6ccb1b7897 The Config files don't need the CONFIG_ prefix. 2006-11-01 21:12:20 -05:00
landley
5257cf54a5 Add menuconfig, plus some basic Config info, lots of which is just future
plans for toysh.  Nothing's currently _using_ this config info, but at least
it's being generated now.
2006-10-31 23:30:06 -05:00