diff options
author | Yorhel <git@yorhel.nl> | 2017-01-21 09:05:34 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2017-01-21 09:05:34 +0100 |
commit | bb46087068664533aa76282cf56afb7695432d09 (patch) | |
tree | 3972774df1cb9e94f423b48b90ba6770ab092270 | |
parent | 06694fd1311be2c187b20570bd078a72fe0f266a (diff) |
Add Fedora 1 - 25
-rw-r--r-- | sql/schema.sql | 27 | ||||
-rwxr-xr-x | util/cron.sh | 1 | ||||
-rwxr-xr-x | util/fedora.sh | 131 | ||||
-rw-r--r-- | www/images/fedora.png | bin | 0 -> 1682 bytes | |||
-rwxr-xr-x | www/index.pl | 16 |
5 files changed, 170 insertions, 5 deletions
diff --git a/sql/schema.sql b/sql/schema.sql index 5d48d1a..f8403c4 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -151,7 +151,32 @@ INSERT INTO systems (id, name, release, short, relorder) VALUES (97, 'FreeBSD', '10.2', 'freebsd-10.2', 58), (98, 'FreeBSD', '10.3', 'freebsd-10.3', 59), (99, 'FreeBSD', '11.0', 'freebsd-11.0', 60), - (100,'Ubuntu', '16.10', 'ubuntu-yakkety', 24); + (100,'Ubuntu', '16.10', 'ubuntu-yakkety', 24), + (101,'Fedora', '1', 'fedora-1', 0), + (102,'Fedora', '2', 'fedora-2', 1), + (103,'Fedora', '3', 'fedora-3', 2), + (104,'Fedora', '4', 'fedora-4', 3), + (105,'Fedora', '5', 'fedora-5', 4), + (106,'Fedora', '6', 'fedora-6', 5), + (107,'Fedora', '7', 'fedora-7', 6), + (108,'Fedora', '8', 'fedora-8', 7), + (109,'Fedora', '9', 'fedora-9', 8), + (110,'Fedora', '10', 'fedora-10', 9), + (111,'Fedora', '11', 'fedora-11', 10), + (112,'Fedora', '12', 'fedora-12', 11), + (113,'Fedora', '13', 'fedora-13', 12), + (114,'Fedora', '14', 'fedora-14', 13), + (115,'Fedora', '15', 'fedora-15', 14), + (116,'Fedora', '16', 'fedora-16', 15), + (117,'Fedora', '17', 'fedora-17', 16), + (118,'Fedora', '18', 'fedora-18', 17), + (119,'Fedora', '19', 'fedora-19', 18), + (120,'Fedora', '20', 'fedora-20', 19), + (121,'Fedora', '21', 'fedora-21', 20), + (122,'Fedora', '22', 'fedora-22', 21), + (123,'Fedora', '23', 'fedora-23', 22), + (124,'Fedora', '24', 'fedora-24', 23), + (125,'Fedora', '25', 'fedora-25', 24); -- Removes any path components and compression extensions from the filename. 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 diff --git a/www/images/fedora.png b/www/images/fedora.png Binary files differnew file mode 100644 index 0000000..ad861fc --- /dev/null +++ b/www/images/fedora.png diff --git a/www/index.pl b/www/index.pl index d0a2999..a616a3f 100755 --- a/www/index.pl +++ b/www/index.pl @@ -249,6 +249,15 @@ sub about { were missing from the repository archives. Where available, all components (main, contrib and non-free) from the $release and $release-updates repositories are indexed.</dd> + <dt>Fedora</dt><dd> + Historical releases were fetched from <a + href="http://archives.fedoraproject.org/pub/archive/fedora/linux/">archives.fedoraproject.org</a>, + current releases from a local repository. Fedora Core 1 till 6 are + (incorrectly) called 'Fedora' here. To compensate for that, Fedora 3 till + 6 also include the Extras repository. For Fedora 7 and later, the + 'Everything' and 'updates' repositories are indexed. The i386 arch was + indexed for Fedora 17 and older, the x86_64 arch starting with Fedora + 18.</dd> <dt>FreeBSD</dt><dd> Historical releases were fetched from <a href="http://ftp-archive.freebsd.org/mirror/FreeBSD-Archive/">http://ftp-archive.freebsd.org/mirror/FreeBSD-Archive/</a>. @@ -257,10 +266,9 @@ sub about { indexed, except for 2.0.5 - 2.2.7 and 3.0 - 3.3 because those were not available on the ftp archive. Only the -RELEASE repositories have been included, which is generally a snapshot of the ports directory around the - time of the release. A few packages are missing because the indexing - script was unable to determine the package name and version for - everything. Additionally, the dates indicated for many packages is a bit - off, and the site doesn't handle this very well yet. :-(</dd> + time of the release. The release dates indicated for many packages were + guessed from the file modification dates in the tarball, and may be + inaccurate.</dd> <dt>Ubuntu</dt><dd> Historical releases were fetched from <a href="http://old-releases.ubuntu.com/ubuntu/">http://old-releases.ubuntu.com/ubuntu/</a>, |