Changes

Jump to: navigation, search

Portage Git Mirror

56 bytes added, 6 years ago
Git-daemon configuration
Prepare directories and clone portage-mini from github::
<preconsole> root@git.lan ###i## mkdir /home/git-mirrors root@git.lan ###i## chown nobody /home/git-mirrors root@git.lan ###i## su -s /bin/sh nobody nobody $ ##bl## cd /home/git-mirrors nobody $ ##bl## git clone --mirror --bare git://github.com/funtoo/portage-mini-2011.git portage.git</preconsole>
Configure git-daemon in ''<code>/etc/conf.d/git-daemon'':</code>:<preconsole> ###i## nano /etc/conf.d/git-daemonGITDAEMON_OPTS=&quot;--syslog --verbose --enable=receive-pack --export-all&quot; GITDAEMON_OPTS=&quot;${GITDAEMON_OPTS} --base-path=/home/git-mirrors /home/git-mirrors&quot; GIT_USER=&quot;nobody&quot; GIT_GROUP=&quot;nobody&quot;</preconsole>
Start Daemon:the daemon:<preconsole> root@git.lan ###i## /etc/init.d/git-daemon start root@git.lan ###i## rc-update add git-daemon default</preconsole>
=== Pull from remote ===
Anonymous user

Navigation menu