tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Asterisk package naming



On 2018-08-02 07:29 AM, Jonathan Perkin wrote:
>> Because pkg_info gives me the names, not the paths.  Is there another
>> tool that can return, for example, devel/gmake instead of gmake-4.1nb4?
> 
> As has been mentioned multiple times already in this thread:
> 
>   $ pkg_info -Q PKGPATH

It's probably my fault for not being clear enough.  I have a list of
packages that includes asterisk.  I could change that to comms/asterisk
but how do I know if it has been installed?

$ pkg_info -Q PKGPATH asterisk13
pkg_info: can't find package `asterisk13'

So, accoring to this asterisk13 is not installed.  If I use asterisk;

$ pkg_info -Q PKGPATH asterisk
comms/asterisk13

OK, so now I know that asterisk is installed from comms/asterisk13.
However, if asterisk is NOT installed yet then;

$ pkg_info -Q PKGPATH asterisk
pkg_info: can't find package `asterisk'

So not installed yet but then how do I know which directory to build it
from?  My script guesses "/usr/pkgsrc/*/asterisk" which succeeds but
installs the wrong version.  I can't use pkg_info to get the directory
until AFTER it is installed.  Catch 22.

Yes, sometimes the guess will fail but except for asterisk it always
fails by installing nothing and I can handle it manually.  Except for
asterisk once everything is installed my script does not complain about
anything.

-- 
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost




Home | Main Index | Thread Index | Old Index