From bb46087068664533aa76282cf56afb7695432d09 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 21 Jan 2017 09:05:34 +0100 Subject: [PATCH] Add Fedora 1 - 25 --- sql/schema.sql | 27 ++++++++- util/cron.sh | 1 + util/fedora.sh | 131 ++++++++++++++++++++++++++++++++++++++++++ www/images/fedora.png | Bin 0 -> 1682 bytes www/index.pl | 16 ++++-- 5 files changed, 170 insertions(+), 5 deletions(-) create mode 100755 util/fedora.sh create mode 100644 www/images/fedora.png 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 new file mode 100644 index 0000000000000000000000000000000000000000..ad861fca485e58b3f01532167cd1d984ff50b8d4 GIT binary patch literal 1682 zcmV;D25tF?P)a_3COC->d=dw2QHckiS0q@| zX?3qs^XuR-#F4VE7T_F-Rb0_VOoO7ZT^5~w2d!o_e-p$$?!ZwSU>dN zA(`Mo%BSO6dzgmDv_2v=VEq^EUU3yLns{xpu?UzJ31sS?-z-Ah85*l@ysY}Nv%00P zweLY`%T2Dh6@ch~(R7c3}+tOID6 z!A)+W*Cr?}#+uYl5il)YE^q1@Kukk_j>D3)SfBG@8sD4@K;6Sl9R}IS3@atSmH-QM za_Y4nmB8qHE4O%jQUddxN#-3_;Ve|pdDDaijAT+Cx~Uj3ojP}ANr2p%-Y%DNMa@hs zxMXVV%SoLP3ycRDR{X9?gq4t5W$P}5S4_G2IJN^TUE%b(ULzJ*B0{fH(15T)Hy7Ky z%X7WT3`^04{FxDpI3K5%G$X9wxC6HH!Gh7F}l0chps|D%nqjT^$9RyV;p`c&sb(O{{??)@FV8 za7?G4d%1G^DGh|ee`|xmL7)I6YBuldx&DyBe!#DH^0|8>8a-(_-F=rUX+=ytiP|Ly z_lPwtsO_KB06?b2B7)pbUj7)KfEP124vk>>Eilo8h?#;@_^dbcOggL4{zZ({GcfG` z#%UQGGo&C)gQh%6SYUuG&I8e*J~Aeab~-HWJkan&&0aA_;k6BZ0S6KY`T}Zu#g?;y zK>d8;tHF?XMHOw$s8QtAD{_r-=l){^kyF+||8;v_{ia=2obWuiRaroTq#Os5Q|9o& zJF(rP>&iW}3ZvLl)MQak2?8e{QwELx0x#gCui+I*Rh~Sc9U~Sz9_$#hvz(ALvgAV$ z*x1mbAdq)4v0%NxY@2^9uz@Bl*RTw;#4c-Jx@I47swN0*nvKF5k;_aGfan^QX|sup z5>~2?*-u7;w-|41P!^ytCl-L(Y(;gV6JgQXO%|{(G{fSs)B$q7^(Gc_#aC}UL|AWm zClfOj9c!iAF|9Crm)19s)?E4G!$bQ!ZkD!5Kyu|?|OmG^C+d^2huF^w!xcP=XOmGb7y(ZH!{X}DVgr=~`pwD=cwz}@S zHkn4BO~MH!0aN*@^M)2GI|euAU%Ya2^g#WuaM^O{!Tk{p6(=pV=$m1lZOHxJhDmR` z>J+$xfa&s2W=E2$rt9zv;{(4@pLY)qjZ=pzJ1yTVlyg?5CuB7~evXA;Y~t0)rpvr_ z*>LRUkdG^>#u==G4c8M3FCA6ix_UrR}M0=6UE$^ZZW07*qoM6N<$f)P|GAOHXW literal 0 HcmV?d00001 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. +
Fedora
+ Historical releases were fetched from archives.fedoraproject.org, + 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.
FreeBSD
Historical releases were fetched from http://ftp-archive.freebsd.org/mirror/FreeBSD-Archive/. @@ -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. :-(
+ 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.
Ubuntu
Historical releases were fetched from http://old-releases.ubuntu.com/ubuntu/,