Opened 3 years ago

Closed 3 years ago

#64618 closed request (invalid)

Forcing port to find tarball locally instead of macports.org?

Reported by: gaming-hacker (G Alexander) Owned by:
Priority: Normal Milestone:
Component: guide Version: 2.7.1
Keywords: local tarball, local source Cc: mascguy (Christopher Nielsen)
Port:

Description

Hello,

I've read documentation/wiki numerous times and still can't find how to force port to find my local tarball (*.tar.bz2) or source code directory.

I've tried many versions of "master_sites" and *.conf to point to my local file but port still searches macports.org and of course never finds it.

Thanks for the help.

Change History (6)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

If a distfile does not exist in ${prefix}/var/macports/distfiles/${dist_subdir}/ then MacPorts will try to download it from the URL(s) in master_sites, merged with the distfiles mirror URLs such as distfiles.macports.org. URLs are tried in increasing order of ping time. file:/// URLs to local directories should work in master_sites, if you are developing an unusual portfile not intended for distribution to others.

comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:3 Changed 3 years ago by gaming-hacker (G Alexander)

Many thanks for the info, this documentation gold.

My port now works now with "master_sites file:///"

Is there a simple way to point to my own source code directory with digest and size checking disabled?

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

If you want MacPorts to add your local URL to all Portfiles, there is the master_site_local macports.conf setting and the MASTER_SITE_LOCAL environment variable however they may not work as you expect; I'm not sure whether they work as intended since the intention was never documented. See #62143.

If you want MacPorts not to check checksums, you can write checksum.skip yes into the Portfile.

comment:5 Changed 3 years ago by gaming-hacker (G Alexander)

Great thank you.

Please close ticket.

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.