From owner-freebsd-stable@FreeBSD.ORG Tue Aug 19 15:37:57 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D22C1065679 for ; Tue, 19 Aug 2008 15:37:57 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id C896A8FC14 for ; Tue, 19 Aug 2008 15:37:56 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 32A607308B; Tue, 19 Aug 2008 17:40:27 +0200 (CEST) Date: Tue, 19 Aug 2008 17:40:27 +0200 From: Luigi Rizzo To: freebsd-stable@freebsd.org Message-ID: <20080819154027.GA24372@onelab2.iet.unipi.it> References: <372128.56919.qm@web51502.mail.re2.yahoo.com> <20080802.002039.58462077.imp@bsdimp.com> <4894A9D8.2090606@freebsd.org> <20080802225643.GA84798@onelab2.iet.unipi.it> <4894E8C3.5060004@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4894E8C3.5060004@freebsd.org> User-Agent: Mutt/1.4.2.3i Subject: busybox port available (was Re: busybox and small scripting languages on FreeBSD...) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 15:37:57 -0000 replying to a thread of a couple of weeks ago... I managed to build a reasonable subset of busybox (1.11.1) on FreeBSD, you can find patches at http://info.iet.unipi.it/~luigi/FreeBSD/#busybox-port The linux-specific things (e.g. those relying on /proc or system APIs that we don't have) clearly do not work, and I did not bother trying to implement replacement for them. But many userland commands do work and maybe they are useful to have around in a small system. A sample of the file sizes (the 'dec' column from the 'size' command): 37136 work/busybox-1.11.1/shell/ash.o 18492 work/busybox-1.11.1/libbb/appletlib.o 18258 work/busybox-1.11.1/editors/vi.o 17995 work/busybox-1.11.1/editors/awk.o 9878 work/busybox-1.11.1/networking/httpd.o 9289 work/busybox-1.11.1/archival/bzip2.o 7609 work/busybox-1.11.1/editors/diff.o 6378 work/busybox-1.11.1/miscutils/less.o 6258 work/busybox-1.11.1/editors/sed.o 6170 work/busybox-1.11.1/archival/gzip.o 5367 work/busybox-1.11.1/editors/ed.o 5317 work/busybox-1.11.1/archival/libunarchive/decompress_unzip.o 5132 work/busybox-1.11.1/networking/wget.o 4485 work/busybox-1.11.1/networking/traceroute.o 4277 work/busybox-1.11.1/libbb/dump.o ... overall, the binary in this configuration is around 330kb. cheers luigi