From owner-freebsd-ports@FreeBSD.ORG Mon Jan 21 15:13:37 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 35D784F4 for ; Mon, 21 Jan 2013 15:13:37 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from mx.lissyara.su (mx.lissyara.su [91.227.18.11]) by mx1.freebsd.org (Postfix) with ESMTP id DB1ED882 for ; Mon, 21 Jan 2013 15:13:36 +0000 (UTC) Received: from [79.164.58.122] (port=58932 helo=dc7700p.lissyara.su) by mx.lissyara.su with esmtpa (Exim 4.80 (FreeBSD)) (envelope-from ) id 1TxJ43-000IPL-2f for freebsd-ports@freebsd.org; Mon, 21 Jan 2013 19:13:35 +0400 Message-ID: <50FD5B1E.3030001@lissyara.su> Date: Mon, 21 Jan 2013 19:13:34 +0400 From: Alex Keda User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: [PKGNG] where I can find $ABI? References: <50FD3DB9.7070103@lissyara.su> <20130121132859.GB7122@ithaqua.etoilebsd.net> In-Reply-To: <20130121132859.GB7122@ithaqua.etoilebsd.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: mx.lissyara.su X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 15:13:37 -0000 21.01.2013 17:29, Baptiste Daroussin пишет: > On Mon, Jan 21, 2013 at 05:08:09PM +0400, Alex Keda wrote: >> I create my own repository. >> but, $ABI I create as: >> v1=`uname -s | tr "[:upper:]" "[:lower:]"` >> v2=`uname -r | awk -F '.' '{print $1}'` >> v3=x86 >> v4=`sysctl -n hw.machine_arch | tr -d "[:alpha:]"` >> ABI="$v1:$v2:$v3:$v4" >> (for example) >> >> may be add some key to pkg command, for output pkg_get_myabi() result? > > okg -vv should output you ABI > > If you want to get the information out of a package pkg info -fF mypkg.txz | > grep "^arch:" Should output the ABI for you > > regards, > Bapt > OK, thanks pkg -vv | grep abi | awk '{print $2}' help me