GARNAME = busybox GARVERSION = 1.5.1 CATEGORIES = sys MASTER_SITES = http://busybox.net/downloads/ DISTFILES = $(DISTNAME).tar.bz2 # readahead.diff: add a prototype that uClibc is missing. PATCHFILES = readahead.diff BUILDDEPS = devel/binutils-uclibc devel/gcc-uclibc DESCRIPTION = A static binary containing most of the standard utilities HOME_URL = http://www.busybox.net/ CONFIGURE_SCRIPTS = none BUILD_SCRIPTS = $(WORKSRC)/Makefile INSTALL_SCRIPTS = none BUILD_ARGS = \ CROSS_COMPILE=i386-linux-uclibc- \ all busybox.links doc include ../../gar.mk # taskset disabled because uClibc doesn't have the headers yet. configure-none: @$(MAKE) -C $(WORKSRC) allyesconfig @sed -i 's,^\(CONFIG_SELINUX=\).*,\1n,' $(WORKSRC)/.config @sed -i 's,^\(CONFIG_TASKSET=\).*,\1n,' $(WORKSRC)/.config @$(MAKE) -C $(WORKSRC) oldconfig $(MAKECOOKIE) install-none: @$(INSTALL_BIN) $(WORKSRC)/busybox @mkdir -p $(packageprefix)/lib/busybox/bin $(packageprefix)/lib/busybox/sbin @for x in `cat $(WORKSRC)/busybox.links` ; do \ ln -sf $(prefix)/bin/busybox $(packageprefix)/lib/busybox$$x ; \ done @$(INSTALL_MAN) $(WORKSRC)/docs/BusyBox.1 @$(INSTALL_DOCS) $(WORKSRC)/docs/*.html $(WORKSRC)/docs/*.txt $(MAKECOOKIE)