aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-06-18 21:30:44 -0700
committerGravatar Tom Willemse2022-06-18 21:30:44 -0700
commit4980ab6258148773e62b191f62292f84bffffdec (patch)
tree58b3e46b1b3af1e41c4453a2b3bb2ffd1b0dbd7f
parentb8d4ca825e791e611159d230e6c380793b5adb5a (diff)
downloadupdate-mirrors-4980ab6258148773e62b191f62292f84bffffdec.tar.gz
update-mirrors-4980ab6258148773e62b191f62292f84bffffdec.zip
Add a README
-rw-r--r--README.org24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.org b/README.org
new file mode 100644
index 0000000..a1caca4
--- /dev/null
+++ b/README.org
@@ -0,0 +1,24 @@
+#+title: update-mirrors
+
+This is a simple utility for [[https://archlinux.org/][archlinux]] that keeps the mirror list up-to-date.
+
+Whenever the =pacman-mirrorlist= updates it's always a pain to have to pick out which servers exactly you want. And the archlinux project provides a nice [[https://archlinux.org/mirrorlist/][Pacman Mirrorlist Generator]]. This utility uses that generator to automatically update the mirror list every time =pacman-mirrorlist= is updated.
+
+* Installation
+
+I've provided a =PKGBUILD= through which it can be installed:
+
+: makepkg -sic
+
+It will install the executable, configuration file, and pacman hook into the proper locations so that after it will always be called automatically.
+
+* Configuration
+
+There are a few configuration options. The configuration file is just a regular shell script sourced by the =update-mirrors= script.
+
+- =url= :: A string. The base URL for archlinux's mirrorlist generator. You probably don't have to change this.
+- =countries= :: An array of strings. Which countries you want to include mirrors from. You will probably want to change this.
+- =protocols= :: An array of strings. Which protocols to include. Available protocols are =http= and =https=.
+- =ip_versions= :: An array of numbers. Which IP versions to include in the mirrorlist. Available versions are =4= and =6=.
+- =use_mirror_status= :: The string “on” or empty. Turning this on will make the generator filter the list of mirrors by the mirror score from the [[https://archlinux.org/mirrors/status/][Mirror Status]] page.
+- =dest= :: A string, a file path. Where to write the result to. You probably don't have to change this.