From owner-freebsd-ports@FreeBSD.ORG Sat Feb 24 19:13:30 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B080E16A401 for ; Sat, 24 Feb 2007 19:13:30 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (imap.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 166CD13C467 for ; Sat, 24 Feb 2007 19:13:29 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id l1OJD8n5052643; Sat, 24 Feb 2007 19:13:09 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <45E08E3D.8060104@infracaninophile.co.uk> Date: Sat, 24 Feb 2007 19:13:01 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.9 (X11/20070120) MIME-Version: 1.0 To: Gabor Kovesdan References: <20070222141301.007fee4f@localhost> <45DDA117.3050508@FreeBSD.org> <20070224163229.062bd234@localhost> <45E06810.1070704@FreeBSD.org> In-Reply-To: <45E06810.1070704@FreeBSD.org> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig0EA4D8C2315868EE87D5C669" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 24 Feb 2007 19:13:24 +0000 (GMT) X-Virus-Scanned: ClamAV 0.90/2642/Sat Feb 24 15:58:41 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean Cc: ports@freebsd.org Subject: Re: Optionally depending on one of two ports (or none of them) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Feb 2007 19:13:30 -0000 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--