diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-28 17:23:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-28 17:29:03 +0000 |
commit | a6e6d0d0a55657d8d39efa113dc0c09660bee757 (patch) | |
tree | 03049f42812c8dabec0d0282096cf0871ae74962 /main/alpine-mirrors | |
parent | ccbbb8ebfff84c38eee17a0f14c9f88cfb2dbac5 (diff) | |
download | aports-a6e6d0d0a55657d8d39efa113dc0c09660bee757.tar.bz2 aports-a6e6d0d0a55657d8d39efa113dc0c09660bee757.tar.xz |
main/alpine-mirrors: add brazilian mirror and add tests
Diffstat (limited to 'main/alpine-mirrors')
-rw-r--r-- | main/alpine-mirrors/APKBUILD | 23 | ||||
-rw-r--r-- | main/alpine-mirrors/mirrors.yaml | 7 |
2 files changed, 27 insertions, 3 deletions
diff --git a/main/alpine-mirrors/APKBUILD b/main/alpine-mirrors/APKBUILD index ca15edfe18..15be57f968 100644 --- a/main/alpine-mirrors/APKBUILD +++ b/main/alpine-mirrors/APKBUILD @@ -1,14 +1,14 @@ # Contributor: Matt Smith <mcs@darkregion.net> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=alpine-mirrors -pkgver=3.4.5 +pkgver=3.4.6 pkgrel=0 pkgdesc="List of Alpine Linux Mirrors" url="http://alpinelinux.org/" arch="noarch" license="MIT" depends="" -makedepends="" +makedepends="curl" install="" subpackages="" source="mirrors.yaml" @@ -18,6 +18,23 @@ build() { awk '$1 == "-" && $2 ~ /^http:/ {print $2}' mirrors.yaml > MIRRORS.txt } +check() { + cd "$srcdir" + local failed="" + for i in $(cat MIRRORS.txt); do + msg "testing $i" + curl --head --connect-timeout 10 $i >/dev/null \ + || failed="$failed $i" + done + if [ -n "$failed" ]; then + error "Following mirrors failed:" + for i in $failed; do + echo $i + done + return 1 + fi +} + package() { install -D -m644 "$srcdir"/mirrors.yaml \ "$pkgdir"/usr/share/alpine-mirrors/mirrors.yaml || return 1 @@ -25,4 +42,4 @@ package() { "$pkgdir"/usr/share/alpine-mirrors/MIRRORS.txt || return 1 } -sha512sums="6e33d75e9d758bae5edae21d3f29f52ed45acb26a8df597f5374fa0316a665425c2e8b05197517a6073b2c47cdca390f77e5b9046218f853e2fa99896905a49e mirrors.yaml" +sha512sums="7c46b0c43a716e2268e893c6375116c7db0e2be1e653edb24e940901cc343d25170fab4d48f2189212f114a67909e9dee84d6bc538bfce6500230b1a2fcbc39f mirrors.yaml" diff --git a/main/alpine-mirrors/mirrors.yaml b/main/alpine-mirrors/mirrors.yaml index aa7e8ec135..c78abfc3fb 100644 --- a/main/alpine-mirrors/mirrors.yaml +++ b/main/alpine-mirrors/mirrors.yaml @@ -99,3 +99,10 @@ - http://mirror.clarkson.edu/alpine/ bandwidth: 1Gbit/s contact: lannonbr@clarkson.edu +- name: Centro de Computação Eletrônica, Universidade de São Paulo + location: South America, Brazil, São Paulo + urls: + - http://linorg.usp.br/AlpineLinux/ + - rsync://linorg.usp.br/AlpineLinux/ + contact: linorg@usp.br + |