Subject: Re: shrunken userland
To: David Young <dyoung@pobox.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-embed
Date: 09/23/2007 19:49:18
On Sep 23, 2007, at 8:32 AM, David Young wrote:
> I have made a little progress on a more embeddable NetBSD userland.
>
> Using ldns, <http://www.nlnetlabs.nl/ldns/>, I have replaced ISC
> BIND's
> dig(1) and host(1) utilities. I replaced dig with drill, a program
> that is distributed with ldns. I created a simplified host(1) command
> by modifying the ldns-mx.c example in ldns. The storage savings are
> substantial:
Maybe you should import ldns into src/dist and put some reachover
makefiles in (disabled, for now).
>
>
> # ls -l `which host`
> -r-xr-xr-x 1 root wheel 1257396 Sep 7 21:23 /usr/bin/host
> # ls -l `which dig`
> -r-xr-xr-x 1 root wheel 1269464 Sep 7 21:23 /usr/bin/dig
>
> # ls -l `which host`
> -rwxr-xr-x 1 root wheel 12084 Sep 21 15:57 /usr/bin/host
> # ls -l `which drill`
> -rwxr-xr-x 1 root wheel 42120 Sep 21 00:37 /usr/bin/drill
> # ls -l /usr/lib/libldns.so.1.2
> -r--r--r-- 1 root wheel 482979 Sep 21 00:37 /usr/lib/
> libldns.so.1.2
>
> You can browse the sources for my host(1) replacement here,
> <http://svn.cuwireless.net/svn/cuw/trunk/src/host/>. It does not
> work alike to ISC's host(1), but it works for my purposes.
>
> I still seek a small replacement for the ISC DHCP client and server.
> udhcp looks promising, but there is not a NetBSD port, yet, and it
> is GPL.
>
> Dave
>
> --
> David Young OJC Technologies
> dyoung@ojctech.com Urbana, IL * (217) 278-3933 ext 24
-- thorpej