mirror of
https://github.com/endeavouros-team/PKGBUILDS.git
synced 2026-06-13 01:34:36 +00:00
[eos-apps-info] added create-ml; removed nvidia-inst related stuff
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
pkgname=eos-apps-info
|
||||
pkgdesc="Documentation about apps in the EndeavourOS repository."
|
||||
pkgver=25.12
|
||||
pkgver=26
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
license=('GPL')
|
||||
@@ -33,12 +33,12 @@ source=(
|
||||
$_url/${pkgname}-pages.tar.gz
|
||||
)
|
||||
|
||||
sha512sums=('890a99c7119e04cf95efc793bd4d0da1b82a1ad3636c6ff1b4f54f64c2bcb2efd80b326f8127241a137afda2c8bf03477e215f58336f5d89abcc21c20fa93923'
|
||||
sha512sums=('100c16c149246b2b9554437a5880b8bad1ec3f7e883e092a8759bdd0e294c075ba0f3a3c0986909e94da77eda54190a223f88828ad86c2f45aa065c99d126dcc'
|
||||
'264b2ce9f3981728bb45e52ab9d2ec782a5e9a291ca2b9249a5558529f4717c868545524677185cb5cc2f370f373818dd2c690fa79f1a107c34c65b3d6ea53a0'
|
||||
'53e387eb1af9693dce6cc83636de399fc8ceedbce3e237c51c84e330766caec728808a2cf65ab653289b5da7c0648f47d17009f3e3669a15ddb0eb7772bae073'
|
||||
'bd3bea6272a0c45b270a999acbc92fd6d268c771f8ab66334e55d0bfc1ce0192ca346932d6d927b4fd5adeb659e856b4d7282272a1187cc60125fbfacd247501'
|
||||
'8a0692ff5e714a0690c7a90d04a928b2edf2e01515f8707b345d0da36ee95cab7f4f9badf3dca6cbd280438a08519957c5852be92e7936da9f0affef3d895b17'
|
||||
'f715f79cebc043ce5b74ecd55c8787d406d27ed914110aeddc79fe742b4f31cd7e3fe1be8714d4c2cbca60c636ab58f56f96d223601890cac747616ed6827fe0'
|
||||
'd983ffffc33f9fd85549b56d3f147c9f94fa67360889956023abb0c1873effc986e5f27693007c6538b832a11862673679c2c7330b4250e2fbd6d95bb1610b5c')
|
||||
'3b2fa67d42d464113061ec21b43a1b3e5f0ce4d01cf200939de90a3e3ce28c564282d4ad85015edb167abef9c11b07ceadc9118585062dfb57dc14fd73fe5fb3')
|
||||
|
||||
package() {
|
||||
local xx
|
||||
|
||||
@@ -82,6 +82,7 @@ Main()
|
||||
local -r apps=(
|
||||
akm ChangeDisplayResolution
|
||||
# checkupdatesext
|
||||
create-ml
|
||||
curl-exit-code-to-string
|
||||
eos-apps-info eos-connection-checker
|
||||
eos-downgrade eos-download-wallpapers
|
||||
@@ -92,7 +93,7 @@ Main()
|
||||
# eos-update-notifier eos-update-notifier-configure
|
||||
eos-wallpaper-set eos-welcome grub-colour-chooser
|
||||
# mirrorlist-rank-info
|
||||
nvidia-inst
|
||||
# nvidia-inst
|
||||
# nvidia-driver-supported-branches
|
||||
paccache-service-manager
|
||||
pahis rami reflector-simple RunInTerminal show-location-info su-c_wrapper
|
||||
|
||||
@@ -163,7 +163,8 @@ Main()
|
||||
cd $infos_folder || DIE "changing folder to '$infos_folder' failed"
|
||||
|
||||
# app's help option to html
|
||||
for app in eos-packagelist nvidia-inst nvidia-driver-supported-branches rate-mirrors ; do
|
||||
for app in eos-packagelist rate-mirrors # nvidia-inst # nvidia-driver-supported-branches
|
||||
do
|
||||
if [ -x /usr/bin/$app ] ; then
|
||||
Help2html $app
|
||||
else
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,104 @@
|
||||
# create-ml
|
||||
|
||||
`create-ml` is yet another application to rank Arch mirrors. It is included in package `iso-create-ml`.
|
||||
Currently it is the default app on the ISO for creating file `/etc/pacman.d/mirrorlist` for the *offline* install mode.
|
||||
However, it can be used for ranking Arch mirrors in online mode, and on an installed system.
|
||||
|
||||
Its prominent online feature is the pre-defined list of *recommended* mirror countries for each location.
|
||||
The pre-defined list is used for including more mirror sources in addition to the current location.
|
||||
|
||||
The list can be overridden or disabled by the user.
|
||||
|
||||
## Examples
|
||||
|
||||
Command | Notes
|
||||
---- | ----
|
||||
`create-ml --save` | A simple way to create and save a ranked list of Arch mirrors.
|
||||
`create-ml --verbose` | Show the mirrorlist (with ranking details) but don't save it.
|
||||
`create-ml --prefs='fi.*niranjan umea' --save` | Specify some preferred mirrors (using regular expressions) that will be the first in the list.<br>Note the necessary *quotes* with option `--prefs`.
|
||||
`create-ml --timeout-mirror 2 --save` | Use a timeout for each mirror. Helps discarding unresponsive mirrors.
|
||||
|
||||
|
||||
## Usage and parameters
|
||||
|
||||
```
|
||||
Usage: create-ml [options]
|
||||
|
||||
Options: --help, -h This help.
|
||||
--nolocal Do not include mirrors from the current country.
|
||||
--offline Don't use internet even when a connection is available.
|
||||
--save Save mirrorlist to /etc/pacman.d/mirrorlist (see also option --savefile).
|
||||
--sequential Rank mirrors sequentially (slower) instead of in parallel (faster).
|
||||
--verbose, -v Show more ranking details.
|
||||
--http Include the http:// mirrors.
|
||||
--countries, -c Give a list of country codes that will be used as additional mirror countries.
|
||||
The list items can be separated by commas or spaces.
|
||||
Examples:
|
||||
-c ca,fr,tw
|
||||
-c 'ca fr tw' # note: quotes required here
|
||||
--user-countries Use file /home/edi/user-countries.txt to give country codes.
|
||||
It can contain a list of country codes separated by white spaces.
|
||||
--no-recommended-countries Don't use recommended countries.
|
||||
Instead you may give one or more country codes
|
||||
with option --countries or option --user-countries.
|
||||
--fake-country=* Set a fake current country code (advanced).
|
||||
--use-saved-cc The detected local country code is saved to a file /etc/create-ml-saved-cc.conf.
|
||||
This option allows using it when local country detection fails (advanced).
|
||||
--savefile=* File path to save the mirrorlist (advanced).
|
||||
--timeout-mirror='seconds' Max time to rank before timing out a mirror. Default: 10.
|
||||
--prefs='regexp-list' List of preferred mirrors as regexps for grep (advanced).
|
||||
Use single quotes around the list. Separate items by a space.
|
||||
|
||||
Notes: * Country codes are the two-letter codes as listed by command 'reflector --list-countries'.
|
||||
Note: a special code 'ww' can be used too. It is a compact list of 'Worldwide' mirrors.
|
||||
* By default only https:// mirrors are included.
|
||||
* Use option --save to change the existing /etc/pacman.d/mirrorlist.
|
||||
* Use option --no-recommended-countries to rank mirrors without adding recommended countries.
|
||||
* If internet connection is available and option --offline is not used, the connection is used for:
|
||||
1) Fetching a list of active mirrors from the Arch web site.
|
||||
2) Fetching country code and name mappings from the Arch web site.
|
||||
3) Ranking mirrors.
|
||||
Without a connection the ranking result can be suboptimal or even problematic.
|
||||
```
|
||||
|
||||
## Configure the countries for additional mirrors (*advanced*)
|
||||
|
||||
File `/etc/create-ml-recommended-cc.conf` can include a bash function `AddRecommendedCountries` that specifies which additional countries to include in ranking.<br>
|
||||
The default values (shown below) *should be* reasonable for most users, but there may be reasons to adjust them.
|
||||
|
||||
Note that the function below is directly copied from file `/bin/create-ml`. If user creates this file with the function, it overrides the function in `create-ml`.
|
||||
|
||||
```
|
||||
AddRecommendedCountries() {
|
||||
# Adding recommended countries for ranking.
|
||||
# Note that in *offline* install mode we "fall back" to the last branch of the case..esac below
|
||||
# because the current country is unknown.
|
||||
|
||||
case "$country_code" in
|
||||
al|at|be|cz|dk|ee|es|fr|gb|gr|hr|it|nl|no|pl|pt|se) additional_mirror_countries+=(ww de fr) ;;
|
||||
'fi') additional_mirror_countries+=(ww se) ;;
|
||||
de|us) ;;
|
||||
cn|ru) protocols+=(http) ;;
|
||||
ca) additional_mirror_countries+=(us) ;;
|
||||
au) additional_mirror_countries+=(ww) ;;
|
||||
br|cl|co|mx) additional_mirror_countries+=(ww us); protocols+=(http) ;;
|
||||
tw) additional_mirror_countries+=(ww sg kr) ;;
|
||||
kr) additional_mirror_countries+=(ww sg tw) ;;
|
||||
sg) additional_mirror_countries+=(ww kr tw) ;;
|
||||
'in') additional_mirror_countries+=(ww de us) ;;
|
||||
*) additional_mirror_countries+=(ww de us); protocols+=(http) ;;
|
||||
esac
|
||||
}
|
||||
```
|
||||
|
||||
Help appreciated: If you think some listed country or countries need adjusting above, please go to `forum.endeavouros.com` and tell us how we can improve the list.
|
||||
|
||||
|
||||
## See also
|
||||
|
||||
Some alternative apps for the same purpose:
|
||||
- `rami`
|
||||
- `rate-mirrors`
|
||||
- `reflector`
|
||||
- `reflector-simple`
|
||||
|
||||
Reference in New Issue
Block a user