60 lines
1.7 KiB
Python
60 lines
1.7 KiB
Python
# -*- mode: python; coding: utf-8 -*-
|
|
|
|
include("mode/space")
|
|
header()
|
|
|
|
def source(args):
|
|
print "deb %s%s" % (prefix, args)
|
|
print "deb-src %s%s" % (prefix, args)
|
|
|
|
if has("ovh"):
|
|
prefix = ""
|
|
source("ftp://mir1.ovh.net/debian/ etch main contrib")
|
|
source("http://security.debian.org/ etch/updates main")
|
|
|
|
@# Paquet construit a la main
|
|
source("ftp://mirror.adm.crans.org/custom ./")
|
|
|
|
elif has("debian-lenny"):
|
|
prefix = ""
|
|
source("http://debian.ens-cachan.fr/debian/ lenny main contrib")
|
|
source("http://security.debian.org/ lenny/updates main")
|
|
source("ftp://mirror.adm.crans.org/custom/ ./")
|
|
|
|
if has("o2"):
|
|
prefix = ""
|
|
@# Avant-premières des paquets ocsigen
|
|
source("http://ocsigen.org/debian/ lenny main contrib")
|
|
|
|
else:
|
|
# Pour les mises a jour de sécurité on utilise pas de mirroi...
|
|
if has("adm-only"):
|
|
# ... sauf si le serveur ne voit pas le reste du monde ...
|
|
prefix = "ftp://mirror.adm.crans.org/"
|
|
source("debian-security etch/updates main")
|
|
else:
|
|
prefix = "ftp://security.debian.org/"
|
|
source("debian-security etch/updates main")
|
|
|
|
if has("debian-mirror"):
|
|
prefix = "file:/mirror/"
|
|
else:
|
|
prefix = "ftp://mirror.adm.crans.org/"
|
|
|
|
source("debian etch main contrib")
|
|
|
|
# Pour quand ça sera fait:
|
|
# if has("need-volatile"):
|
|
source("debian-volatile etch/volatile main contrib")
|
|
|
|
if has("2B"):
|
|
@# Mplayer...
|
|
source("debian-multimedia etch main")
|
|
|
|
@# Paquets construits à la main
|
|
source("custom ./")
|
|
|
|
if has("rouge"):
|
|
prefix = ""
|
|
@# Backports pour dovecot
|
|
source("http://www.backports.org/backports.org/ etch-backports main contrib")
|