Subject: busybox port to NetBSD pkgsrc
To: None <,>
From: Ross Cameron <>
List: pkgsrc-users
Date: 01/09/2007 20:54:10
Hi there all,... Im putting together a port of busybox for the NetBSD
pkgsrc package manager.

I've put it in       /usr/pkgsrc/sysutils/busybox          please
comment on this if you feel this is the wrong place.
      Below is my Makefile, it downloads the package from the net and
builds no problem.
My issue is with taking the finished build and wrapping it up in a
package. I just cant figure it out.
Also I know that the Makefile isn't 100% correct (but it works), so
any advice would be appreciated, its the first time Ive used pkgsrc.

======================== Makefile ========================
# $NetBSD$

DISTNAME=               busybox-1.3.1
#PKGNAME=               busybox-1.3.1
CATEGORIES=             sysutils
EXTRACT_SUFX=           .tar.bz2

COMMENT=                The "Swiss Army Knife" of embedded Linux

USE_TOOLS+=             gmake
ONLY_FOR_PLATFORM=      Linux-*-*

CONFIGURE_SCRIPT= gmake defconfig

.include "../../mk/"
======================== Makefile ========================

After running:
      bmake clean clean-depends

The busybox package builds no problem and produces a 100% fully working binary!
It places the "install tree" in
and if I run the tree command in that directory I get the following:

======================== install tree ========================
root@seyos-devel:/usr/pkgsrc/sysutils/busybox/work/busybox-1.3.1/_install# tree