Categories: Ports
This article describes how to publish ports using rsync
Read SettingUpAnHttpupRepo to get an idea about publishing a ports repository.
# # /etc/rsyncd.conf # pid file = /var/run/rsyncd.pid log file = /var/log/rsyncd.log # crux ports [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
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 # host=<your-host.domain> collection=<rsyncd base path>/<subdir>/ destination=/usr/ports/<shortname> # 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 # host=init.it.cx collection=ports/current/sepen/ destination=/usr/ports/sepen # End of file