Permalink
Browse files

ash-bb

ash from busybox as standalone binary.
  • Loading branch information...
1 parent 6352fff commit ac623317c1476ac0bddf715649d4e9eb2d33e49e Piotr Karbowski committed Nov 17, 2012
Showing with 55 additions and 0 deletions.
  1. +1 −0 app-shells/ash-bb/Manifest
  2. +54 −0 app-shells/ash-bb/ash-bb-1.20.2.ebuild
@@ -0,0 +1 @@
+DIST busybox-1.20.2.tar.bz2 2186738 SHA256 eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882 SHA512 089b67cd920f332daf910711739b1e55ba4c76cfa2122dfe5464432e0d76d3af8327837ebc3cc9954deef3e8f766d16a1928aecb2c169fe3de5a722eea7ea3dd WHIRLPOOL aa8fec92d0ac8bb246dea7353537d425a5fecfa0bb807d0e291c7351e8289b84aab83303c45b75f9b7a98cd10177e210511064f0709425c2f84b069fe6a06420
@@ -0,0 +1,54 @@
+EAPI="4"
+inherit eutils flag-o-matic toolchain-funcs multilib
+
+DESCRIPTION="ash from busybox."
+HOMEPAGE="http://www.busybox.net/"
+
+base='busybox'
+MY_P=${base}-${PV/_/-}
+
+SRC_URI="
+ http://www.busybox.net/downloads/${MY_P}.tar.bz2
+"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="static"
+RESTRICT="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ cat >"${S}/tmp.config" <<-END_OF_CONFIG
+ CONFIG_ASH=y
+ CONFIG_ASH_JOB_CONTROL=y
+ CONFIG_ASH_ALIAS=y
+ CONFIG_ASH_GETOPTS=y
+ CONFIG_ASH_BUILTIN_ECHO=y
+ CONFIG_ASH_BUILTIN_PRINTF=y
+ CONFIG_ASH_BUILTIN_TEST=y
+ CONFIG_ASH_CMDCMD=y
+ CONFIG_ASH_RANDOM_SUPPORT=y
+ CONFIG_ASH_EXPAND_PRMT=y
+ CONFIG_SH_MATH_SUPPORT=y
+ CONFIG_SH_MATH_SUPPORT_64=y
+ CONFIG_FEATURE_SH_EXTRA_QUIET=y
+ CONFIG_FEATURE_SH_HISTFILESIZE=y
+ END_OF_CONFIG
+
+ if use static; then
+ echo 'CONFIG_STATIC=y' >> "${S}/tmp.config"
+ fi
+
+ make KCONFIG_ALLCONFIG='tmp.config' allnoconfig >/dev/null 2>&1
+}
+
+src_install() {
+ mkdir "${D}/bin" || die
+ cp busybox "${D}/bin/ash" || die
+ chmod 755 "${D}/bin/ash" || die
+}

0 comments on commit ac62331

Please sign in to comment.