diff options
author | davidovski <david@davidovski.xyz> | 2022-11-04 02:29:27 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-11-04 02:29:27 +0000 |
commit | 63add57ef96f10f464fc1bf7c821d2281b39edeb (patch) | |
tree | df6ff34494316e6e23d206dd81367f0a5a3ead73 /repo/toybox | |
parent | 9cc8533c28967439cf57e6d4d0cac95d53b5ac67 (diff) |
Using toybox instead of sbase for posix
Diffstat (limited to 'repo/toybox')
-rw-r--r-- | repo/toybox/config | 391 | ||||
-rw-r--r-- | repo/toybox/diffutils.xibuild | 7 | ||||
-rw-r--r-- | repo/toybox/findutils.xibuild | 7 | ||||
-rw-r--r-- | repo/toybox/toybox.xibuild | 37 | ||||
-rw-r--r-- | repo/toybox/wget.xibuild | 7 |
5 files changed, 449 insertions, 0 deletions
diff --git a/repo/toybox/config b/repo/toybox/config new file mode 100644 index 0000000..14560b4 --- /dev/null +++ b/repo/toybox/config @@ -0,0 +1,391 @@ +# +# Automatically generated make config: don't edit +# ToyBox version: KCONFIG_VERSION +# Fri Nov 4 02:00:51 2022 +# +CONFIG_TOYBOX_CONTAINER=y +CONFIG_TOYBOX_FIFREEZE=y +CONFIG_TOYBOX_ICONV=y +CONFIG_TOYBOX_UTMPX=y +CONFIG_TOYBOX_SHADOW=y +# CONFIG_TOYBOX_ON_ANDROID is not set +# CONFIG_TOYBOX_ANDROID_SCHEDPOLICY is not set +CONFIG_TOYBOX_FORK=y +CONFIG_TOYBOX_PRLIMIT=y +CONFIG_TOYBOX_GETRANDOM=y +CONFIG_TOYBOX_COPYFILERANGE=y +CONFIG_TOYBOX_HASTIMERS=y + +# +# Posix commands +# +CONFIG_BASENAME=y +# CONFIG_CAL is not set +CONFIG_CAT=y +CONFIG_CHGRP=y +CONFIG_CHOWN=y +CONFIG_CHMOD=y +CONFIG_CKSUM=y +CONFIG_CRC32=y +CONFIG_CMP=y +CONFIG_COMM=y +CONFIG_CP=y +CONFIG_MV=y +CONFIG_INSTALL=y +CONFIG_CPIO=y +CONFIG_CUT=y +CONFIG_DATE=y +CONFIG_DF=y +CONFIG_DIRNAME=y +CONFIG_DU=y +CONFIG_ECHO=y +CONFIG_ENV=y +CONFIG_EXPAND=y +CONFIG_FALSE=y +CONFIG_FILE=y +CONFIG_FIND=y +CONFIG_GETCONF=y +CONFIG_GREP=y +CONFIG_EGREP=y +CONFIG_FGREP=y +CONFIG_HEAD=y +CONFIG_ICONV=y +CONFIG_ID=y +# CONFIG_ID_Z is not set +CONFIG_GROUPS=y +CONFIG_LOGNAME=y +CONFIG_WHOAMI=y +CONFIG_KILL=y +CONFIG_KILLALL5=y +CONFIG_LINK=y +CONFIG_LN=y +CONFIG_LOGGER=y +CONFIG_LS=y +CONFIG_MKDIR=y +# CONFIG_MKDIR_Z is not set +CONFIG_MKFIFO=y +# CONFIG_MKFIFO_Z is not set +CONFIG_NICE=y +CONFIG_NL=y +CONFIG_NOHUP=y +CONFIG_OD=y +CONFIG_PASTE=y +CONFIG_PATCH=y +CONFIG_PRINTF=y +CONFIG_PS=y +CONFIG_TOP=y +CONFIG_IOTOP=y +CONFIG_PGREP=y +CONFIG_PKILL=y +CONFIG_PWD=y +CONFIG_RENICE=y +CONFIG_RM=y +CONFIG_RMDIR=y +CONFIG_SED=y +CONFIG_SLEEP=y +CONFIG_SORT=y +CONFIG_SORT_FLOAT=y +CONFIG_SPLIT=y +CONFIG_STRINGS=y +CONFIG_TAIL=y +CONFIG_TAR=y +CONFIG_TEE=y +CONFIG_TEST=y +CONFIG_TEST_GLUE=y +CONFIG_TIME=y +CONFIG_TOUCH=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_ULIMIT=y +CONFIG_ARCH=y +CONFIG_LINUX32=y +CONFIG_UNAME=y +CONFIG_UNIQ=y +CONFIG_UNLINK=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +CONFIG_WHO=y +CONFIG_XARGS=y + +# +# Pending (unfinished) commands +# +# CONFIG_ARP is not set +# CONFIG_ARPING is not set +# CONFIG_BC is not set +# CONFIG_BOOTCHARTD is not set +# CONFIG_BRCTL is not set +# CONFIG_CHSH is not set +# CONFIG_CROND is not set +# CONFIG_CRONTAB is not set +# CONFIG_DD is not set +# CONFIG_DHCP is not set +# CONFIG_DHCP6 is not set +# CONFIG_DHCPD is not set +# CONFIG_DEBUG_DHCP is not set +# CONFIG_DIFF is not set +# CONFIG_DUMPLEASES is not set +# CONFIG_EXPR is not set +# CONFIG_FDISK is not set +# CONFIG_FOLD is not set +# CONFIG_FSCK is not set +# CONFIG_GETFATTR is not set +# CONFIG_GETOPT is not set +# CONFIG_GETTY is not set +# CONFIG_GROUPADD is not set +# CONFIG_GROUPDEL is not set +# CONFIG_HEXDUMP is not set +# CONFIG_HD is not set +# CONFIG_INIT is not set +# CONFIG_IP is not set +# CONFIG_IPCRM is not set +# CONFIG_IPCS is not set +# CONFIG_KLOGD is not set +# CONFIG_KLOGD_SOURCE_RING_BUFFER is not set +# CONFIG_LAST is not set +# CONFIG_LSOF is not set +# CONFIG_MAN is not set +# CONFIG_MDEV is not set +# CONFIG_MDEV_CONF is not set +# CONFIG_MKE2FS is not set +# CONFIG_MKE2FS_JOURNAL is not set +# CONFIG_MKE2FS_GEN is not set +# CONFIG_MKE2FS_LABEL is not set +# CONFIG_MKE2FS_EXTENDED is not set +# CONFIG_MODPROBE is not set +# CONFIG_MORE is not set +# CONFIG_ROUTE is not set +# CONFIG_SH is not set +# CONFIG_CD is not set +# CONFIG_DECLARE is not set +# CONFIG_EXIT is not set +# CONFIG_SET is not set +# CONFIG_UNSET is not set +# CONFIG_EVAL is not set +# CONFIG_EXEC is not set +# CONFIG_EXPORT is not set +# CONFIG_JOBS is not set +# CONFIG_LOCAL is not set +# CONFIG_SHIFT is not set +# CONFIG_SOURCE is not set +# CONFIG_WAIT is not set +# CONFIG_STRACE is not set +# CONFIG_STTY is not set +# CONFIG_SULOGIN is not set +# CONFIG_SYSLOGD is not set +# CONFIG_TCPSVD is not set +# CONFIG_TELNET is not set +# CONFIG_TELNETD is not set +# CONFIG_TFTP is not set +# CONFIG_TFTPD is not set +# CONFIG_TR is not set +# CONFIG_TRACEROUTE is not set +# CONFIG_USERADD is not set +# CONFIG_USERDEL is not set +# CONFIG_VI is not set +# CONFIG_XZCAT is not set + +# +# Other commands +# +# CONFIG_ACPI is not set +CONFIG_ASCII=y +CONFIG_UNICODE=y +# CONFIG_BASE64 is not set +CONFIG_BASE32=y +# CONFIG_BLKDISCARD is not set +# CONFIG_BLKID is not set +CONFIG_FSTYPE=y +CONFIG_BLOCKDEV=y +# CONFIG_BUNZIP2 is not set +# CONFIG_BZCAT is not set +# CONFIG_CHCON is not set +CONFIG_CHROOT=y +# CONFIG_CHRT is not set +# CONFIG_CLEAR is not set +CONFIG_COUNT=y +# CONFIG_DEVMEM is not set +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +# CONFIG_EJECT is not set +CONFIG_FACTOR=y +# CONFIG_FALLOCATE is not set +# CONFIG_FLOCK is not set +CONFIG_FMT=y +# CONFIG_FREE is not set +# CONFIG_FREERAMDISK is not set +# CONFIG_FSFREEZE is not set +# CONFIG_FSYNC is not set +# CONFIG_GPIODETECT is not set +# CONFIG_GPIOFIND is not set +# CONFIG_GPIOINFO is not set +# CONFIG_GPIOGET is not set +# CONFIG_GPIOSET is not set +# CONFIG_HELP is not set +CONFIG_HEXEDIT=y +# CONFIG_HWCLOCK is not set +# CONFIG_I2CDETECT is not set +# CONFIG_I2CDUMP is not set +# CONFIG_I2CGET is not set +# CONFIG_I2CSET is not set +# CONFIG_INOTIFYD is not set +# CONFIG_INSMOD is not set +# CONFIG_IONICE is not set +# CONFIG_IORENICE is not set +# CONFIG_LOGIN is not set +# CONFIG_LOSETUP is not set +# CONFIG_LSATTR is not set +# CONFIG_CHATTR is not set +# CONFIG_LSMOD is not set +# CONFIG_LSPCI is not set +# CONFIG_LSUSB is not set +# CONFIG_MAKEDEVS is not set +# CONFIG_MCOOKIE is not set +# CONFIG_MIX is not set +# CONFIG_MKPASSWD is not set +# CONFIG_MKSWAP is not set +# CONFIG_MODINFO is not set +# CONFIG_MOUNTPOINT is not set +# CONFIG_NBD_CLIENT is not set +# CONFIG_UNSHARE is not set +# CONFIG_NSENTER is not set +# CONFIG_ONEIT is not set +# CONFIG_OPENVT is not set +# CONFIG_CHVT is not set +# CONFIG_DEALLOCVT is not set +# CONFIG_PARTPROBE is not set +# CONFIG_PIVOT_ROOT is not set +# CONFIG_PMAP is not set +CONFIG_PRINTENV=y +# CONFIG_PWDX is not set +# CONFIG_PWGEN is not set +# CONFIG_READAHEAD is not set +# CONFIG_READELF is not set +CONFIG_READLINK=y +CONFIG_REALPATH=y +# CONFIG_REBOOT is not set +# CONFIG_RESET is not set +CONFIG_REV=y +# CONFIG_RMMOD is not set +# CONFIG_RTCWAKE is not set +# CONFIG_SETFATTR is not set +# CONFIG_SETSID is not set +CONFIG_SHA3SUM=y +CONFIG_SHRED=y +CONFIG_STAT=y +# CONFIG_SWAPOFF is not set +# CONFIG_SWAPON is not set +# CONFIG_SWITCH_ROOT is not set +# CONFIG_SYSCTL is not set +CONFIG_TAC=y +CONFIG_NPROC=y +CONFIG_TASKSET=y +CONFIG_TIMEOUT=y +CONFIG_TRUNCATE=y +# CONFIG_UCLAMPSET is not set +# CONFIG_UPTIME is not set +CONFIG_USLEEP=y +CONFIG_UUIDGEN=y +# CONFIG_VCONFIG is not set +# CONFIG_VMSTAT is not set +CONFIG_W=y +# CONFIG_WATCH is not set +# CONFIG_WATCHDOG is not set +CONFIG_WHICH=y +# CONFIG_XXD is not set +# CONFIG_YES is not set + +# +# Networking commands +# +# CONFIG_FTPGET is not set +# CONFIG_FTPPUT is not set +# CONFIG_HOST is not set +# CONFIG_HTTPD is not set +# CONFIG_IFCONFIG is not set +# CONFIG_MICROCOM is not set +# CONFIG_NETCAT is not set +# CONFIG_NETSTAT is not set +# CONFIG_PING is not set +# CONFIG_RFKILL is not set +# CONFIG_SNTP is not set +# CONFIG_TUNCTL is not set +CONFIG_WGET=y +# CONFIG_WGET_LIBTLS is not set + +# +# Linux Standard Base commands +# +# CONFIG_DMESG is not set +# CONFIG_GZIP is not set +# CONFIG_GUNZIP is not set +# CONFIG_ZCAT is not set +# CONFIG_HOSTNAME is not set +# CONFIG_DNSDOMAINNAME is not set +# CONFIG_KILLALL is not set +CONFIG_MD5SUM=y +CONFIG_SHA1SUM=y +CONFIG_SHA224SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA384SUM=y +CONFIG_SHA512SUM=y +CONFIG_MKNOD=y +# CONFIG_MKNOD_Z is not set +CONFIG_MKTEMP=y +# CONFIG_MOUNT is not set +# CONFIG_PASSWD is not set +# CONFIG_PASSWD_SAD is not set +# CONFIG_PIDOF is not set +CONFIG_SEQ=y +# CONFIG_SU is not set +CONFIG_SYNC=y +# CONFIG_UMOUNT is not set + +# +# Example commands +# +# CONFIG_DEMO_MANY_OPTIONS is not set +# CONFIG_DEMO_NUMBER is not set +# CONFIG_DEMO_SCANKEY is not set +# CONFIG_DEMO_UTF8TOWC is not set +# CONFIG_HELLO is not set +# CONFIG_HOSTID is not set +# CONFIG_LOGPATH is not set +# CONFIG_SKELETON is not set +# CONFIG_SKELETON_ALIAS is not set + +# +# Android commands +# +# CONFIG_GETENFORCE is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_LOG is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_SENDEVENT is not set +# CONFIG_SETENFORCE is not set + +# +# +# + +# +# Toybox global settings +# +CONFIG_TOYBOX=y +CONFIG_TOYBOX_SUID=y +CONFIG_TOYBOX_LSM_NONE=y +# CONFIG_TOYBOX_SELINUX is not set +# CONFIG_TOYBOX_SMACK is not set +# CONFIG_TOYBOX_LIBCRYPTO is not set +# CONFIG_TOYBOX_LIBZ is not set +CONFIG_TOYBOX_FLOAT=y +# CONFIG_TOYBOX_HELP is not set +# CONFIG_TOYBOX_HELP_DASHDASH is not set +# CONFIG_TOYBOX_FREE is not set +# CONFIG_TOYBOX_NORECURSE is not set +# CONFIG_TOYBOX_DEBUG is not set +CONFIG_TOYBOX_UID_SYS=100 +CONFIG_TOYBOX_UID_USR=500 +# CONFIG_TOYBOX_FORCE_NOMMU is not set diff --git a/repo/toybox/diffutils.xibuild b/repo/toybox/diffutils.xibuild new file mode 100644 index 0000000..1c225ee --- /dev/null +++ b/repo/toybox/diffutils.xibuild @@ -0,0 +1,7 @@ +#!/bin/sh +DESC="Utility programs for creating patch files" + +package () { + add_from_main /usr/bin/diff + add_from_main /usr/bin/cmp +} diff --git a/repo/toybox/findutils.xibuild b/repo/toybox/findutils.xibuild new file mode 100644 index 0000000..6ccc37e --- /dev/null +++ b/repo/toybox/findutils.xibuild @@ -0,0 +1,7 @@ +#!/bin/sh + +package () { + add_from_main usr/bin/xargs + add_from_main usr/bin/find + add_from_main usr/bin/fmt +} diff --git a/repo/toybox/toybox.xibuild b/repo/toybox/toybox.xibuild new file mode 100644 index 0000000..da2f03a --- /dev/null +++ b/repo/toybox/toybox.xibuild @@ -0,0 +1,37 @@ +#!/bin/sh + +NAME="toybox" +DESC="A BSD-licensed alternative to busybox" + +MAKEDEPS="linux-headers" + +PKG_VER=0.8.8 +SOURCE="https://landley.net/toybox/downloads/toybox-$PKG_VER.tar.gz" +ADDITIONAL=" +config +" + +tools=" basename cat chgrp chown chmod cksum crc32 cmp comm cp mv install cpio cut date df dirname du echo env expand false file find getconf grep egrep fgrep head iconv id groups logname whoami kill killall5 link ln logger ls mkdir mkfifo nice nl nohup od paste patch printf ps top iotop pgrep pkill pwd renice rm rmdir sed sleep sort sort_float split strings tail tar tee test test_glue time touch true tty ulimit arch linux32 uname uniq unlink uudecode uuencode wc who xargs ascii unicode base32 fstype blockdev chroot count dos2unix unix2dos factor fmt hexedit printenv readlink realpath rev sha3sum shred stat tac nproc taskset timeout truncate usleep uuidgen w which wget md5sum sha1sum sha224sum sha256sum sha384sum sha512sum mknod mktemp seq sync " + +prepare () { + mv config .config +} + +build() { + for tool in $tools; do + make $tool + done +} + +check() { + for tool in $tools; do + make test_$tool + done +} + +package() { + for tool in $tools; do + install -Dm755 $tool $PKG_DEST/usr/bin/$tool + done +} + diff --git a/repo/toybox/wget.xibuild b/repo/toybox/wget.xibuild new file mode 100644 index 0000000..6590ee2 --- /dev/null +++ b/repo/toybox/wget.xibuild @@ -0,0 +1,7 @@ +#!/bin/sh + +DESC="A utility for transfering files with URL syntax" + +package () { + add_from_main usr/bin/wget +} |