<div class="gmail_quote">On Mon, Jul 5, 2010 at 4:39 PM, Asaf Ohaion <span dir="ltr"><<a href="mailto:asaf@lingnu.com">asaf@lingnu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I could not find option to use http protocol instead of rsync.<br>
is it possible ?<br></blockquote><div><br>AFAIK SBo doesn't offer an HTTP interface to the repository (ok, there
are the web pages, but those aren't exactly suited for batch downloads).<br>
If you need HTTP access to the repository (damn firewalls...) you could ask the SBo admins
to provide it. For example, setting up an http mirror for the git repository _should_ be quite easy, and once that is set up you could use it just like we do for the SB64 repository.<br><br>Otherwise you could set up a machine that offers the repository as a single archive through http. Or something like that.<br>
If you in any way manage to have a downloadable repository, then adding support to sbopkg isn't that hard:<br>- choose a protocol name, like "myhttp"<br>- on lines ~233, ~1011 and ~2386 add "myhttp" to the list of supported protocols<br>
- implement checkout_myhttp_branch() to manage branches (see the other implementations from line 933 on)<br>- implement myhttp_command() to perform the actual download of the currently selected branch (see the other implementations from line 2283 on)<br>
- add a file in /etc/sbopkg/repos.d to let sbopkg know about your repository.<br><br>Good luck<br></div></div>-- <br>Mauro Giachero<br>