--- busybox-1.00-r4.ebuild 2005-07-14 20:39:47.000000000 -0400 +++ busybox-1.00-r6.ebuild 2005-07-14 20:38:51.000000000 -0400 @@ -91,6 +91,7 @@ src_unpack() { done if [[ -r ${S}/.config ]] ; then einfo "Found your ${configfile} and using it." + touch ${BUILDDIR}/.preconfigured return 0 fi fi @@ -136,7 +137,20 @@ src_unpack() { make oldconfig > /dev/null } +src_preconfig() { + emake CROSS="${CROSS}" menuconfig + touch "${BUILDDIR}/.preconfigured" +} + src_compile() { + if [ ! -f ${BUILDDIR}/.preconfigured ]; then + ewarn "You can add preconfig to FEATURES if you want to interactively" + ewarn "configure busybox." + ewarn "DO NOT add preconfig to FEATURES in your make.conf but use:" + ewarn "$ FEATURES=preconfig emerge busybox" + ewarn "" + ewarn "Default config will be used." + fi busybox_set_env emake -j1 CROSS="${CROSS}" depend || die "depend failed" emake CROSS="${CROSS}" busybox || die "build failed"