From owner-freebsd-questions@FreeBSD.ORG Tue Mar 11 06:17:29 2008 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 D680F106566B for ; Tue, 11 Mar 2008 06:17:29 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 8ED888FC20 for ; Tue, 11 Mar 2008 06:17:29 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 6072B3F6172; Tue, 11 Mar 2008 07:17:28 +0100 (CET) Received: from Llea.celt.neu (ron34-3-82-236-236-194.fbx.proxad.net [82.236.236.194]) by smtp5-g19.free.fr (Postfix) with ESMTP id 319243F6171; Tue, 11 Mar 2008 07:17:28 +0100 (CET) Message-ID: <47D62436.80808@laposte.net> Date: Tue, 11 Mar 2008 07:18:30 +0100 From: =?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Catalin Miclaus References: <3A0AA7018522134597ED63B3B794C92A0180F1FB@STA-HQ-S001.starcomms.local> In-Reply-To: <3A0AA7018522134597ED63B3B794C92A0180F1FB@STA-HQ-S001.starcomms.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Right way to build package from non-port software 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: Tue, 11 Mar 2008 06:17:30 -0000 Catalin Miclaus wrote: > Hello guys, > > > > What is the right way of building packages for non-ports applications? > > AFAIK 'make package' and ' pkg_create -b name' are based on ports > installed packages. > > Is there any way of using same commands or additional scripts to achieve > similar results? > > If it matters I'm trying to create packages from net-snmp-5.4.1 sources > (needed for 64-bits counters feature) since ports version is based on > 5.3.2. > > Suggestions are welcome. What I would do is: 1. check if there is a PR pending, with an update to the new version; 2. try to adapt the existing port to the new version. Doing 2. should not be much more complicated than building from source, see Porter's Handbook, mainly the ``quick porting'' if you want to do it this way. You do not really need the port infrastructure to use pkg_create, so it seems to be the right tool you were looking for. Hope this helps, -- Michaël