Subject: busybox port to NetBSD pkgsrc
To: None <pkgsrc-users@NetBSD.org, glug-tech@linux.org.za>
From: Ross Cameron <ross.cameron@linuxpro.co.za>
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
MASTER_SITES= http://busybox.net/downloads/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ross@goal.co.za
HOMEPAGE= http://busybox.net/
COMMENT= The "Swiss Army Knife" of embedded Linux
USE_TOOLS+= gmake
ONLY_FOR_PLATFORM= Linux-*-*
HAS_CONFIGURE= NO
CONFIGURE_SCRIPT= gmake defconfig
.include "../../mk/bsd.pkg.mk"
======================== Makefile ========================
After running:
bmake clean clean-depends
bmake
The busybox package builds no problem and produces a 100% fully working binary!
It places the "install tree" in
/usr/pkgsrc/sysutils/busybox/work/busybox-1.3.1/_install
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