| 6 |
# arbitrary at the moment. More architectures can be added later. |
# arbitrary at the moment. More architectures can be added later. |
| 7 |
|
|
| 8 |
MIRROR = http://ftp.de.debian.org/debian/ |
MIRROR = http://ftp.de.debian.org/debian/ |
| 9 |
|
ETCH_ARCHS = alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc |
| 10 |
|
LENNY_ARCHS = alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc s390 sparc |
| 11 |
|
SQUEEZE_ARCHS = amd64 armel hppa i386 ia64 mips mipsel powerpc s390 sparc |
| 12 |
|
SID_ARCHS = alpha amd64 armel hppa i386 ia64 kfreebsd-i386 kfreebsd-amd64 mips mipsel powerpc s390 sparc |
| 13 |
|
|
| 14 |
OLDSTABLE = etch |
OLDSTABLE = etch |
| 15 |
STABLE = lenny |
STABLE = lenny |
| 16 |
TESTING = squeeze |
TESTING = squeeze |
| 17 |
|
|
| 18 |
|
OLDSTABLE_uc = $(shell echo "$(OLDSTABLE)" | tr "[:lower:]" "[:upper:]") |
| 19 |
|
STABLE_uc = $(shell echo "$(STABLE)" | tr "[:lower:]" "[:upper:]") |
| 20 |
|
TESTING_uc = $(shell echo "$(TESTING)" | tr "[:lower:]" "[:upper:]") |
| 21 |
|
|
| 22 |
all: |
all: |
| 23 |
rm -f data/security-new.db data/security-new.db.journal |
rm -f data/security-new.db data/security-new.db.journal |
| 24 |
if test -e data/security.db; then cp data/security.db data/security-new.db; fi |
if test -e data/security.db; then cp data/security.db data/security-new.db; fi |
| 60 |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
| 61 |
data/packages/$${rel}__$${archive}_Sources ; \ |
data/packages/$${rel}__$${archive}_Sources ; \ |
| 62 |
done ; \ |
done ; \ |
| 63 |
|
for arch in $(SID_ARCHS) ; do \ |
| 64 |
|
for archive in main contrib non-free ; do \ |
| 65 |
|
$(PYTHON) bin/apt-update-file \ |
| 66 |
|
$(MIRROR)/dists/$$rel/$$archive/binary-$$arch/Packages \ |
| 67 |
|
data/packages/$${rel}__$${archive}_$${arch}_Packages ; \ |
| 68 |
|
done ; \ |
| 69 |
|
done ; \ |
| 70 |
done |
done |
| 71 |
|
|
| 72 |
update-testing: |
update-testing: |
| 76 |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
| 77 |
data/packages/$${rel}__$${archive}_Sources ; \ |
data/packages/$${rel}__$${archive}_Sources ; \ |
| 78 |
done ; \ |
done ; \ |
| 79 |
|
for arch in $($(TESTING_uc)_ARCHS) ; do \ |
| 80 |
|
for archive in main contrib non-free ; do \ |
| 81 |
|
$(PYTHON) bin/apt-update-file \ |
| 82 |
|
$(MIRROR)/dists/$$rel/$$archive/binary-$$arch/Packages \ |
| 83 |
|
data/packages/$${rel}__$${archive}_$${arch}_Packages ; \ |
| 84 |
|
done ; \ |
| 85 |
|
done ; \ |
| 86 |
done |
done |
| 87 |
|
|
| 88 |
update-stable: update-oldstable |
update-stable: update-oldstable |
| 92 |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
| 93 |
data/packages/$${rel}__$${archive}_Sources ; \ |
data/packages/$${rel}__$${archive}_Sources ; \ |
| 94 |
done ; \ |
done ; \ |
| 95 |
|
for arch in $($(STABLE_uc)_ARCHS) ; do \ |
| 96 |
|
for archive in main contrib non-free ; do \ |
| 97 |
|
$(PYTHON) bin/apt-update-file \ |
| 98 |
|
$(MIRROR)/dists/$$rel/$$archive/binary-$$arch/Packages \ |
| 99 |
|
data/packages/$${rel}__$${archive}_$${arch}_Packages ; \ |
| 100 |
|
done ; \ |
| 101 |
|
done ; \ |
| 102 |
done |
done |
| 103 |
|
|
| 104 |
update-oldstable: |
update-oldstable: |
| 108 |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
| 109 |
data/packages/$${rel}__$${archive}_Sources ; \ |
data/packages/$${rel}__$${archive}_Sources ; \ |
| 110 |
done ; \ |
done ; \ |
| 111 |
|
for arch in $($(OLDSTABLE_uc)_ARCHS) ; do \ |
| 112 |
|
for archive in main contrib non-free ; do \ |
| 113 |
|
$(PYTHON) bin/apt-update-file \ |
| 114 |
|
$(MIRROR)/dists/$$rel/$$archive/binary-$$arch/Packages \ |
| 115 |
|
data/packages/$${rel}__$${archive}_$${arch}_Packages ; \ |
| 116 |
|
done ; \ |
| 117 |
|
done ; \ |
| 118 |
done |
done |
| 119 |
|
|
| 120 |
.PHONY: update-security update-old-security update-testing-security |
.PHONY: update-security update-old-security update-testing-security |
| 123 |
update-testing-security: |
update-testing-security: |
| 124 |
$(PYTHON) bin/apt-update-file \ |
$(PYTHON) bin/apt-update-file \ |
| 125 |
$(ST_MIRROR)/main/source/Sources $(ST_FILE)main_Sources |
$(ST_MIRROR)/main/source/Sources $(ST_FILE)main_Sources |
| 126 |
|
set -e ; for arch in $($(TESTING_uc)_ARCHS) ; do \ |
| 127 |
|
$(PYTHON) bin/apt-update-file \ |
| 128 |
|
$(ST_MIRROR)/main/binary-$${arch}/Packages $(ST_FILE)main_$${arch}_Packages ; \ |
| 129 |
|
done |
| 130 |
|
|
| 131 |
SEC_MIRROR = http://security.debian.org/dists |
SEC_MIRROR = http://security.debian.org/dists |
| 132 |
update-security: update-old-security |
update-security: update-old-security |
| 135 |
$(PYTHON) bin/apt-update-file \ |
$(PYTHON) bin/apt-update-file \ |
| 136 |
$(SEC_MIRROR)/$$archive/updates/$$section/source/Sources \ |
$(SEC_MIRROR)/$$archive/updates/$$section/source/Sources \ |
| 137 |
data/packages/$${archive}_security_$${section}_Sources ; \ |
data/packages/$${archive}_security_$${section}_Sources ; \ |
| 138 |
|
for arch in $($(STABLE_uc)_ARCHS) ; do \ |
| 139 |
|
$(PYTHON) bin/apt-update-file \ |
| 140 |
|
$(SEC_MIRROR)/$$archive/updates/$$section/binary-$$arch/Packages \ |
| 141 |
|
data/packages/$${archive}_security_$${section}_$${arch}_Packages ; \ |
| 142 |
|
done ; \ |
| 143 |
done ; \ |
done ; \ |
| 144 |
done |
done |
| 145 |
|
|
| 149 |
$(PYTHON) bin/apt-update-file \ |
$(PYTHON) bin/apt-update-file \ |
| 150 |
$(SEC_MIRROR)/$$archive/updates/$$section/source/Sources \ |
$(SEC_MIRROR)/$$archive/updates/$$section/source/Sources \ |
| 151 |
data/packages/$${archive}_security_$${section}_Sources ; \ |
data/packages/$${archive}_security_$${section}_Sources ; \ |
| 152 |
|
for arch in $($(OLDSTABLE_uc)_ARCHS) ; do \ |
| 153 |
|
$(PYTHON) bin/apt-update-file \ |
| 154 |
|
$(SEC_MIRROR)/$$archive/updates/$$section/binary-$$arch/Packages \ |
| 155 |
|
data/packages/$${archive}_security_$${section}_$${arch}_Packages ; \ |
| 156 |
|
done ; \ |
| 157 |
done ; \ |
done ; \ |
| 158 |
done |
done |
| 159 |
|
|
| 160 |
VOLATILE_MIRROR = http://volatile.debian.net/debian-volatile/dists |
VOLATILE_MIRROR = http://volatile.debian.net/debian-volatile/dists |
| 161 |
update-volatile: |
update-volatile: |
| 162 |
set -e && for archive in $(OLDSTABLE) $(STABLE) ; do \ |
set -e && for archive in $(OLDSTABLE) $(STABLE) ; do \ |
| 163 |
|
for arch in $(ETCH_ARCHS) ; do \ |
| 164 |
|
$(PYTHON) bin/apt-update-file \ |
| 165 |
|
$(VOLATILE_MIRROR)/$${archive}/volatile/main/binary-$$arch/Packages \ |
| 166 |
|
data/packages/$${archive}-volatile__main_$${arch}_Packages ; \ |
| 167 |
|
done ; \ |
| 168 |
$(PYTHON) bin/apt-update-file \ |
$(PYTHON) bin/apt-update-file \ |
| 169 |
$(VOLATILE_MIRROR)/$${archive}/volatile/main/source/Sources \ |
$(VOLATILE_MIRROR)/$${archive}/volatile/main/source/Sources \ |
| 170 |
data/packages/$${archive}-volatile__main_Sources ; \ |
data/packages/$${archive}-volatile__main_Sources ; \ |
| 171 |
done |
done |
| 172 |
|
$(PYTHON) bin/apt-update-file \ |
| 173 |
|
$(VOLATILE_MIRROR)/lenny/volatile/main/binary-armel/Packages \ |
| 174 |
|
data/packages/lenny-volatile__main_armel_Packages |
| 175 |
|
|
| 176 |
BACKPORTS_MIRROR = http://www.backports.org/backports.org/dists |
BACKPORTS_MIRROR = http://www.backports.org/backports.org/dists |
| 177 |
update-backports: |
update-backports: |
| 178 |
set -e && for archive in $(OLDSTABLE) $(STABLE) ; do \ |
set -e && for archive in $(OLDSTABLE) $(STABLE) ; do \ |
| 179 |
|
for arch in $(ETCH_ARCHS) ; do \ |
| 180 |
|
$(PYTHON) bin/apt-update-file \ |
| 181 |
|
$(BACKPORTS_MIRROR)/$${archive}-backports/main/binary-$$arch/Packages \ |
| 182 |
|
data/packages/$${archive}-backports__main_$${arch}_Packages ; \ |
| 183 |
|
done ; \ |
| 184 |
$(PYTHON) bin/apt-update-file \ |
$(PYTHON) bin/apt-update-file \ |
| 185 |
$(BACKPORTS_MIRROR)/$${archive}-backports/main/source/Sources \ |
$(BACKPORTS_MIRROR)/$${archive}-backports/main/source/Sources \ |
| 186 |
data/packages/$${archive}-backports__main_Sources ; \ |
data/packages/$${archive}-backports__main_Sources ; \ |
| 187 |
done |
done |
| 188 |
|
$(PYTHON) bin/apt-update-file \ |
| 189 |
|
$(BACKPORTS_MIRROR)/lenny-backports/main/binary-armel/Packages \ |
| 190 |
|
data/packages/lenny-backports__main_armel_Packages |
| 191 |
|
|
| 192 |
update-lists: |
update-lists: |
| 193 |
svn update -q data |
svn update -q data |