summaryrefslogtreecommitdiff
path: root/sys-apps/toybox
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/toybox
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/toybox')
-rw-r--r--sys-apps/toybox/Manifest21
-rw-r--r--sys-apps/toybox/files/toybox-0.7.0-includes.patch24
-rw-r--r--sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch40
-rw-r--r--sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch28
-rw-r--r--sys-apps/toybox/metadata.xml8
-rw-r--r--sys-apps/toybox/toybox-0.6.0.ebuild59
-rw-r--r--sys-apps/toybox/toybox-0.6.1.ebuild57
-rw-r--r--sys-apps/toybox/toybox-0.7.0.ebuild60
-rw-r--r--sys-apps/toybox/toybox-0.7.1.ebuild57
-rw-r--r--sys-apps/toybox/toybox-0.7.2.ebuild57
-rw-r--r--sys-apps/toybox/toybox-0.7.3.ebuild57
-rw-r--r--sys-apps/toybox/toybox-0.7.4.ebuild57
-rw-r--r--sys-apps/toybox/toybox-9999.ebuild57
13 files changed, 582 insertions, 0 deletions
diff --git a/sys-apps/toybox/Manifest b/sys-apps/toybox/Manifest
new file mode 100644
index 000000000000..8bec418b3b64
--- /dev/null
+++ b/sys-apps/toybox/Manifest
@@ -0,0 +1,21 @@
+AUX toybox-0.7.0-includes.patch 556 SHA256 f822aaf3491329a11a3d87662495ebd554a43fa9d31fd8be21e9f7b43e9cbaf8 SHA512 83b243f10be79855ca007214055043bdb2da6fba8734a87355faf357a84796a647f6b1d312ee8223ad60122b9fab5f44cf6372b116fb43c408fc320221a39174 WHIRLPOOL 090a9e1a4020a9656806c4ee3e148c1bea6a18b55e3bce434942cfa0c31b09ea86e9f3cd32770424d849b09088733e8deae5f37189e9f52cb200931816ac3003
+AUX toybox-0.7.0-parallel-build.patch 1148 SHA256 6331786735d41eefa12185c6bf501c290d2d60c4f4c8a3ca82ee198e2c60428f SHA512 b60ce1e8cb33203bea57d9cc757a872f87c55b378a8315d90c125ab9dadbf60d6b7a4bb444f9ae7b08c82ed29e211014aeadb767d5c0954816df66d823c3ba02 WHIRLPOOL 15189643516dac26b5683561a46f58c60d26aa29a2e1e325dc3bcfcbbeec388645a46b3b6a208b62af51fe65565887e00e65b2455bc7720d0e844427d2f1bb7b
+AUX toybox-0.7.0-sysmacros.patch 768 SHA256 b7576ea7770fc0a425d86966238cb6d22109ef771ef28fcb3f1467d1bdd9bd84 SHA512 8c43465012b93f7ec175d6d166a8f73475dd37fc1a09df5be25b12de57248ab155b1056ac488cd091433c9de9a602443ed57238818eddd02e41355412d27d19b WHIRLPOOL 7991c5d70ceb6b56a9b4416a74f483f8e1050b402dafdf83f48cc87508ab3a6ccccc1b5231fa9d5b47ab245465b4e93773ce1c151dddea0b93e802293a962ab3
+DIST toybox-0.6.0.tar.gz 710572 SHA256 d0b9788f61b9f9cbc685eabc0bd89b6925201ecb15a0cb4fbbd5fbf658b99991 SHA512 ddbd2252cd64a3508b9cd9d8a0a574805583b5b9c3861c153d25e8a394115c28b5a58d02a5aa7d7f58b9b9f3effcd33ac3f55788e0f3c4ad4265233f49c6f3ff WHIRLPOOL 0a83bc9895fd0c43ac541afdbfb6caaa294639646c82e70090fd40b77cf5943009188bb8f1b12b1af82d9bb94dd345892b36a5f7849d7154d34efa0b1f1a5f17
+DIST toybox-0.6.1.tar.gz 736371 SHA256 122ceb30c6ca0e8b8e914a427b1aaa89715c53a3df500afc56524ce88426838c SHA512 256afdcb0303b8f7a0bfa411cd0300d45460229dac3bf86fa147bb9d7806dc1224d0b1e28e58472932d8468407491559c6369cb29e78f67691560825dc25a68a WHIRLPOOL 0a5194965d3b4f4521193a51523d59cd52f23999c95cf167234853004cb0c3503aa4df96e65ab1d524741ff8e1d47def8af072f7eb8e8d55caec9c24b5525039
+DIST toybox-0.7.0.tar.gz 759570 SHA256 65428816f88ad3fe92b67df86dc05427c8078fe03843b8b9715fdfa6d29c0f97 SHA512 805d576712897f32b1f4e75b000a19a284622c040c0410ffc53e11c8ab7e3234e48cf5079a36622f03e6386acc9cbfc9ab94ba9e3e25e524ac0fa430a7d7947b WHIRLPOOL 5a4f4f35a5846891c46070dd9e520a675142d8b9ea9f33b02ff228c6a3198198a5e999b84464f985cde2bff396c4e5d2e4856b530408e5826b2e24e73d7cabba
+DIST toybox-0.7.1.tar.gz 779835 SHA256 5bb3069f58faf12940d5cfde3209ac7f63210bebdd9023979b0c20cede126ea7 SHA512 6347ce8a917e7e7f2046ae2aaefbfffe1c8aca42a4770c57dc23739de93647dc476356a4c3875a75d423bd7fd027c01a1b45627dc16f69801ef0369dbae6799b WHIRLPOOL 4c47aec665f436a9171b7fe6f4b28d8b569aea3565f27ff71b8c9cc070b2c1d5284083b0afd77557700f618cc74dcc2619df28333b1ce1b97f9599ad246951f0
+DIST toybox-0.7.2.tar.gz 798101 SHA256 79da71c7c39cef0a5f7b834f0b17d0d436e7994dd33e912f581b4c12d3b1681f SHA512 ce579be77b628a8466718c13b28390dd2988bbdd5d51b8fac5cc18125cd13968105bd991dc8bf1e6a9618e8a9c07eded361f6371e2f02f4cd7181b42c135f1ef WHIRLPOOL 63666d100880034ea9b74f0983cea2fce6e0b594e6668371d833e02a7a24d602ff5132d02d103a61fb89a5e595baf27b9c58d19d69cdced11eff8e865b0f0f0f
+DIST toybox-0.7.3.tar.gz 806773 SHA256 e6469b508224e0d2e4564dda05c4bb47aef5c28bf29d6c983bcdc6e3a0cd29d6 SHA512 8f6fcf156fbfedb706f3048b535369e235c47a40087405e54f0b0de877691c41b700b2ddd8c0d5abd6e09367f313c2eef1bc659331b2391738f6f0eefc9115fd WHIRLPOOL 5ebdfb133203405379d2d7f1cbb50e54dc23cb5e9126fb794dbdebb5d7ef43998be501c70443b1f644d7a10d70b9a185656187535a4aac4d1d5b93eb71cc5c7e
+DIST toybox-0.7.4.tar.gz 817027 SHA256 49d74ca897501e5c981516719870fe08581726f5c018abe35ef52c6f0de113e7 SHA512 380e8c22f1bcea34ee345b9bcfd9459c7bcde8518d0f5c74227ced2e59b063f619e1b6314c1af4e0371d7300fe916d55510272469a061c4232005b7533b09022 WHIRLPOOL 21a7db472d642e3e78af9252e662c86a2756771ea0ee13a97f51b902f5e5ab66be993e014b0f56af01c523e258456d7504ddd27c6d48b34a9898a0ab8923d497
+EBUILD toybox-0.6.0.ebuild 1157 SHA256 b128fab6de0a94d8f06e68a02de834e053610dbb5a259351eb008b47e154777e SHA512 126a62f29b61547b936693fe20581385340373bfcea6ecda899612e6d506de063a7cdf2567573224d0f8face5792a18ca1ac60baab121c7d636742e749046918 WHIRLPOOL 7c03996bef459d2ab3312be6d5a969effe851894569d604f67dcadb161f055101637beec0a4e5a8072f477b69e842486bf01085a7691d2d3f50aa3cc2cedd360
+EBUILD toybox-0.6.1.ebuild 1143 SHA256 e04fcfbf35ff60966ed9f3eeae4d659ec795fb39bc118692becfa77eb29d289f SHA512 0cf11ea87fa8332074ee3df684e4431168d78d199daaaa52ec9559ccf266acdf8eab8b77c0a5a6710284dbe0327fed6bb4789503629b1c7135ad5677a5cbf96e WHIRLPOOL 2dd5d237e9e3d59890c925fe01463c96053ab240edac3fd0750070a14118ac1141b67c2252e7ca98f792626a5e8257f65e2f5ac75d1194dae525aea86e79cf69
+EBUILD toybox-0.7.0.ebuild 1276 SHA256 feaa8f0a567609d70dce12bf15ff5f86cd26db660baf18da28f5e7955369e2dd SHA512 3ee5aa13536fde7b6171c3e6b515d964c2abe307dc0c71a9aab2c487320ca943a6629f0aa9870a0bd23dfa2084437aeb394f0d52cd58d8d084ccb78f3c0a0e10 WHIRLPOOL 037e8aa710cfd194b6955c8bb1cc3bb4d352c375a486bdcd0b911c54694f5e1dfe724decc64b55ae9eca924c55e3bb7cbb272bf0a07c4601ee76e509331ba715
+EBUILD toybox-0.7.1.ebuild 1153 SHA256 822a775eba794d57364e86d7aafc732019a02358dc5821d6ec3073beb1fc5dff SHA512 10b39e903fae908242b95be60cbd7d08808952eadb4e2ca75008d18d9980d83ba632142ebd720bddb81f5c64fd8770d547d164092ff89863daedf644e6790658 WHIRLPOOL 5d3d8de49b570bac363532cbd20dfadf9f3f4d4349e41ad358c9ea5e4a7d2a838e5fa0623b92ec31bccc745b70800c227e47a6fab117f3c8da894d409c43128d
+EBUILD toybox-0.7.2.ebuild 1153 SHA256 822a775eba794d57364e86d7aafc732019a02358dc5821d6ec3073beb1fc5dff SHA512 10b39e903fae908242b95be60cbd7d08808952eadb4e2ca75008d18d9980d83ba632142ebd720bddb81f5c64fd8770d547d164092ff89863daedf644e6790658 WHIRLPOOL 5d3d8de49b570bac363532cbd20dfadf9f3f4d4349e41ad358c9ea5e4a7d2a838e5fa0623b92ec31bccc745b70800c227e47a6fab117f3c8da894d409c43128d
+EBUILD toybox-0.7.3.ebuild 1153 SHA256 82c407409d054d71c7eb885ff1b59bbcb86a8144ffc51764d9498de6cddf6b9c SHA512 5e70c6665773d9bbf334ffb8f0d90005e76b3e47c3eb8d1796738a619c5d5743a7eec476e1d4bbbe721b561916b7f15759c3ae2dd3f1e6952b9050b913ebdea5 WHIRLPOOL 8d1f544109f3c40b5c6c702a9e5f2a08cfce3267348597e66bf673ca27b19759700680d400a0c1c800b96a835ba7b04f3346e5dcd2be4f36dbfd759e70711f82
+EBUILD toybox-0.7.4.ebuild 1153 SHA256 82c407409d054d71c7eb885ff1b59bbcb86a8144ffc51764d9498de6cddf6b9c SHA512 5e70c6665773d9bbf334ffb8f0d90005e76b3e47c3eb8d1796738a619c5d5743a7eec476e1d4bbbe721b561916b7f15759c3ae2dd3f1e6952b9050b913ebdea5 WHIRLPOOL 8d1f544109f3c40b5c6c702a9e5f2a08cfce3267348597e66bf673ca27b19759700680d400a0c1c800b96a835ba7b04f3346e5dcd2be4f36dbfd759e70711f82
+EBUILD toybox-9999.ebuild 1147 SHA256 bacae7e834b201df5c2c5d3d70bcf55acd46d7fac95aa059be015b3ceb27c18c SHA512 cbe42d685c6837e010349b4c46d5527e85bc9a7c68a70ec882e6e56d79a71d39fa0fc763e5efd404d37138c8fa5c39708d314f6ba9c81e279de79929d353f4a9 WHIRLPOOL b692b6d99946b13053617d02eddcac77a934b319a171cf49594ed1efc331212de9d2d0800c5716c39191ef16236e684f493b59ae41b7c2dee53d4c75c1215b0c
+MISC ChangeLog 3603 SHA256 39658be31aaaacad4b30386affb6419d27a9ae0effc265c79bf0ee505a4dc451 SHA512 22a76ac7d575aa7dc73eb33407e560db21dae42e203dec84bdd10991ac5c7dae7f4bd072b7766cde9eb4278ea292129997660ac875dbdc750b9ee810248a48c3 WHIRLPOOL 3c4a92a85a88c80c50092448beca361dbdabcad7fad3f315980c6032278a9ddb005a560ab02d49585f564d70fe06e0395ed27276bef4b39f733d9268b573b40a
+MISC ChangeLog-2015 1507 SHA256 2176a1f30cf30403bd63749db07ae54623acf4f70f0d288439b2dce2de6d540b SHA512 407883f3698ab8d5e8f123f3df8486c70d44c713fa373f41a60fde782ea34f98b0b93d0a7dd7ef2fa5f9d3b7c385c1545c60ba9ca2798c9fd61f6b338f397820 WHIRLPOOL 356afc59b4b0f724683576185f3ef07b3b4ed80b2fdd30d94c201d5eba2d9aa9df9acfde876faba444092806e826c434572de3c8c5ae1e37fb7c971e98c2df06
+MISC metadata.xml 253 SHA256 0c78fc0afa8613e977eb4628a883b16145da7aadb7d5de8f1c46404cefd75e5b SHA512 303268e1f46e337e32c64b544c0962ecbe8de1799c42736b3c3515b6f31954a655830c402317bd0534cac12059e17eeb5f360d010432dff795a136662a5c10f1 WHIRLPOOL 7a7e49ac517082517073244d5b110e8f751910e5f5245d52dada566f95f2432696db1747492592bc84b35fdf48e947d2e9aeca6e44f1f2a5076c26f3d6e1870c
diff --git a/sys-apps/toybox/files/toybox-0.7.0-includes.patch b/sys-apps/toybox/files/toybox-0.7.0-includes.patch
new file mode 100644
index 000000000000..9a10e96510b0
--- /dev/null
+++ b/sys-apps/toybox/files/toybox-0.7.0-includes.patch
@@ -0,0 +1,24 @@
+From 5e1c429eec977cd365f490137ca9dede0caef662 Mon Sep 17 00:00:00 2001
+From: Rob Landley <rob@landley.net>
+Date: Fri, 5 Feb 2016 15:13:24 -0600
+Subject: [PATCH] Debian unstable is even more pedantic than previous debian.
+
+---
+ scripts/mktags.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/scripts/mktags.c b/scripts/mktags.c
+index 3604260..9c23cf1 100644
+--- a/scripts/mktags.c
++++ b/scripts/mktags.c
+@@ -3,6 +3,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <ctype.h>
+
+ int main(int argc, char *argv[])
+ {
+--
+2.6.2
+
diff --git a/sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch b/sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch
new file mode 100644
index 000000000000..ed0797cf86c8
--- /dev/null
+++ b/sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch
@@ -0,0 +1,40 @@
+fix from upstream for flaky parallel builds
+
+From e17fbf19c4b48d763041761052e98c2b4ee95487 Mon Sep 17 00:00:00 2001
+From: Rob Landley <rob@landley.net>
+Date: Fri, 26 Feb 2016 00:22:15 -0600
+Subject: [PATCH] Switch to $! for make.sh process enumeration.
+
+---
+ scripts/make.sh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/scripts/make.sh b/scripts/make.sh
+index 84dda34..c73a03d 100755
+--- a/scripts/make.sh
++++ b/scripts/make.sh
+@@ -264,17 +264,17 @@ do
+ LFILES="$LFILES $OUT"
+ [ "$OUT" -nt "$i" ] && continue
+ do_loudly $BUILD -c $i -o $OUT &
++ PENDING="$PENDING $!"
+
+ # ratelimit to $CPUS many parallel jobs, detecting errors
+
+ while true
+ do
+- PENDING="$(echo $PENDING $(jobs -rp) | tr ' ' '\n' | sort -u)"
+- [ $(echo -n "$PENDING" | wc -l) -lt "$CPUS" ] && break;
++ [ $(echo "$PENDING" | wc -w) -lt "$CPUS" ] && break;
+
+- wait $(echo "$PENDING" | head -n 1)
++ wait $(echo "$PENDING" | awk '{print $1}')
+ DONE=$(($DONE+$?))
+- PENDING="$(echo "$PENDING" | tail -n +2)"
++ PENDING="$(echo "$PENDING" | sed 's/^ *[0-9]*//')"
+ done
+ [ $DONE -ne 0 ] && break
+ done
+--
+2.6.2
+
diff --git a/sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch b/sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch
new file mode 100644
index 000000000000..245ad23f4f71
--- /dev/null
+++ b/sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch
@@ -0,0 +1,28 @@
+From 99e5c17b5fe5a93066e81cc6fcc7ebf386cb6183 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 29 Feb 2016 13:35:05 -0500
+Subject: [PATCH] include sys/sysmacros.h
+
+The major/minor macros are defined in sys/sysmacros.h. This has
+historically been pulled in implicitly by sys/types.h, but C libs
+are moving away from that as they aren't in POSIX. Use the header
+directly as defined by BSD systems.
+---
+ toys.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/toys.h b/toys.h
+index 8a29730..5e640a1 100644
+--- a/toys.h
++++ b/toys.h
+@@ -34,6 +34,7 @@
+ #include <sys/resource.h>
+ #include <sys/stat.h>
+ #include <sys/statvfs.h>
++#include <sys/sysmacros.h>
+ #include <sys/time.h>
+ #include <sys/times.h>
+ #include <sys/utsname.h>
+--
+2.6.2
+
diff --git a/sys-apps/toybox/metadata.xml b/sys-apps/toybox/metadata.xml
new file mode 100644
index 000000000000..f3de5f693ed8
--- /dev/null
+++ b/sys-apps/toybox/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-apps/toybox/toybox-0.6.0.ebuild b/sys-apps/toybox/toybox-0.6.0.ebuild
new file mode 100644
index 000000000000..a0eb514ef84d
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.6.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin toybox_unstripped toybox
+}
diff --git a/sys-apps/toybox/toybox-0.6.1.ebuild b/sys-apps/toybox/toybox-0.6.1.ebuild
new file mode 100644
index 000000000000..e154894f4704
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.6.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin toybox_unstripped toybox
+}
diff --git a/sys-apps/toybox/toybox-0.7.0.ebuild b/sys-apps/toybox/toybox-0.7.0.ebuild
new file mode 100644
index 000000000000..693e1fc02af0
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.7.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-parallel-build.patch
+ epatch "${FILESDIR}"/${P}-includes.patch
+ epatch "${FILESDIR}"/${P}-sysmacros.patch
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin toybox_unstripped toybox
+}
diff --git a/sys-apps/toybox/toybox-0.7.1.ebuild b/sys-apps/toybox/toybox-0.7.1.ebuild
new file mode 100644
index 000000000000..bd845a49cb54
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.7.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin generated/unstripped/toybox toybox
+}
diff --git a/sys-apps/toybox/toybox-0.7.2.ebuild b/sys-apps/toybox/toybox-0.7.2.ebuild
new file mode 100644
index 000000000000..bd845a49cb54
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.7.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin generated/unstripped/toybox toybox
+}
diff --git a/sys-apps/toybox/toybox-0.7.3.ebuild b/sys-apps/toybox/toybox-0.7.3.ebuild
new file mode 100644
index 000000000000..855407636080
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.7.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin generated/unstripped/toybox toybox
+}
diff --git a/sys-apps/toybox/toybox-0.7.4.ebuild b/sys-apps/toybox/toybox-0.7.4.ebuild
new file mode 100644
index 000000000000..855407636080
--- /dev/null
+++ b/sys-apps/toybox/toybox-0.7.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gfto/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin generated/unstripped/toybox toybox
+}
diff --git a/sys-apps/toybox/toybox-9999.ebuild b/sys-apps/toybox/toybox-9999.ebuild
new file mode 100644
index 000000000000..3fc7451c7023
--- /dev/null
+++ b/sys-apps/toybox/toybox-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multiprocessing savedconfig toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/landley/toybox.git"
+else
+ SRC_URI="http://landley.net/code/toybox/downloads/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# makefile is stupid
+RESTRICT="test"
+
+DESCRIPTION="Common linux commands in a multicall binary"
+HOMEPAGE="http://landley.net/code/toybox/"
+
+# The source code does not explicitly say that it's BSD, but the author has repeatedly said it
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+src_prepare() {
+ epatch_user
+ restore_config .config
+}
+
+src_configure() {
+ if [ -f .config ]; then
+ yes "" | emake -j1 oldconfig > /dev/null
+ return 0
+ else
+ einfo "Could not locate user configfile, so we will save a default one"
+ emake defconfig > /dev/null
+ fi
+}
+
+src_compile() {
+ tc-export CC STRIP
+ export HOSTCC=$(tc-getBUILD_CC)
+ unset CROSS_COMPILE
+ export CPUS=$(makeopts_jobs)
+ emake V=1
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ save_config .config
+ newbin toybox_unstripped toybox
+}