Bug 253622 - [NEW PORT] www/mirrorselect: HTTP service that selects pkg(8) mirrors near to the client
Summary: [NEW PORT] www/mirrorselect: HTTP service that selects pkg(8) mirrors near to...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Guangyuan Yang
URL: https://github.com/DragonFlyBSD/mirro...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 15:11 UTC by Aaron LI
Modified: 2021-05-30 22:48 UTC (History)
2 users (show)

See Also:


Attachments
New port www/mirrorselect (12.05 KB, patch)
2021-02-18 15:11 UTC, Aaron LI
aly: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron LI 2021-02-18 15:11:55 UTC
Created attachment 222552 [details]
New port www/mirrorselect

Hi,

Mirrorselect is an HTTP backend service that selects the pkg(8) mirrors according to their "distances" to the client.  I've written mirrorselect in Go to achieve the pkg(8) mirror auto-balance for DragonFly BSD.  It should just work for FreeBSD as well and I hope it can be helpful to others :D

Cheers,
Aaron
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-05-30 21:15:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8bee9d3bead6a4d7e57a8893fd76fb294cd4fa04

commit 8bee9d3bead6a4d7e57a8893fd76fb294cd4fa04
Author:     Aaron LI <aly@aaronly.me>
AuthorDate: 2021-05-30 21:12:36 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-05-30 21:12:36 +0000

    www/mirrorselect: New port

    HTTP service that selects pkg(8) mirrors near to the client.

    PR:     253622
    Submitted by:   Aaron LI <aly@aaronly.me>
    Approved by:    lwhsu (mentor)

 www/Makefile                                 |  1 +
 www/mirrorselect/Makefile (new)              | 63 ++++++++++++++++++++++++++
 www/mirrorselect/distinfo (new)              | 61 +++++++++++++++++++++++++
 www/mirrorselect/files/mirrorselect.in (new) | 67 ++++++++++++++++++++++++++++
 www/mirrorselect/pkg-descr (new)             |  4 ++
 5 files changed, 196 insertions(+)
Comment 2 Guangyuan Yang freebsd_committer freebsd_triage 2021-05-30 21:16:08 UTC
Committed, thanks!
Comment 3 Aaron LI 2021-05-30 22:48:13 UTC
(In reply to Guangyuan Yang from comment #2)

Hi Guangyuan, thank you for the kind help.

Cheers,
Aaron