From owner-freebsd-ports@FreeBSD.ORG Thu Feb 22 13:13:16 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 328BF16A400 for ; Thu, 22 Feb 2007 13:13:16 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mx1.freebsd.org (Postfix) with ESMTP id 96B5F13C467 for ; Thu, 22 Feb 2007 13:13:15 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 21212 invoked from network); 22 Feb 2007 13:13:12 -0000 Received: from unknown (HELO localhost) (775067@[217.50.167.15]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 22 Feb 2007 13:13:12 -0000 Date: Thu, 22 Feb 2007 14:13:01 +0100 From: Fabian Keil To: ports@FreeBSD.org Message-ID: <20070222141301.007fee4f@localhost> X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.9; i386-portbld-freebsd6.2) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_bIM.Cr/MiMTD+w_0CYl5roD"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: Subject: 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: Thu, 22 Feb 2007 13:13:16 -0000 --Sig_bIM.Cr/MiMTD+w_0CYl5roD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I maintain the ports security/dns-proxy-tor and security/trans-proxy-tor which both require a Tor control port being available somewhere to do their job. They can work with both Tor versions in the ports collection (security/tor and security/tor-devel), and I originally wanted to register a dependency on the one that is already installed, or use tor-devel if no version is installed. To do that I added the RUN_DEPENDS line: ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel which mostly works as expected, but fails if the tor port is installed, in which case a dependency on tor-devel is registered. I'm aware that my RUN_DEPENDS line is incorrect, but I'm unaware of a better way. 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). Fabian --Sig_bIM.Cr/MiMTD+w_0CYl5roD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF3ZbnBYqIVf93VJ0RAgaJAJ42eW08Q4HPXDkq3sPbymPafgW3KQCdGd2a uSoMVyXCoSiR3hfxbYBCcaA= =+OeM -----END PGP SIGNATURE----- --Sig_bIM.Cr/MiMTD+w_0CYl5roD--