How do conditionalize plist on $NOPORTDOCS

Martin Cracauer cracauer at
Tue Nov 18 10:30:35 PST 2008

> >>> While we are talking, how do you guys thing I should handle this
> >>> problem: it's a binary port.  There are different binaries for
> >>> FreeBSD-6.x, 7.x, 8.x
> >>>
> >>>
> >>> The 6.3 will run everywhere.  Should I just use that one? Do you want
> >>> me to conditionalize on FreeBSD version?
> >> If they bother to release different native binaries for our supported
> >> OS versions let encourage them to keep doing that ;-)
> > 
> > "They" == kind of me, although I didn't build these particular
> > binaries.
> > 
> > Is there prior art in ports about how to do this? What do I do with
> > oddball version numbers?
> Perhaps you can conditionalize the DISTNAME based on the FreeBSD version
> number, as shown on this page:
> If you do that, just make sure that the distinfo file has an entry for
> each possible DISTNAME value, so the checksum verification will work on
> any FreeBSD version.

So what happens when a user runs FreeBSD-6, installs such a port,
then upgrades to FreeBSD-7.

Would the port for the installed package come up with the wrong plist
and whatnot?

Martin Cracauer <cracauer at>
FreeBSD - where you want to go, today.

More information about the freebsd-ports mailing list