CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Back to wiki start page

Categories: Ports

How to set up an rsync repository


Jose V Beneyto


This article describes how to publish ports using rsync



Read SettingUpAnHttpupRepo to get an idea about publishing a ports repository.

Configure the rsync daemon

 # /etc/rsyncd.conf

 pid file = /var/run/
 log file = /var/log/rsyncd.log

 # crux ports
   path = /var/rsync/crux/ports   # base path for ports
   read only = true
   exclude = .git REPO .httpup-repgen-ignore

 # End of file

/etc/rsyncd.conf: Configuration file for rsync daemon
See rsync(1) and rsyncd.conf(5) man pages for help

Creating an rsync file

Next, to allow the ports utility to easily sync your ports, create a rsync collection definition; it looks like this:

 # /etc/ports/<shortname>.rsync: <Your name's>'s port collection

 collection=<rsyncd base path>/<subdir>/

 # End of file

replace <shortname> with a nickname for your collection, and <Your name> with your full name. My collection definition looks like this: (note that I'm using 'current/sepen' subdirectory to place my private collection)

 # /etc/ports/sepen.rsync: Jose V Beneyto's port collection

 # End of file