[PKGNG] where I can find $ABI?

Baptiste Daroussin bapt at FreeBSD.org
Mon Jan 21 13:29:05 UTC 2013

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130121/be98d275/attachment.sig>

More information about the freebsd-ports mailing list