12 Commits

Author SHA1 Message Date
sthen
a05ad7b91d reposync tweaks:
update version
fix whitespace
use a proper distfile
set MAINTAINER which I forgot before
2019-11-15 00:17:39 +00:00
kn
d0a33ba305 Fix manual nits found with mandoc -Tlint
mandoc: ./reposync.1:78:2: ERROR: skipping end of block that is not open: El
mandoc: ./reposync.1:69:5: STYLE: possible typo in section name: Sh EXAMPLE instead of EXAMPLES
2019-11-14 21:43:26 +00:00
kn
b9a9aae9d0 $destdir holds user input so quote it; since ksh(1) not sh(1) is used,
use [[ instead of [ consistently to disable word splitting.

Mention /cvs in the manual being the default destination, move -p
without argument before -l and sync script usage with manual synopsis.

Delimit rm(1) options from paths just to be sure.

While here, files/reposync has nothing to SUBSTitute, so use
INSTALL_SCRIPT in do-install directly and check syntax for sanity.

More style fixes and proper use of rsync's --exlude from naddy
OK naddy
2019-11-14 21:39:11 +00:00
espie
7a023d2bb4 this is arch-independent 2019-11-14 13:21:42 +00:00
sthen
e20e0062ea nicer error if the mirror doesn't support ssh forwarding 2019-11-10 13:53:38 +00:00
sthen
6a5adc6f87 whitespace nits 2019-11-10 13:37:49 +00:00
sthen
797addee1f Now that some more second-level repository mirrors support ssh
port-forwarding (i.e. connect to localhost:873 on the mirror to tunnel
the rsync protocol), change the default to use this.

reposync still supports use of plaintext as a non-default option for now,
this may change in the future.
2019-11-10 13:36:32 +00:00
sthen
06b026089f tie the hash of the CVSROOT directory listing to the rsync repo address,
so switching server will trigger a full sync.
2019-11-08 21:58:58 +00:00
sthen
4ce0173ff7 I had an @ask-update to warn about the syntax change, but have now decided
it's not worth it because "make update" from ports doesn't agree with this.
2019-11-08 14:03:43 +00:00
sthen
52d74a7d7d add getopt parsing and move SSH port-forwarding username from special
rsync://username@host/path syntax to "reposync -l username rsync://host/path",
also add -f to force an update even if ChangeLog didn't change.

change in port-forwarding syntax done to stop depending on an undocumented
rsync feature tracked down by naddy@.
2019-11-08 13:57:10 +00:00
sthen
56a43d1648 check that reposync is run by uid owning the repo 2019-11-08 09:56:21 +00:00
sthen
91d03e1ff1 import sysutils/reposync, a script to assist syncing the OpenBSD cvs repo
from an rsync mirror. if updates are done frequently, the CVSROOT directory
is checked for changes, skipping some updates if there is likely to be no
change to reduce io.  feedback jasper@ ok aja@
2019-10-07 10:20:09 +00:00