Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2007 19:13:01 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Gabor Kovesdan <gabor@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: Optionally depending on one of two ports (or none of them)
Message-ID:  <45E08E3D.8060104@infracaninophile.co.uk>
In-Reply-To: <45E06810.1070704@FreeBSD.org>
References:  <20070222141301.007fee4f@localhost>	<45DDA117.3050508@FreeBSD.org>	<20070224163229.062bd234@localhost> <45E06810.1070704@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0EA4D8C2315868EE87D5C669
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Gabor Kovesdan wrote:
=20
> HAVE_TOR_DEVEL!=3D        if ls /var/db/pkg | grep tor-devel-\* >/dev/n=
ull
> 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 mak=
e
> decision. I could not use ${PKG_DBDIR} in the evaluation somehow, it di=
d
> 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!=3D if pkg_info -I tor-devel-\* >/dev/null 2>&1 ; then ech=
o YES; fi

	Cheers,

	Matthew

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


--------------enig0EA4D8C2315868EE87D5C669
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4I5E8Mjk52CukIwRCC/OAJ0Z01VdSqNeCaeCQESt+5IQH5yjOwCfea+R
Hpkxm7hjfNLZqyHAne4kUcI=
=XGX3
-----END PGP SIGNATURE-----

--------------enig0EA4D8C2315868EE87D5C669--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E08E3D.8060104>