Subject: Re: [GLUG-tech] busybox port to NetBSD pkgsrc
To: Rudi Ahlers <Rudi@SoftDux.com>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-users
Date: 01/10/2007 10:47:56
> On Tue, 2007-01-09 at 20:54 +0200, Ross Cameron wrote:
> 
>>|-- bin
>>|   |-- addgroup -> busybox
>>|   |-- adduser -> busybox
>>|   |-- bbconfig -> busybox
>>|   |-- busybox
>>|   |-- cat -> busybox
>>|   |-- catv -> busybox
>>|   |-- chattr -> busybox
>>|   |-- chgrp -> busybox
>>|   |-- chmod -> busybox
>>|   |-- chown -> busybox
>>|   |-- cp -> busybox
>>|   |-- cpio -> busybox
>>|   |-- date -> busybox
>>|   |-- dd -> busybox
>>|   |-- delgroup -> busybox
>>|   |-- deluser -> busybox
...
>>`-- usr
>>    |-- bin
>>    |   |-- [ -> ../../bin/busybox
>>    |   |-- [[ -> ../../bin/busybox
>>    |   |-- xargs -> ../../bin/busybox
>>    |   `-- yes -> ../../bin/busybox
...
>>    `-- sbin
>>        |-- chroot -> ../../bin/busybox
>>        |-- crond -> ../../bin/busybox
...

Then the PLIST file should look like:

@comment $NetBSD$
bin/addgroup
bin/adduser
bin/bbconfig
bin/busybox
bin/cat
bin/catv
...
sbin/chroot
sbin/crond
...

There should be no entries for a usr/bin directory, since no pkgsrc 
package does that. All "public" binaries go into either bin or sbin.


Rudi Ahlers wrote:
> Here's a wild shot in the dark:
> 
> 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
> DESCR=                  The "Swiss Army Knife" of embedded Linux

DESCR is not a known variable. You can run "pkglint -Wall --explain" to 
see more details about that.

> 
> USE_TOOLS+=             gmake
> ONLY_FOR_PLATFORM=      Linux-*-*
> 
> HAS_CONFIGURE= YES
> CONFIGURE_SCRIPT= /usr/bin/gmake defconfig

Instead of the last two lines, try this:

do-configure:
	cd ${WRKSRC} && env ${CONFIGURE_ENV} ${MAKE_ENV} make menuconfig

Roland