From owner-freebsd-questions@FreeBSD.ORG Sat Feb 19 16:00:26 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0815910656E8 for ; Sat, 19 Feb 2011 16:00:25 +0000 (UTC) (envelope-from dl99@me.com) Received: from asmtpout027.mac.com (asmtpout027.mac.com [17.148.16.102]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0758FC19 for ; Sat, 19 Feb 2011 16:00:21 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [192.168.1.102] (c-66-31-125-134.hsd1.ma.comcast.net [66.31.125.134]) by asmtp027.mac.com (Oracle Communications Messaging Exchange Server 7u4-18.01 64bit (built Jul 15 2010)) with ESMTPSA id <0LGV00E0ODN5B450@asmtp027.mac.com> for freebsd-questions@freebsd.org; Sat, 19 Feb 2011 06:59:30 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-02-19_03:2011-02-19, 2011-02-19, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1102190057 From: David Lapsley In-reply-to: <7E0B1096-3250-4B27-A541-61CA2E5F3F7B@gmail.com> Date: Sat, 19 Feb 2011 09:59:28 -0500 Message-id: <296734BA-B2D9-4987-A1F1-BE7CE7540C03@me.com> References: <7E0B1096-3250-4B27-A541-61CA2E5F3F7B@gmail.com> To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.1082) Subject: Re: Developing Embedded Network Device on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 16:00:26 -0000 After a little more research ... On Feb 19, 2011, at 9:04 AM, David wrote: > Hello All: > > I am new to FreeBSD development (I've done some work on NetBSD, but mostly > on Linux). > > I am developing a COTS-based network appliance. After doing my research, I've decided to > use FreeBSD as my development platform. I would like to get my development environment > to the point where I can build a single ISO image that will contain OS and application > ready to install. After reading through the handbook, porter's guide, and googling, I think I have > a rough idea of how to do this, but I still have some gaps in how I set this up. > > My current understanding is that all of the application specific, user land software should > reside in the ports tree. I have two questions with respect to this: > > 1. If I don't want to publish my software, how do I manage the source (do I just generate a tarball > on my build machine and place it in DISTDIR?). After reading Chapter 11 of "Absolute FreeBSD, 2nd Edition" (very helpful!), it seems like "make package" is my friend in this case. I've created a "packages" directory in /usr/ports so that my software and dependancies will be packaged and placed in this directory. >From there, it seems like it should be fairly straightforward to have these incorporated into the ISO build. Then I can do OS install from the ISO build, followed by a pkg_add (with appropriate environment variables set) to install the binary packages. This seems workable. I'm not sure if it is the Right way to do it. I'd appreciate any thoughts/comments on this. Thanks, David.