Conditionally install the correct binary

driesm.michiels at gmail.com driesm.michiels at gmail.com
Thu May 9 19:45:30 UTC 2019


Hi ports mailling list!

 

What is the easiest way to conditionally fetch and install a binary
depending on FreeBSD OS version.

Lets say that upstream has 2 tarballs in the repo; tarball11 and tarball12.

Tarball11 is only necessary to download and install when the OS version is
FreeBSD 11.

Tarball12 is only necessary to download and install when the OS version is
FreeBSD 12.

 

Any port as an example to look at? I tried grepping OSVERSION in the
Makefiles but didn't really find what I was looking for.

 

Regards,

Dries

 



More information about the freebsd-ports mailing list