From owner-freebsd-ports@freebsd.org Mon Apr 4 07:39:48 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3310BB02D35 for ; Mon, 4 Apr 2016 07:39:48 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from toco-domains.de (mail.toco-domains.de [IPv6:2a01:4f8:150:50a5::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 016271A2B for ; Mon, 4 Apr 2016 07:39:48 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from [0.0.0.0] (mail.toco-domains.de [IPv6:2a01:4f8:150:50a5::6]) by toco-domains.de (Postfix) with ESMTPA id 840E31AAF060; Mon, 4 Apr 2016 09:39:45 +0200 (CEST) Subject: Re: gentoo's package.provided equivalent? To: anatoly@kazanfieldhockey.ru, freebsd-ports@freebsd.org References: <4b65ec30864d548eaa7efde0c3dd01cf.squirrel@mail.kazanfieldhockey.ru> From: Torsten Zuehlsdorff Message-ID: <57021A41.40703@toco-domains.de> Date: Mon, 4 Apr 2016 09:39:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <4b65ec30864d548eaa7efde0c3dd01cf.squirrel@mail.kazanfieldhockey.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 07:39:48 -0000 On 03.04.2016 03:54, anatoly@kazanfieldhockey.ru wrote: > Sometimes i need to build specific version of some library from source, > not from ports. How can I tell port system about it. There was no problem > with old pkg_, because I was able just to put dummy directory into > /var/db/pkg and port system knows it is installed (although maybe that was > ugly hack). But what I can do with pkgng now? For example, Gentoo linux > has /etc/portage/profile/package.provided file for such a situation. Is > there some equivalent? The request is a bit vague: Do you need a specific version which were in the ports in the past? Than you can use a svn/git portstree version, check out the old version and install it from the ports like always. Do you need a specific version which was never in the ports? Than you could write a simple port for this version. (Which is always an option) If you want to register a port build from source, but not from portstree have a look at pkg-register or: $ pkg help register I have no experience with it, but this just seems to fit your request. Greetings, Torsten