From owner-freebsd-questions@FreeBSD.ORG Mon Jan 17 19:38:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 088FD16A4CE for ; Mon, 17 Jan 2005 19:38:01 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32E4743D46 for ; Mon, 17 Jan 2005 19:38:00 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.32] (charm.daemonsecurity.com [192.168.0.32]) by top.daemonsecurity.com (Postfix) with ESMTP id 591F0FD01F; Mon, 17 Jan 2005 20:37:58 +0100 (CET) Message-ID: <41EC1414.4030506@locolomo.org> Date: Mon, 17 Jan 2005 20:37:56 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041114 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: Chad Morland References: <8ca9329050117105257a5664@mail.gmail.com> In-Reply-To: <8ca9329050117105257a5664@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Creating a custom package X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 19:38:01 -0000 Chad Morland wrote: > I have recently setup a FreeBSD jumpstart server to install using PXE. > I would like to add some additional third-party applications as part > of the install. The last page of the FreeBSD jumpstart guide describes > how to make a custom package but it looks like it has to be built from > the ports tree. The applications that I am trying to install are > heavily customized and built from source. > > Would it be best to create a package of the compiled sources? Can a > package be built if it is not a port? Do I need to create a custom > port first AND THEN create a package? > > or.. > > Should I create a small package with pre and post install scripts that > install the compiled source files via NFS as well as configure any > system settings? > > My aim is to Jumpstart my server and have it running 100% operational > by the end of the install process with no human interaction. So I assume that you have an install.cfg file? You can execute any available command from there by adding lines like system config_and_install_whatever_command.sh Either it should be available on a NFS mount or you must first fetch it with ftp. You will probably add such command at the end of install.cfg when you have a base system installed. This way, you can install your custom package in any way you want, be it compiling from source or installing a package or other. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2