Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2007 16:32:29 +0100
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
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:  <20070224163229.062bd234@localhost>
In-Reply-To: <45DDA117.3050508@FreeBSD.org>
References:  <20070222141301.007fee4f@localhost> <45DDA117.3050508@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_Pz/BOplfo+ag+gGg+TIpI7c
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Gabor Kovesdan <gabor@FreeBSD.org> 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--



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