summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2017-01-21 09:05:34 +0100
committerYorhel <git@yorhel.nl>2017-01-21 09:05:34 +0100
commitbb46087068664533aa76282cf56afb7695432d09 (patch)
tree3972774df1cb9e94f423b48b90ba6770ab092270 /util
parent06694fd1311be2c187b20570bd078a72fe0f266a (diff)
Add Fedora 1 - 25
Diffstat (limited to 'util')
-rwxr-xr-xutil/cron.sh1
-rwxr-xr-xutil/fedora.sh131
2 files changed, 132 insertions, 0 deletions
diff --git a/util/cron.sh b/util/cron.sh
index c73de32..98de787 100755
--- a/util/cron.sh
+++ b/util/cron.sh
@@ -5,6 +5,7 @@ PSQL="psql -U manned -Awtq"
./arch.sh current
./debian.sh current
+./fedora.sh current
./ubuntu.sh current
echo "============ Updating SQL indices"
diff --git a/util/fedora.sh b/util/fedora.sh
new file mode 100755
index 0000000..7043a97
--- /dev/null
+++ b/util/fedora.sh
@@ -0,0 +1,131 @@
+#!/bin/sh
+
+. ./common.sh
+
+AMIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/
+CMIRROR=http://mirror.nl.leaseweb.net/fedora/linux/
+
+
+# Fedora 7+ is pretty regular
+fedora() { # release arch mirror
+ MIR=$AMIRROR
+ [ -n "$3" ] && MIR=$3
+ index rpm --sys fedora-$1 --cat everything --mirror "${MIR}releases/$1/Everything/$2/os/"
+ index rpm --sys fedora-$1 --cat everything --mirror "${MIR}updates/$1/$2/"
+}
+
+
+case "$1" in
+ 1)
+ index rpmdir --sys fedora-1 --cat core --mirror "${AMIRROR}core/1/i386/os/Fedora/RPMS/"
+ ;;
+ 2)
+ index rpm --sys fedora-2 --cat core --mirror "${AMIRROR}core/2/i386/os/"
+ ;;
+ 3)
+ index rpm --sys fedora-3 --cat core --mirror "${AMIRROR}core/3/i386/os/"
+ index rpm --sys fedora-3 --cat extras --mirror "${AMIRROR}extras/3/i386/"
+ ;;
+ 4)
+ index rpm --sys fedora-4 --cat core --mirror "${AMIRROR}core/4/i386/os/"
+ index rpm --sys fedora-4 --cat extras --mirror "${AMIRROR}extras/4/i386/"
+ ;;
+ 5)
+ index rpm --sys fedora-5 --cat core --mirror "${AMIRROR}core/5/i386/os/"
+ index rpm --sys fedora-5 --cat extras --mirror "${AMIRROR}extras/5/i386/"
+ ;;
+ 6)
+ index rpm --sys fedora-6 --cat core --mirror "${AMIRROR}core/6/i386/os/"
+ index rpm --sys fedora-6 --cat extras --mirror "${AMIRROR}extras/6/i386/"
+ ;;
+ 7)
+ fedora 7 i386
+ ;;
+ 8)
+ fedora 8 i386
+ ;;
+ 9)
+ fedora 9 i386
+ ;;
+ 10)
+ fedora 10 i386
+ ;;
+ 11)
+ fedora 11 i386
+ ;;
+ 12)
+ fedora 12 i386
+ ;;
+ 13)
+ fedora 13 i386
+ ;;
+ 14)
+ fedora 14 i386
+ ;;
+ 15)
+ fedora 15 i386
+ ;;
+ 16)
+ fedora 16 i386
+ ;;
+ 17)
+ fedora 17 i386
+ ;;
+ 18)
+ fedora 18 x86_64
+ ;;
+ 19)
+ fedora 19 x86_64
+ ;;
+ 20)
+ fedora 20 x86_64
+ ;;
+ 21)
+ fedora 21 x86_64
+ ;;
+ 22)
+ fedora 22 x86_64
+ ;;
+ 23)
+ fedora 23 x86_64 $CMIRROR
+ ;;
+ 24)
+ fedora 24 x86_64 $CMIRROR
+ ;;
+ 25)
+ fedora 25 x86_64 $CMIRROR
+ ;;
+ old)
+ $0 1
+ $0 2
+ $0 3
+ $0 4
+ $0 5
+ $0 6
+ $0 7
+ $0 8
+ $0 9
+ $0 10
+ $0 11
+ $0 12
+ $0 13
+ $0 14
+ $0 15
+ $0 16
+ $0 17
+ $0 18
+ $0 19
+ $0 20
+ $0 21
+ $0 22
+ $0 23
+ ;;
+ current)
+ $0 24
+ $0 25
+ ;;
+ all)
+ $0 old
+ $0 current
+ ;;
+esac