From owner-freebsd-small@FreeBSD.ORG Tue Oct 24 11:18:39 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 4F0CB16A407 for ; Tue, 24 Oct 2006 11:18:39 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id ED7E643D45 for ; Tue, 24 Oct 2006 11:18:37 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 9825 invoked by uid 0); 24 Oct 2006 09:18:53 -0200 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.149.10):. Processed in 0.523897 secs); 24 Oct 2006 11:18:53 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=dfLYPJUw408H17//GyaLPDECXWa9QgxFHrzB4T19No9axdm3XfLQwVp/elLbggZZQscY7amwnUW/Dg+fJmsnUdLC47Yghh1cZcui5qhIYEepffVq0ZKkJh+x6r1YLVSG ; Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.17.149.10) by capeta.freebsdbrasil.com.br with SMTP; 24 Oct 2006 09:18:52 -0200 Message-ID: <453DE863.7070305@freebsdbrasil.com.br> Date: Tue, 24 Oct 2006 08:18:11 -0200 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Jeremie Le Hen References: <20061024100641.GB20405@obiwan.tataz.chchile.org> In-Reply-To: <20061024100641.GB20405@obiwan.tataz.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, freebsd-small@FreeBSD.org, Julian Elischer Subject: Re: 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 11:18:39 -0000 Jeremie Le Hen wrote: > 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, > > > ------------------------------------------------------------------------ > > 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 > } > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Maybe it's not the better way to do this. I'm thinking a way to add third applications on tinybsd, so when this feature is done the directories will be automatically created. Thanks Jean