Discussion:
Creating your individual git mirrors of OpenBSD
(too old to reply)
Dinesh Thirumurthy
2017-12-27 23:33:14 UTC
Permalink
Hi,

If you wanted your personal git mirrors of OpenBSD, then you can do it with:

https://github.com/hakrtech/repogen/repogen.sh

This will generate git repos of OpenBSD's source, xenocara, ports and www.

You can then push src to your git repo hosting box. My test repo from that
script is:

https://github.com/hakrtech/openbsd-src0

If you like git and openbsd sources and live outside USA/Canada, then
this script will help you avoid cloning from the github.com mirror.

Refer: https://github.com/hakrtech/openbsd-src0/wiki

Thanks.

Regards,
Dinesh

PS: I am looking for github.com equivalent outside USA where I can host
openbsd src. Kindly let me know of any free ones. Thank you.
Dinesh Thirumurthy
2017-12-27 23:42:49 UTC
Permalink
Post by Dinesh Thirumurthy
https://github.com/hakrtech/repogen/repogen.sh
https://github.com/hakrtech/repogen/

Wrong URL in previous post. Sorry.
Mikko Laine
2017-12-28 09:35:25 UTC
Permalink
Post by Dinesh Thirumurthy
PS: I am looking for github.com equivalent outside USA where I can
host openbsd src. Kindly let me know of any free ones. Thank you.
You could try https://notabug.org/, which is Dutch-owned and hosted in
Germany. Note larger repositories (>100 Mb) are accepted per-case.
--
Mikko Laine
http://mlaine.sdfeu.org/
Dinesh Thirumurthy
2017-12-28 15:08:13 UTC
Permalink
Mikko,

Thanks very much.
Post by Mikko Laine
You could try https://notabug.org/, which is Dutch-owned and hosted in
Germany. Note larger repositories (>100 Mb) are accepted per-case.
Trying this out.

Currently, unable to reduce this size of the OpenBSD src repo.
Unable to shrink it below 100MB. Googling ways to shrink it.

Thanks again.

Regards,
Dinesh
--

ob1$ du -sh bare.src.git/
701M bare.src.git/

ob1$ du -sh src0/
1.7G src0/
ob1$

ob1$ du -sh push.notabug.src0/
702M push.notabug.src0/
ob1$

ob1$ git clone --bare --depth 10000
file:///home/dinesh/rsync/push.notabug.src0/ push.notabug.depth10000.src1
Cloning into bare repository 'push.notabug.depth10000.src1'...
remote: Counting objects: 180431, done.
remote: Compressing objects: 100% (59470/59470), done.
Receiving objects: 100% (180431/180431), 227.62 MiB | 3.67 MiB/s, done.
remote: Total 180431 (delta 114065), reused 150436 (delta 107952)
Resolving deltas: 100% (114065/114065), done.
Checking connectivity: 180431, done.
ob1$ du -sh push.notabug.depth10000.src1
233M push.notabug.depth10000.src1

ob1$ git clone --bare --depth 5000
file:///home/dinesh/rsync/push.notabug.src0/ push.notabug.depth5000.src1
Cloning into bare repository 'push.notabug.depth5000.src1'...
remote: Counting objects: 124890, done.
remote: Compressing objects: 100% (57400/57400), done.
Receiving objects: 100% (124890/124890), 210.95 MiB | 3.47 MiB/s, done.
remote: Total 124890 (delta 66462), reused 89398 (delta 59875)
Resolving deltas: 100% (66462/66462), done.
Checking connectivity: 124890, done.
ob1$ du -sh push.notabug.depth5000.src1
215M push.notabug.depth5000.src1

ob1$ git clone --bare --depth 1000 file:///home/dinesh/rsync/bare.src.git/
push.notabug.depth1000.src1
Cloning into bare repository 'push.notabug.depth1000.src1'...
remote: Counting objects: 83173, done.
remote: Compressing objects: 100% (53675/53675), done.
Receiving objects: 100% (83173/83173), 203.28 MiB | 3.07 MiB/s, done.
remote: Total 83173 (delta 32853), reused 45760 (delta 26136)
Resolving deltas: 100% (32853/32853), done.
Checking connectivity: 83173, done.
ob1$ du -sh push.notabug.depth1000.src1/
206M push.notabug.depth1000.src1/

ob1$ git clone --bare --depth 1 file:///home/dinesh/rsync/bare.src.git/
push.notabug.depth1.src1
Cloning into bare repository 'push.notabug.depth1.src1'...
remote: Counting objects: 74282, done.
remote: Compressing objects: 100% (52432/52432), done.
Receiving objects: 100% (74282/74282), 202.02 MiB | 3.47 MiB/s, done.
remote: Total 74282 (delta 26063), reused 36961 (delta 19542)
Resolving deltas: 100% (26063/26063), done.
Checking connectivity: 74282, done.
ob1$ du -sh push.notabug.depth1.src1/
204M push.notabug.depth1.src1/
Florian Obser
2017-12-29 07:11:24 UTC
Permalink
Post by Dinesh Thirumurthy
Hi,
https://github.com/hakrtech/repogen/repogen.sh
This will generate git repos of OpenBSD's source, xenocara, ports and www.
You can then push src to your git repo hosting box. My test repo from that
https://github.com/hakrtech/openbsd-src0
Can you move this one level down so that you have the *contents* of
src in git, that is skip the src directory, like
https://github.com/openbsd/src does? Then you should arrive at the
same commit ids.

Cheers,
Florian
Post by Dinesh Thirumurthy
If you like git and openbsd sources and live outside USA/Canada, then
this script will help you avoid cloning from the github.com mirror.
Refer: https://github.com/hakrtech/openbsd-src0/wiki
Thanks.
Regards,
Dinesh
PS: I am looking for github.com equivalent outside USA where I can host
openbsd src. Kindly let me know of any free ones. Thank you.
--
I'm not entirely sure you are real.
Loading...