summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/reflector/PKGBUILD41
-rw-r--r--libre/reflector/rebranding.patch60
2 files changed, 101 insertions, 0 deletions
diff --git a/libre/reflector/PKGBUILD b/libre/reflector/PKGBUILD
new file mode 100644
index 000000000..ac83b14e9
--- /dev/null
+++ b/libre/reflector/PKGBUILD
@@ -0,0 +1,41 @@
+#Maintainer: Xyne <ac xunilhcra enyx, backwards>
+#Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+pkgname=reflector
+pkgver=2013
+pkgrel=3.1
+pkgdesc='A Python 3 module and script to retrieve and filter the latest Pacman mirror list (Parabola rebranded)'
+arch=(any)
+license=(GPL)
+url="http://xyne.archlinux.ca/projects/reflector"
+depends=(python3)
+source=(
+ http://xyne.archlinux.ca/projects/reflector/src/reflector-2013.tar.xz
+ http://xyne.archlinux.ca/projects/reflector/src/reflector-2013.tar.xz.sig
+ rebranding.patch
+)
+sha512sums=(
+ 78351923edfafbf900e610d4461d341896e7618ceb4031120bb75155c5922cd6ba78b6309a04cf3802307e52d5b038ac7e7932ed8ccd59faa1acd197bd4765c5
+ SKIP
+ 29ff0df25cfc93bb0d6d8fdec69ba6e0160a8da249f4bbcaf57b9b82fb735659de6e2c1bf9a63a782bb17f29f841f8397dd48d7f60234cda292bc2eea63f8cd5
+)
+md5sums=(
+ 3ea0857cdb4ca3e3f9c9c243d09b1fea
+ SKIP
+ c96302d6afc183d12c10f6e8a23b2d21
+)
+
+prepare ()
+{
+ # Rebranding for Parabola
+ patch -Np1 -i "$srcdir/rebranding.patch"
+}
+
+package ()
+{
+ cd "$srcdir/$pkgname-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
+
+
+# vim: set ts=2 sw=2 et:
diff --git a/libre/reflector/rebranding.patch b/libre/reflector/rebranding.patch
new file mode 100644
index 000000000..186197565
--- /dev/null
+++ b/libre/reflector/rebranding.patch
@@ -0,0 +1,60 @@
+diff -Nur reflector-2013.orig/Reflector.py reflector-2013/Reflector.py
+--- reflector-2013.orig/Reflector.py 2013-01-04 00:13:58.000000000 -0200
++++ reflector-2013/Reflector.py 2013-12-14 16:30:41.096429595 -0200
+@@ -60,7 +60,7 @@
+
+ class MirrorStatus():
+ # JSON URI
+- URL = 'https://www.archlinux.org/mirrors/status/json/'
++ URL = 'https://parabolagnulinux.org/mirrors/status/json/'
+ # Mirror URL format. Accepts server base URL, repository, and architecture.
+ MIRROR_URL_FORMAT = '{0}{1}/os/{2}'
+ MIRRORLIST_ENTRY_FORMAT = "Server = " + MIRROR_URL_FORMAT + "\n"
+@@ -88,14 +88,18 @@
+ 'extra',
+ 'gnome-unstable',
+ 'kde-unstable',
++ 'libre',
++ 'libre-testing',
+ 'multilib',
+- 'multilib-testing'
++ 'multilib-testing',
++ 'nonprism',
++ 'pcr',
+ 'staging',
+ 'testing'
+ )
+
+ # Known system architectures, as used to replace the "$arch" variable.
+- ARCHITECTURES = ['i686', 'x86_64']
++ ARCHITECTURES = ['i686', 'x86_64', 'mips64el']
+
+ # Initialize
+ # refresh_interval:
+@@ -393,7 +397,7 @@
+ if mirrors is None:
+ mirrors = self.get_mirrors()
+
+- mirrorlist = ("# Arch Linux mirrorlist generated by Reflector\n" + "# %-11s %s\n" * 5 + "\n") % (\
++ mirrorlist = ("# Parabola GNU/Linux-libre mirrorlist generated by Reflector\n" + "# %-11s %s\n" * 5 + "\n") % (\
+ 'With:',
+ ' '.join(cmd),
+ 'When:',
+@@ -455,7 +459,7 @@
+
+ # Parse arguments. If none are passed, use ARGV.
+ def parse_args(args=None):
+- parser = ArgumentParser(description='retrieve and filter a list of the latest Arch Linux mirrors')
++ parser = ArgumentParser(description='retrieve and filter a list of the latest Parabola GNU/Linux-libre mirrors')
+
+ parser.add_argument(
+ '--connection-timeout', dest='connection_timeout', type=int, metavar='n', default=5,
+@@ -474,7 +478,7 @@
+
+ parser.add_argument(
+ '--cache-timeout', dest='cache_timeout', type=int, metavar='n', default=300,
+- help='The cache timeout in seconds for the data retrieved from the Arch Linux Mirror Status API. The default is 300 (5 minutes).'
++ help='The cache timeout in seconds for the data retrieved from the Parabola GNU/Linux-libre Mirror Status API. The default is 300 (5 minutes).'
+ )
+
+ parser.add_argument(