In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi all, > > I have a PC running gentoo 24 hours a day and usually my laptop is > connected to it and also running gentoo. Since I pay to my ISP every MB > I download I'd like to know if has anyone ever tried to create a > distfiles cache to that my laptop requests package of the ebuild to my > PC and if the PC doesn't find it in its distfiles, only then it requests > a download so that I don't have to download everything twice. > Any ideas? > > Best regards, > > Paulo Matos > > > -- > [EMAIL PROTECTED] mailing list > > > one way is to install a web server and create a link to distfiles in your htdocs tree.
eg emerge apache /etc/init.d/apache start rc-update add apache default (optional to make it start after a reboot) ln -s /usr/portage/distfiles /home/htdocs/distfiles (you can substitute boa for apache in the above) on the "client" machine, edit /etc/make.conf to include: GENTOO_MIRRORS="http://192.168.1.1" (or whatever address your server is at) you can also emulate rsync by doing (on server) edit /etc/rsync/rsynd.conf to include [gentoo-portage] #modern versions of portage use this entry path = /usr/portage comment = Gentoo Linux Portage tree mirror exclude = distfiles then start rsyncd /etc/init.d/rsyncd start and optionally to make it go after a reboot: rc-update add rsyncd default and edit make.conf on the client to include: SYNC="rsync://192.168.1.1/gentoo-portage" just make sure you aren't sharing these servers with the rest of the world :-) -- [EMAIL PROTECTED] mailing list
