Debian ホストで Gentoo リポジトリを設定する

Debian ホストで Gentoo リポジトリを設定する

私は大学のプライベートGentooリポジトリを設定したいDebianホストを持っています。次のコードスニペットを使用して、単純なbashスクリプトを使用してリポジトリの同期を開始しました。

RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times -D --delete --timeout=300"
SRC="rsync://rsync.de.gentoo.org/gentoo-portage"
DST="

リポジトリを設定するにはどうすればよいですか?

ベストアンサー1

Gentooをインストールすると、多くの問題を解決できます。特にこれ -

しかし、すでにプログラムでPortageツリーを同期している場合は、rsync以外に必要なものは何ですか?

すべて直接文書:

シェルスクリプトはcronを介して実行されます。

RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive --links --perms --times -D --delete --timeout=300"
SRC="rsync://rsync.de.gentoo.org/gentoo-portage"
DST="/space/gentoo/portage/"

echo "Started update at" `date` >> $0.log 2>&1
logger -t rsync "re-rsyncing the gentoo-portage tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1

rsyncd.confから:

pid file = /var/run/rsyncd.pid
max connections = 5
use chroot = yes
uid = nobody
gid = nobody
# Optional: restrict access to your Gentoo boxes
hosts allow = 192.168.0.1 192.168.0.2 192.168.1.0/24
hosts deny  = *

[gentoo-portage]
path=/space/gentoo/portage
comment=Portage tree

その後、rsyncデーモンを起動します。rsync --daemon

まだテストしていませんが、望まない限りかなり近づくでしょう...BegentouディストリビューションにPortageをインストールする

おすすめ記事