Ticket #3425 (closed defect: wontfix)
patch to add new fetch types
|Reported by:||erickt@…||Owned by:||macports-tickets@…|
I added a couple new types of fetch mechanisms to darwinports, as you'll find in the attached patch. I've added 3 new mechanisms: rsync, svn, and a custom command. Because darwinports internally uses rsync, I modified the configure.ac to find rsync on the path. For svn, since it is not installed by default, I look it up at runtime using env. To support env, I also added it to be found in configure.ac. Finally, I added a custom command, so someone can manually specify a fetch command by specifying the cmd and args. I've tested the rsync and the svn functionality, and both work (I'll attach my prototype portfile's that have these built in). While I haven't tested the custom command, it's almost exactly the same as the rsync code, so hopefully it won't be a problem.
The only tricky thing about this patch is that if you want to use svn, you have to have svn installed. Is it possible to have a fetch automatically append a svn dependancy? That's really the only thing missing about this patch, but I don't know enought of the internals in order to figure it out.
Any chance that this could be integrated into the system? Thanks!