Hi,
Trying to get myself a pkgsrc mirror up and running in an
OmniOS lipkg zone, to improve package delivery to other OmniOS
zones on my local LAN, but I'm struggling to get it working. The
lack of documentation on this matter is probably the culprit.
The main source I could find is this dated post with
links that don't work anymore:
https://smartos.topicbox.com/groups/smartos-discuss/T1dd25f748b24520e
I tried to adapt the pointers to the new public pkgsrc repo at "https://pkgsrc.smartos.org/packages/SmartOS/trunk/"
like so:
# rsync -n rsync://pkgsrc.smartos.org/packages/SmartOS/trunk/ /tank/pkgsrc_mirror
but it barfs with:
@ERROR: Unknown module 'packages'
rsync error: error starting client-server protocol (code 5) at
main.c(1850) [Receiver=3.4.1]
Digging deeper brought me here:
https://gist.github.com/jperkin/1025a6d81553c19b3c35a3aefa986a0b
which seems to give some very solid pointers on how to keep the mirror copy in better atomic sync with the public repo, of which I adapted the main sync command like so - for a first manual test:
# rsync -n -av --link-dest=/tank/pkgsrc_mirror/pkgsrc
rsync://pkgsrc.smartos.org/packages/SmartOS/trunk/
/tank/pkgsrc_mirror/.pkgsrc/
but still it barfs with the same error as above.
Would it be possible to provide a more detailed write-up on how
to get such mirror set up?
I would expect such page to exist at the main wiki here:
https://github.com/TritonDataCenter/pkgsrc/wiki
but I suppose this matter has never had much priority to get
documented properly. Which I can understand!
Anyway, even some pointers are much appreciated.
Thank you and cheers,
Andries