macports localinstall github tries to download from macports

Ryan Schmidt ryandesign at macports.org
Tue Apr 28 04:02:27 UTC 2020



On Apr 27, 2020, at 14:15, macports at parvis.nl wrote:

> i’m trying to do a macports localinstall portgroup github for downtimed but it downloads from macports.org, not github.com.

It attempts to download from all locations, including GitHub and the MacPorts mirrors. The file isn't on any of them because you've specified the wrong values to github.setup.


> what is wrong here?
> 
> homepage: https://github.com/snabb/downtimed/releases
> download: https://github.com/snabb/downtimed/archive/version-1.0.tar.gz
> 
> portfile:
> 
> PortSystem          1.0
> PortGroup           github 1.0
> github.setup        snabb downtimed 1.0
> github.tarball_from archive
> 
> categories          sysutils
> platforms           darwin
> maintainers         nomaintainer
> 
> description         dateutils package
> long_description    system downtime monitoring and reporting tool
> 
> checksums           rmd160  c168c31792c584054f3edd7cea14fe951604a76b \
>                    sha256  00eb87d54b170e514c1d321c839bb2a7dd9ee3721bd08b96c91cda7f95e5e099 \
>                    size    300337

You want:

github.setup        snabb downtimed 1.0 version-
github.tarball_from archive

checksums           rmd160  2daccb7b8311750d13b3ec789a1b89a0c147b100 \
                    sha256  778a444ac512a858e9500a9a30254f982ca31577170aaebcb8ca8fb479e1c3a1 \
                    size    72033


P.S: Since your question is about developing a portfile, it would have been more appropriate to ask it on the macports-dev mailing list.



More information about the macports-users mailing list