# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-0.60.5-r1.ebuild,v 1.13 2004/06/28 16:01:00 vapier Exp $ DESCRIPTION="Utilities for rescue and embedded systems" HOMEPAGE="http://www.busybox.net/" SRC_URI="http://www.busybox.net/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 -alpha -amd64" IUSE="static uclibc" DEPEND="virtual/libc" RDEPEND="!static? ( virtual/libc )" src_unpack() { unpack ${A} cp ${FILESDIR}/Config.h-${PV}-cd ${S}/Config.h # I did not include the msh patch since I don't know if it will # break stuff, I compile ash anyway, and it's in CVS } src_compile() { local myconf use static && myconf="${myconf} DOSTATIC=true" if use uclibc; then myconf="${myconf} \ CC=/usr/i386-linux-uclibc/bin/i386-uclibc-gcc \ USE_SYSTEM_PWD=false" unset CFLAGS fi emake ${myconf} || die } src_install() { into / dobin busybox into /usr dodoc AUTHORS Changelog LICENSE README TODO cd docs doman *.1 docinto txt dodoc *.txt docinto pod dodoc *.pod dohtml *.html dohtml *.sgml cd ../scripts docinto scripts dodoc inittab dodoc depmod.pl } pkg_postinst() { einfo "" einfo "Edit /usr/portage/sys-apps/busybox/files/Config.h-${PV}-cd and" einfo "re-emerge if you need to add/remove functionality in " einfo "BusyBox." einfo "" }