Gentoo Portage Mirror

From NAS-2000.org

Jump to: navigation, search

This Package will turn your NAS into a local Gentoo Portage Mirror this way you will save you and Gentoo lots of bandwidth if you have more than one pc.

A cronjob will automatically update the mirror every 24h. If you want to change the update time edit the /system/overlay/apps/portage-mirror/portage-cron-entry file.

The installation script will check if you already have a rsyncd.conf file in /system/overlay/apps/rsync and if so won't touch it. So you will have to merge your rsyncd.conf with /system/overlay/apps/portage-mirror/portage-rsyncd.conf

After the installation you may want to manually run the sync-script

/system/overlay/apps/portage-mirror/sync_local_portage_tree.sh 

or you can leave alown the nas and wait for the cronjob to do the work.


Next you'll have to configure your gentoo "clients".

Edit the /etc/make.conf and add

SYNC="rsync://<NAS-IP>/gentoo-portage"

EOF

Personal tools