Marc G. Fournier wrote:
>
> 'k, I don't know how to fix this one ... I thought about doing:
>
> .if ${OSVERSION} <= 492101
> RUN_DEPENDS= nc:${PORTSDIR}/net/netcat
> .endif
>
> not sure which version brought in nc, but 492101 is the last of the 4.x
> series
> ... but it portlint fails miserably if I don't put bsd.port.pre.mk before it,
> but also fails if I do:
>
> WARN: Makefile: no MASTER_SITES found. is it ok?
> WARN: Makefile: "RUN_DEPENDS" has to appear earlier.
> 0 fatal errors and 2 warnings found.
>
> Is there a better way of doing this ... ?
I think you want something like:
.if ${OSVERSION} < 503102 || (${OSVERSION} >= 600000 && ${OSVERSION} <
600010)
instead of just considering 492101.
Also, I think net/obnc should be used instead of net/netcat, and obnc
itself should be set to 'deprecated' mode...
Cheers,
--
Xin LI <[EMAIL PROTECTED]> http://www.delphij.net/
FreeBSD - The Power to Serve!
signature.asc
Description: OpenPGP digital signature
