diff --git a/sql/schema.sql b/sql/schema.sql index e70fa8e..2119ad3 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -183,7 +183,53 @@ INSERT INTO systems (id, name, release, short, relorder) VALUES (129,'FreeBSD', '11.1', 'freebsd-11.1', 62), (130,'Ubuntu', '17.10', 'ubuntu-artful', 26), (131,'Fedora', '27', 'fedora-27', 26), - (132,'FreeBSD', '10.4', 'freebsd-10.4', 60); + (132,'FreeBSD', '10.4', 'freebsd-10.4', 60), + (133,'CentOS', '2.1', 'centos-2.1', 1), + (134,'CentOS', '3.1', 'centos-3.1', 2), + (136,'CentOS', '3.3', 'centos-3.3', 4), + (137,'CentOS', '3.4', 'centos-3.4', 5), + (138,'CentOS', '3.5', 'centos-3.5', 6), + (139,'CentOS', '3.6', 'centos-3.6', 7), + (140,'CentOS', '3.7', 'centos-3.7', 8), + (141,'CentOS', '3.8', 'centos-3.8', 9), + (142,'CentOS', '3.9', 'centos-3.9', 10), + (143,'CentOS', '4.0', 'centos-4.0', 11), + (144,'CentOS', '4.1', 'centos-4.1', 12), + (145,'CentOS', '4.2', 'centos-4.2', 13), + (146,'CentOS', '4.3', 'centos-4.3', 14), + (147,'CentOS', '4.4', 'centos-4.4', 15), + (148,'CentOS', '4.5', 'centos-4.5', 16), + (149,'CentOS', '4.6', 'centos-4.6', 17), + (150,'CentOS', '4.7', 'centos-4.7', 18), + (151,'CentOS', '4.8', 'centos-4.8', 19), + (152,'CentOS', '4.9', 'centos-4.9', 20), + (153,'CentOS', '5.0', 'centos-5.0', 21), + (154,'CentOS', '5.1', 'centos-5.1', 22), + (155,'CentOS', '5.2', 'centos-5.2', 23), + (156,'CentOS', '5.3', 'centos-5.3', 24), + (157,'CentOS', '5.4', 'centos-5.4', 25), + (158,'CentOS', '5.5', 'centos-5.5', 26), + (159,'CentOS', '5.6', 'centos-5.6', 27), + (160,'CentOS', '5.7', 'centos-5.7', 28), + (161,'CentOS', '5.8', 'centos-5.8', 29), + (162,'CentOS', '5.9', 'centos-5.9', 30), + (163,'CentOS', '5.10', 'centos-5.10', 31), + (164,'CentOS', '5.11', 'centos-5.11', 32), + (165,'CentOS', '6.0', 'centos-6.0', 33), + (166,'CentOS', '6.1', 'centos-6.1', 34), + (167,'CentOS', '6.2', 'centos-6.2', 35), + (168,'CentOS', '6.3', 'centos-6.3', 36), + (169,'CentOS', '6.4', 'centos-6.4', 37), + (170,'CentOS', '6.5', 'centos-6.5', 38), + (171,'CentOS', '6.6', 'centos-6.6', 39), + (172,'CentOS', '6.7', 'centos-6.7', 40), + (173,'CentOS', '6.8', 'centos-6.8', 41), + (174,'CentOS', '6.9', 'centos-6.9', 42), + (175,'CentOS', '7.0', 'centos-7.0', 43), + (176,'CentOS', '7.1', 'centos-7.1', 44), + (177,'CentOS', '7.2', 'centos-7.2', 45), + (178,'CentOS', '7.3', 'centos-7.3', 46), + (179,'CentOS', '7.4', 'centos-7.4', 47); -- Removes any path components and compression extensions from the filename. diff --git a/util/centos.sh b/util/centos.sh new file mode 100755 index 0000000..3453ce3 --- /dev/null +++ b/util/centos.sh @@ -0,0 +1,234 @@ +#!/bin/sh + +. ./common.sh + +VMIRROR=http://vault.centos.org/ +CMIRROR=http://centos.mirrors.ovh.net/ftp.centos.org/ + +# Centos 3.1 - 3.6 (doesn't have useful repo metadata) +centa() { + local VER=$1 + index rpmdir --sys centos-$VER --cat os --mirror "$VMIRROR$VER/os/i386/RedHat/RPMS/" + index rpmdir --sys centos-$VER --cat os --mirror "$VMIRROR$VER/updates/i386/RPMS/" + index rpmdir --sys centos-$VER --cat extras --mirror "$VMIRROR$VER/extras/i386/RPMS/" + index rpmdir --sys centos-$VER --cat addons --mirror "$VMIRROR$VER/addons/i386/RPMS/" + index rpmdir --sys centos-$VER --cat contrib --mirror "$VMIRROR$VER/contrib/i386/RPMS/" +} + +# Centos 3.7+ (same structure, but has more repos and metadata we can use) +centb() { + local VER=$1 + local MIR=${2:-$VMIRROR} + index rpm --sys centos-$VER --cat os --mirror "$MIR$VER/os/i386/" + index rpm --sys centos-$VER --cat os --mirror "$MIR$VER/updates/i386/" + index rpm --sys centos-$VER --cat extras --mirror "$MIR$VER/extras/i386/" + index rpm --sys centos-$VER --cat addons --mirror "$MIR$VER/addons/i386/" # not present in 6.0+ + index rpm --sys centos-$VER --cat contrib --mirror "$MIR$VER/contrib/i386/" # not present in some 5.x releases + index rpm --sys centos-$VER --cat centosplus --mirror "$MIR$VER/centosplus/i386/" +} + +# CentOS 7.0+ (different versioning, using x86_64) +centc() { + local VER=$1 + local DIR=$2 + local MIR=${3:-$VMIRROR} + index rpm --sys centos-$VER --cat os --mirror "$MIR$DIR/os/x86_64/" + index rpm --sys centos-$VER --cat os --mirror "$MIR$DIR/updates/x86_64/" + index rpm --sys centos-$VER --cat extras --mirror "$MIR$DIR/extras/x86_64/" + index rpm --sys centos-$VER --cat centosplus --mirror "$MIR$DIR/centosplus/x86_64/" +} + +case "$1" in + 2.1) + index rpmdir --sys centos-2.1 --cat core --mirror "${VMIRROR}2.1/final/i386/CentOS/RPMS/" + ;; + 3.1) + centa 3.1 + ;; + 3.3) + centa 3.3 + ;; + 3.4) + centa 3.4 + ;; + 3.5) + centa 3.5 + ;; + 3.6) + centa 3.6 + ;; + 3.7) + centb 3.7 + ;; + 3.8) + centb 3.8 + ;; + 3.9) + centb 3.9 + ;; + 4.0) + centb 4.0 + ;; + 4.1) + centb 4.1 + ;; + 4.2) + centb 4.2 + ;; + 4.3) + centb 4.3 + ;; + 4.4) + centb 4.4 + ;; + 4.5) + centb 4.5 + ;; + 4.6) + centb 4.6 + ;; + 4.7) + centb 4.7 + ;; + 4.8) + centb 4.8 + ;; + 4.9) + centb 4.9 + ;; + 5.0) + centb 5.0 + ;; + 5.1) + centb 5.1 + ;; + 5.2) + centb 5.2 + ;; + 5.3) + centb 5.3 + ;; + 5.4) + centb 5.4 + ;; + 5.5) + centb 5.5 + ;; + 5.6) + centb 5.6 + ;; + 5.7) + centb 5.7 + ;; + 5.8) + centb 5.8 + ;; + 5.9) + centb 5.9 + ;; + 5.10) + centb 5.10 + ;; + 5.11) + centb 5.11 + ;; + 6.0) + centb 6.0 + ;; + 6.1) + centb 6.1 + ;; + 6.2) + centb 6.2 + ;; + 6.3) + centb 6.3 + ;; + 6.4) + centb 6.4 + ;; + 6.5) + centb 6.5 + ;; + 6.6) + centb 6.6 + ;; + 6.7) + centb 6.7 + ;; + 6.8) + centb 6.8 + ;; + 6.9) + centb 6.9 $CMIRROR + ;; + 7.0) + centc 7.0 7.0.1406 + ;; + 7.1) + centc 7.1 7.1.1503 + ;; + 7.2) + centc 7.2 7.2.1511 + ;; + 7.3) + centc 7.3 7.3.1611 + ;; + 7.4) + centc 7.4 7.4.1708 $CMIRROR + ;; + old) + $0 2.1 + $0 3.1 + $0 3.3 + $0 3.4 + $0 3.5 + $0 3.6 + $0 3.7 + $0 3.8 + $0 3.9 + $0 4.0 + $0 4.1 + $0 4.2 + $0 4.3 + $0 4.4 + $0 4.5 + $0 4.6 + $0 4.7 + $0 4.8 + $0 4.9 + $0 5.0 + $0 5.1 + $0 5.2 + $0 5.3 + $0 5.4 + $0 5.5 + $0 5.6 + $0 5.7 + $0 5.8 + $0 5.9 + $0 5.10 + $0 5.11 + $0 6.0 + $0 6.1 + $0 6.2 + $0 6.3 + $0 6.4 + $0 6.5 + $0 6.6 + $0 6.7 + $0 6.8 + $0 7.0 + $0 7.1 + $0 7.2 + $0 7.3 + ;; + current) + $0 6.9 # till 2020-11-30 + $0 7.4 # till 2024-06-30 + ;; + all) + $0 old + $0 current + ;; +esac diff --git a/util/cron.sh b/util/cron.sh index 98de787..632afbb 100755 --- a/util/cron.sh +++ b/util/cron.sh @@ -5,6 +5,7 @@ PSQL="psql -U manned -Awtq" ./arch.sh current ./debian.sh current +./centos.sh current ./fedora.sh current ./ubuntu.sh current diff --git a/www/images/centos.png b/www/images/centos.png new file mode 100644 index 0000000..c60a19d Binary files /dev/null and b/www/images/centos.png differ diff --git a/www/index.pl b/www/index.pl index 6b3d5f3..f56bb5e 100755 --- a/www/index.pl +++ b/www/index.pl @@ -250,6 +250,13 @@ 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. +
CentOS
+ Historical releases were fetched from vault.centos.org, current releases + from a local mirror. Where applicable, the following repositories were + indexed: addons, centosplus, contrib, extras, os. The i386 architecture + was indexed for versions lower than 7.0, since 7.0 the packages from + x86_64 are indexed.
Fedora
Historical releases were fetched from archives.fedoraproject.org,