From owner-freebsd-ports@FreeBSD.ORG Sat Feb 24 15:32:49 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 74AF116A401 for ; Sat, 24 Feb 2007 15:32:49 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.freebsd.org (Postfix) with ESMTP id D80A813C48E for ; Sat, 24 Feb 2007 15:32:48 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 19919 invoked from network); 24 Feb 2007 15:32:46 -0000 Received: from unknown (HELO localhost) (775067@[217.50.162.124]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 24 Feb 2007 15:32:46 -0000 Date: Sat, 24 Feb 2007 16:32:29 +0100 From: Fabian Keil To: Gabor Kovesdan Message-ID: <20070224163229.062bd234@localhost> In-Reply-To: <45DDA117.3050508@FreeBSD.org> References: <20070222141301.007fee4f@localhost> <45DDA117.3050508@FreeBSD.org> 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_Pz/BOplfo+ag+gGg+TIpI7c"; protocol="application/pgp-signature"; micalg=PGP-SHA1 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 15:32:49 -0000 --Sig_Pz/BOplfo+ag+gGg+TIpI7c Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Gabor Kovesdan 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=20 > grepping in ls ${PKG_DBDIR} to determine which one is installed and=20 > adding the appropriate dependency. =20 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 --Sig_Pz/BOplfo+ag+gGg+TIpI7c Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF4FqcBYqIVf93VJ0RAoAIAJ452oA2zC6tuVWJadRo9rttewhVvwCgnYkW ZZqtkNvheuSQScJ7MbT9FeU= =G3zN -----END PGP SIGNATURE----- --Sig_Pz/BOplfo+ag+gGg+TIpI7c--