From owner-freebsd-small@FreeBSD.ORG Tue Oct 24 10:05:59 2006 Return-Path: X-Original-To: freebsd-small@FreeBSD.org Delivered-To: freebsd-small@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4954E16A407; Tue, 24 Oct 2006 10:05:59 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC60743D5A; Tue, 24 Oct 2006 10:05:58 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 023DF27642; Tue, 24 Oct 2006 12:05:58 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id A16999E6C2; Tue, 24 Oct 2006 10:06:41 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 841B0405B; Tue, 24 Oct 2006 12:06:41 +0200 (CEST) Date: Tue, 24 Oct 2006 12:06:41 +0200 From: Jeremie Le Hen To: Julian Elischer Message-ID: <20061024100641.GB20405@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-small@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Handling non-standard directories in tinybsd X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 10:05:59 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Julian, (Sorry for cross-posting, but I haven't been able to make my mind.) I've created a small patch for tinybsd that allows to add files that do not come from the base system (I needed ${LOCALBASE}/sbin/hping). Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="tinybsd_nonstddirs.patch" Index: tinybsd =================================================================== RCS file: /home/ncvs/src/tools/tools/tinybsd/tinybsd,v retrieving revision 1.4 diff -u -r1.4 tinybsd --- tinybsd 11 Oct 2006 21:46:53 -0000 1.4 +++ tinybsd 24 Oct 2006 09:58:21 -0000 @@ -260,6 +260,15 @@ mtree -deU -f /etc/mtree/BSD.root.dist -p ${WORKDIR} mtree -deU -f /etc/mtree/BSD.usr.dist -p ${WORKDIR}/usr mtree -deU -f /etc/mtree/BSD.var.dist -p ${WORKDIR}/var + + for file in `cat ${CURRENTDIR}/conf/${CONF}/tinybsd.basefiles | grep -v "#" | \ + cut -f1 -d":" | sort | uniq` ; do + dir=`dirname ${file}` + if [ ! -d $WORKDIR/$dir ]; then + echo "Non-standard directory created: $dir." + mkdir -p $WORKDIR/$dir + fi + done } --+HP7ph2BbKc20aGI--