Optionally depending on one of two ports (or none of them)

Fabian Keil freebsd-listen at fabiankeil.de
Sat Feb 24 15:32:49 UTC 2007


Gabor Kovesdan <gabor at FreeBSD.org> wrote:

> Fabian Keil schrieb:

> > Also by now my goal has been slightly changed and I want
> > to give the user the choice to either use one of the Tor
> > ports, or on none (if Tor is running on a remote system or
> > in another jail).
> >
> > The easiest solution is to not register any
> > dependencies and to simply print a pkg-message
> > to inform the user about his choices, but I was
> > wondering if there is a better way (that doesn't
> > involve shell scripts)?
> >
> > Simply adding OPTIONS is not an option (harhar) because
> > it wouldn't prevent the user from choosing the
> > wrong Tor port (the Tor ports use identical pkg-plists).

> What about grepping in the output of pkg_info? Or even better just 
> grepping in ls ${PKG_DBDIR} to determine which one is installed and 
> adding the appropriate dependency.
 
Are you aware of ports that already do that?

I grepped around a bit but didn't find any,
and as my make knowledge is rather limited
it sounds like too much work to be worth it.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070224/20b2341b/signature.pgp


More information about the freebsd-ports mailing list