update to reposync-20200423, including "should work by default for
official mirrors" handling for ssh hostkeys fixing a problem mentioned by several including most recently solene@. add pkg-readme.
This commit is contained in:
parent
33036c3207
commit
0b3fecbcf1
@ -1,12 +1,14 @@
|
||||
# $OpenBSD: Makefile,v 1.23 2020/04/10 21:32:28 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.24 2020/04/23 13:49:31 sthen Exp $
|
||||
|
||||
COMMENT= script to update an OpenBSD CVS repository via rsync
|
||||
|
||||
GH_ACCOUNT= sthen
|
||||
GH_PROJECT= reposync
|
||||
GH_TAGNAME= 20200410
|
||||
#GH_ACCOUNT= sthen
|
||||
#GH_PROJECT= reposync
|
||||
#GH_TAGNAME= 20200423
|
||||
DISTNAME= reposync-20200423
|
||||
|
||||
HOMEPAGE= https://github.com/sthen/reposync
|
||||
MASTER_SITES= https://spacehopper.org/mirrors/
|
||||
|
||||
CATEGORIES= sysutils devel
|
||||
PKG_ARCH= *
|
||||
@ -27,10 +29,10 @@ do-configure:
|
||||
${WRKSRC}/reposync{,.1}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/reposync/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/reposync/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/reposync ${PREFIX}/bin/reposync
|
||||
${INSTALL_MAN} ${WRKSRC}/reposync.1 ${PREFIX}/man/man1/reposync.1
|
||||
${INSTALL_DATA} ${WRKSRC}/ssh_known_hosts ${PREFIX}/share/examples/reposync/
|
||||
${INSTALL_DATA} ${WRKSRC}/ssh_known_hosts ${PREFIX}/share/reposync/
|
||||
|
||||
do-test:
|
||||
ksh -n ${WRKSRC}/reposync
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (reposync-20200410.tar.gz) = UbzCFQ3Tv73Tuhd+z5ShJdIWd3QNDeGqNtFbvEB+ZPA=
|
||||
SIZE (reposync-20200410.tar.gz) = 4933
|
||||
SHA256 (reposync-20200423.tar.gz) = dEk9UONSHNrrxmNcQjcIwKUSaY2b2UkXLXfnXNiQV0o=
|
||||
SIZE (reposync-20200423.tar.gz) = 4548
|
||||
|
@ -1,5 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2019/12/12 16:34:19 sthen Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.5 2020/04/23 13:49:31 sthen Exp $
|
||||
bin/reposync
|
||||
@man man/man1/reposync.1
|
||||
share/examples/reposync/
|
||||
share/examples/reposync/ssh_known_hosts
|
||||
share/doc/pkg-readmes/${PKGSTEM}
|
||||
share/reposync/
|
||||
share/reposync/ssh_known_hosts
|
||||
|
43
sysutils/reposync/pkg/README
Normal file
43
sysutils/reposync/pkg/README
Normal file
@ -0,0 +1,43 @@
|
||||
$OpenBSD: README,v 1.1 2020/04/23 13:49:31 sthen Exp $
|
||||
|
||||
+-------------------------------------------------------------------------------
|
||||
| Running ${PKGSTEM} on OpenBSD
|
||||
+-------------------------------------------------------------------------------
|
||||
|
||||
Prepare the repository owner and directories
|
||||
============================================
|
||||
To allow working on existing mirrors without changing configuration,
|
||||
the reposync package avoids using a specific username and does not setup
|
||||
directories automatically.
|
||||
|
||||
For a repository owned by the new user "cvs" stored in /home/cvs (as is common
|
||||
on a standard user's development machine), you can proceed as follows:
|
||||
|
||||
# useradd -d /nonexistent -s /sbin/nologin cvs
|
||||
# install -d -o cvs /home/cvs /var/db/reposync
|
||||
|
||||
For a new anoncvs server following the standard OpenBSD directory layout,
|
||||
use /open/anoncvs/cvs instead of /home/cvs. If you are adding reposync to an
|
||||
existing anoncvs server, simply create /var/db/reposync and chown it to the
|
||||
owner of the repository.
|
||||
|
||||
Initial checkout after preparing directories
|
||||
============================================
|
||||
Open the list of official mirrors at https://www.openbsd.org/anoncvs.html
|
||||
and choose a mirror showing reposync support.
|
||||
|
||||
Mirrors listed as "reposync rsync://..." support ssh-forwarding.
|
||||
|
||||
Mirrors listed as "reposync -p rsync://" do not, and must use the plaintext
|
||||
protocol that does not validate the server identity.
|
||||
|
||||
Simply run:
|
||||
|
||||
$ doas -u cvs reposync rsync://anoncvs.mirror.example/cvs /home/cvs
|
||||
cd+++++++++ CVSROOT/
|
||||
>f+++++++++ CVSROOT/ChangeLog
|
||||
>f+++++++++ CVSROOT/ChangeLog.0
|
||||
>f+++++++++ CVSROOT/ChangeLog.1
|
||||
[...]
|
||||
|
||||
and wait for it to finish.
|
Loading…
x
Reference in New Issue
Block a user