#!/bin/sh . ./common.sh AMIRROR=http://old-releases.ubuntu.com/ubuntu/ CMIRROR=http://nl3.archive.ubuntu.com/ubuntu/ # Shortcut for a standard Ubuntu repo, usage: # stdrepo name mirror arch stdrepo() { local ARCH=${3:-"i386"} index_deb ubuntu-$1 $2 $1 "main multiverse restricted universe" "" $ARCH index_deb ubuntu-$1 $2 $1-updates "main multiverse restricted universe" "" $ARCH index_deb ubuntu-$1 $2 $1-security "main multiverse restricted universe" "" $ARCH } case $1 in warty) index_deb ubuntu-warty $AMIRROR warty "main multiverse restricted universe" index_deb ubuntu-warty $AMIRROR warty-updates "main multiverse restricted universe" "dists/warty/Contents-i386.gz" index_deb ubuntu-warty $AMIRROR warty-security "main multiverse restricted universe" "dists/warty/Contents-i386.gz" ;; hoary) index_deb ubuntu-hoary $AMIRROR hoary "main multiverse restricted universe" index_deb ubuntu-hoary $AMIRROR hoary-updates "main multiverse restricted universe" "dists/hoary/Contents-i386.gz" index_deb ubuntu-hoary $AMIRROR hoary-security "main multiverse restricted universe" "dists/hoary/Contents-i386.gz" ;; breezy) index_deb ubuntu-breezy $AMIRROR breezy "main multiverse restricted universe" index_deb ubuntu-breezy $AMIRROR breezy-updates "main multiverse restricted universe" "dists/breezy/Contents-i386.gz" index_deb ubuntu-breezy $AMIRROR breezy-security "main multiverse restricted universe" "dists/breezy/Contents-i386.gz" ;; dapper) # dists/dapper/ has an empty Contents-i386.gz; but that's handled properly (by downloading every package -.-). stdrepo dapper $AMIRROR ;; edgy) index_deb ubuntu-edgy $AMIRROR edgy "main multiverse restricted universe" index_deb ubuntu-edgy $AMIRROR edgy-updates "main multiverse restricted universe" "dists/edgy/Contents-i386.gz" index_deb ubuntu-edgy $AMIRROR edgy-security "main multiverse restricted universe" "dists/edgy/Contents-i386.gz" ;; feisty) stdrepo feisty $AMIRROR ;; gutsy) stdrepo gutsy $AMIRROR ;; hardy) stdrepo hardy $AMIRROR ;; intrepid) stdrepo intrepid $AMIRROR ;; jaunty) stdrepo jaunty $AMIRROR ;; karmic) stdrepo karmic $AMIRROR ;; lucid) stdrepo lucid $AMIRROR ;; maverick) stdrepo maverick $AMIRROR ;; natty) stdrepo natty $AMIRROR ;; oneiric) stdrepo oneiric $AMIRROR ;; precise) stdrepo precise $CMIRROR ;; quantal) stdrepo quantal $AMIRROR ;; raring) stdrepo raring $AMIRROR ;; saucy) stdrepo saucy $AMIRROR ;; trusty) stdrepo trusty $CMIRROR ;; utopic) stdrepo utopic $AMIRROR ;; vivid) stdrepo vivid $CMIRROR ;; wily) stdrepo wily $CMIRROR ;; xenial) stdrepo xenial $CMIRROR ;; yakkety) stdrepo yakkety $CMIRROR ;; zesty) stdrepo zesty $CMIRROR amd64 ;; artful) stdrepo artful $CMIRROR amd64 ;; bionic) stdrepo bionic $CMIRROR amd64 ;; cosmic) stdrepo cosmic $CMIRROR amd64 ;; disco) stdrepo disco $CMIRROR amd64 ;; eoan) stdrepo eoan $CMIRROR amd64 ;; focal) stdrepo focal $CMIRROR amd64 ;; groovy) stdrepo groovy $CMIRROR amd64 ;; hirsute) stdrepo hirsute $CMIRROR amd64 ;; impish) stdrepo impish $CMIRROR amd64 ;; jammy) stdrepo jammy $CMIRROR amd64 ;; kinetic) stdrepo kinetic $CMIRROR amd64 ;; lunar) stdrepo lunar $CMIRROR amd64 ;; mantic) stdrepo mantic $CMIRROR amd64 ;; noble) stdrepo noble $CMIRROR amd64 ;; oracular) stdrepo oracular $CMIRROR amd64 ;; old) $0 warty $0 hoary $0 breezy $0 dapper $0 edgy $0 feisty $0 gutsy $0 intrepid $0 jaunty $0 karmic $0 lucid $0 maverick $0 natty $0 hardy $0 oneiric $0 precise $0 raring $0 quantal $0 saucy $0 trusty $0 utopic $0 vivid $0 wily $0 xenial $0 yakkety $0 zesty $0 artful $0 cosmic $0 disco $0 eoan $0 groovy $0 hirsute $0 impish $0 kinetic $0 lunar $0 mantic ;; current) $0 bionic # until 2028-04 $0 focal # until 2030-04 $0 jammy # until 2032-04 $0 noble # until 2034-04 $0 oracular # until 2025-07 ;; all) $0 old $0 current ;; esac