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

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Feb 24 19:13:30 UTC 2007

Gabor Kovesdan wrote:
> HAVE_TOR_DEVEL!=        if ls /var/db/pkg | grep tor-devel-\* >/dev/null
> 2>&1 ; then echo YES; fi;


> The only problem is with my example, it does not respect PKG_DBDIR, but
> I think it is better then just adding a pkg-message for the user to make
> decision. I could not use ${PKG_DBDIR} in the evaluation somehow, it did
> not work. This is not a big deal, though, people don't often override
> that I think.

Why not do it this way?

HAVE_TOR_DEVEL!= if pkg_info -I tor-devel-\* >/dev/null 2>&1 ; then echo YES; fi



Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070224/c7602de9/signature.pgp

More information about the freebsd-ports mailing list