CeDeROM tomek.cedro at gmail.com
Sun Feb 14 23:54:07 UTC 2010

Hello Dimitry!

On Sun, Feb 14, 2010 at 3:36 AM, Dmitry Marakasov <amdmi3 at amdmi3.ru> wrote:
> * CeDeROM (tomek.cedro at gmail.com) wrote:
>> I am trying to create a helper local port for testing RC1 version of a
>> program that will soon have stable port update. Unfortunately the
>> package is named "openocd-0.4.0-rc1.tar.gz" and I dont know how to
>> construct a variable containing this "-RC1" suffix.
> You can use DISTVERSION=0.4.0-rc1 instead of PORTVERSION.
> + you won't have to redefine DISTNAME, as DISTVERSION is substituded
>  there directly
> + legal PORTVERSION will be constructed for you (that'll be 0.4.0.r1),
>  and the nicest thing is that 0.4.0.r1 < 0.4.0, thus when you update
>  the port to release, you won't need to bump PORTEPOCH.

BINGO! The DISTVERSION=0.4.0-rc2 does the job right - download proper
package (openocd-0.4.0-rc2.tar.gz), extracts it and then build from
right place (${WRKDIR}/openocd-0.4.0-rc2/) - no other variables are
necessary :-) Thank you!

However, in that situation, one must remember not to touch $WRKSRC
unnecessairly as it might to point at wrong directory ;P

Best regards,
Tomek Cedro

CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

More information about the freebsd-ports mailing list