Date: 14 Nov 2003 08:59:49 -0500 From: Lowell Gilbert <freebsd-stable-local@be-well.ilk.org> To: Boris Kovalenko <boris@tagnet.ru> Cc: freebsd-ports@freebsd.org Subject: Re: How to determine installed package version Message-ID: <44k763t5ii.fsf@be-well.ilk.org> In-Reply-To: <3FB38C0C.40605@tagnet.ru> References: <3FB38C0C.40605@tagnet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Boris Kovalenko <boris@tagnet.ru> writes: > I'm sorry if I'm writing wrong list. Right. I'm sending this to the ports list. > I'm a Quagga port maintainer > and want to simplify user selection of SNMP lib via DIALOG. As I > found, there are only to ports of SNMP lib for FreeBSD - NetSNMP v5 > and old UCD-SNMP v4. I want to check what version of SNMP lib user > have installed and precheck apropriate option. Is there a RIGHT way to > do that? This is covered, somewhat, in the Porters' Handbook: did you check that? I'd expect it to work the same way as dependencies, in the sense that (and only the sense that) you would key it off of the actual library file installed by the port you're wondering about. Then you should be able to just include a script that runs from an early dependency and hook, to configure the options defaults. You may have to be careful with IS_INTERACTIVE, too.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44k763t5ii.fsf>