Thursday, June 25, 2020

Re: Best/Easiest way to work with git repository for testing ports

On 2020/06/25 10:06, Steve Williams wrote:
> Hi,
>
> I'm working on freerdp and guacamole clones.
>
> I've got ports built for both thanks to various assistance from Stuart et
> al.
>
> However, they are both under active development and rather than working with
> the tarballs, I want to work with the git repository.
>
> I've done this a couple of times, but it seems fragile... download the git
> repository, create a tarball named like the latest release, make makesum,
> etc and keep going down the garden path.  But then they bump versions in the
> git (eg: freerdp3 instead of freerdp2) which I can deal with.. modifying the
> guacamole build files...
>
> It's not very "seamless" and I'm looking for a way to simplify it a bit.
>
> For example, testing release candidates, different branches, etc.
>
> Is there any elegant way to work with git repositories within the ports
> infrastructure?
>
> Thanks,
> Steve W.
>

For things on github you can do this which generates the right paths/
filenames for the on-the-fly generated archives:

GH_ACCOUNT= apache
GH_PROJECT= guacamole-server
GH_COMMIT= 45a0cd943b0106320de2f7eb6a3cccf1f5b53485
DISTNAME= guacamole-server-1.2.0pre20200625

This is probably about the best you'll get from ports.

No comments:

Post a Comment