| 2 |
PYTHON_MODULES = $(wildcard lib/python/*.py) |
PYTHON_MODULES = $(wildcard lib/python/*.py) |
| 3 |
BUG_LISTS = $(wildcard data/*/list) |
BUG_LISTS = $(wildcard data/*/list) |
| 4 |
|
|
| 5 |
# Adjust these if necessary. The architecture selection is arther |
# Adjust these if necessary. The architecture selection is rather |
| 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://merkel.debian.org/~aba/debian/ |
# MIRROR = http://merkel.debian.org/~aba/debian/ |
| 9 |
RELEASES_with_proposed_updates = sarge=i386,ia64 etch=i386,ia64 |
MIRROR = http://ftp-stud.fht-esslingen.de/debian/ |
| 10 |
RELEASES = sid=i386,ia64 $(RELEASES_with_proposed_updates) \ |
ETCH_ARCHS = alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc |
| 11 |
$(subst =,-proposed-updates=, $(RELEASES_with_proposed_updates)) |
LENNY_ARCHS = alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc s390 sparc |
| 12 |
SECURITY_RELEASES = sarge-security=i386,ia64 |
SQUEEZE_ARCHS = alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc s390 sparc |
| 13 |
PACKAGE_FILES = $(wildcard data/packages/*_Sources) \ |
|
| 14 |
$(wildcard data/packages/*_Packages) |
all: |
| 15 |
|
rm -f data/security-new.db data/security-new.db.journal |
| 16 |
all: stamps/bug-lists-imported stamps/packages-imported |
if test -e data/security.db; then cp data/security.db data/security-new.db; fi |
| 17 |
|
$(PYTHON) bin/update-db data/security-new.db |
| 18 |
stamps/bug-lists-imported: bin/update-bug-list-db \ |
mv data/security-new.db data/security.db |
|
$(BUG_LISTS) $(PYTHON_MODULES) |
|
|
$(PYTHON) bin/update-bug-list-db |
|
|
touch $@ |
|
|
|
|
|
# No dependencies on the Python files. This part of the code should |
|
|
# be quite stable. We only run the packages import if "make |
|
|
# update-packages" has been invoked before. |
|
|
stamps/packages-imported: $(PACKAGE_FILES) |
|
|
if test -e stamps/packages-downloaded ; then \ |
|
|
$(PYTHON) bin/update-packages import \ |
|
|
$(RELEASES) $(SECURITY_RELEASES) ; \ |
|
|
fi |
|
|
touch $@ |
|
| 19 |
|
|
| 20 |
clean: |
clean: |
| 21 |
-rm data/security.db |
-rm data/security.db lib/python/test_security.db |
| 22 |
-rm stamps/*-* |
-rm stamps/*-* |
| 23 |
|
|
| 24 |
.PHONY: check check-syntax |
.PHONY: check check-syntax |
| 25 |
|
|
| 26 |
test check: check-syntax |
test check: check-syntax |
| 27 |
|
|
| 28 |
check-syntax: stamps/CAN-syntax stamps/CVE-syntax \ |
check-syntax: stamps/CVE-syntax \ |
| 29 |
stamps/DSA-syntax stamps/DTSA-syntax |
stamps/DSA-syntax stamps/DTSA-syntax |
| 30 |
|
|
|
stamps/CAN-syntax: data/CAN/list bin/check-syntax $(PYTHON_MODULES) |
|
|
$(PYTHON) bin/check-syntax CAN data/CAN/list |
|
|
touch $@ |
|
|
|
|
| 31 |
stamps/CVE-syntax: data/CVE/list bin/check-syntax $(PYTHON_MODULES) |
stamps/CVE-syntax: data/CVE/list bin/check-syntax $(PYTHON_MODULES) |
| 32 |
$(PYTHON) bin/check-syntax CVE data/CVE/list |
$(PYTHON) bin/check-syntax CVE data/CVE/list |
| 33 |
touch $@ |
touch $@ |
| 40 |
$(PYTHON) bin/check-syntax DTSA data/DTSA/list |
$(PYTHON) bin/check-syntax DTSA data/DTSA/list |
| 41 |
touch $@ |
touch $@ |
| 42 |
|
|
| 43 |
.PHONY: update-packages |
.PHONY: serve |
| 44 |
|
serve: |
| 45 |
|
@bash bin/test-web-server |
| 46 |
|
|
| 47 |
|
.PHONY: update-packages update-testing-security |
| 48 |
|
RELEASES = squeeze sid experimental |
| 49 |
update-packages: |
update-packages: |
| 50 |
$(PYTHON) bin/update-packages download $(MIRROR) $(RELEASES) |
set -e ; for rel in $(RELEASES) ; do \ |
| 51 |
$(PYTHON) bin/update-packages download \ |
for archive in main contrib non-free ; do \ |
| 52 |
http://security.debian.org/ $(SECURITY_RELEASES) |
$(PYTHON) bin/apt-update-file \ |
| 53 |
touch stamps/packages-downloaded |
$(MIRROR)/dists/$$rel/$$archive/source/Sources \ |
| 54 |
|
data/packages/$${rel}__$${archive}_Sources ; \ |
| 55 |
|
done ; \ |
| 56 |
|
for arch in $(SQUEEZE_ARCHS) ; do \ |
| 57 |
|
for archive in main contrib non-free ; do \ |
| 58 |
|
$(PYTHON) bin/apt-update-file \ |
| 59 |
|
$(MIRROR)/dists/$$rel/$$archive/binary-$$arch/Packages \ |
| 60 |
|
data/packages/$${rel}__$${archive}_$${arch}_Packages ; \ |
| 61 |
|
done ; \ |
| 62 |
|
done ; \ |
| 63 |
|
done |
| 64 |
|
|
| 65 |
|
ST_MIRROR = http://security.debian.org/dists/squeeze/updates |
| 66 |
|
ST_FILE = data/packages/squeeze_security_ |
| 67 |
|
update-testing-security: |
| 68 |
|
$(PYTHON) bin/apt-update-file \ |
| 69 |
|
$(ST_MIRROR)/main/source/Sources $(ST_FILE)main_Sources |
| 70 |
|
set -e ; for arch in $(SQUEEZE_ARCHS) ; do \ |
| 71 |
|
$(PYTHON) bin/apt-update-file \ |
| 72 |
|
$(ST_MIRROR)/main/binary-$${arch}/Packages $(ST_FILE)main_$${arch}_Packages ; \ |
| 73 |
|
done |
| 74 |
|
|
| 75 |
|
SEC_MIRROR = http://security.debian.org/dists |
| 76 |
|
update-security: |
| 77 |
|
for archive in etch lenny ; do \ |
| 78 |
|
for section in main contrib non-free ; do \ |
| 79 |
|
$(PYTHON) bin/apt-update-file \ |
| 80 |
|
$(SEC_MIRROR)/$$archive/updates/$$section/source/Sources \ |
| 81 |
|
data/packages/$${archive}_security_$${section}_Sources ; \ |
| 82 |
|
for arch in $(ETCH_ARCHS) ; do \ |
| 83 |
|
$(PYTHON) bin/apt-update-file \ |
| 84 |
|
$(SEC_MIRROR)/$$archive/updates/$$section/binary-$$arch/Packages \ |
| 85 |
|
data/packages/$${archive}_security_$${section}_$${arch}_Packages ; \ |
| 86 |
|
done ; \ |
| 87 |
|
done ; \ |
| 88 |
|
done |
| 89 |
|
|
| 90 |
|
VOLATILE_MIRROR = http://volatile.debian.net/debian-volatile/dists |
| 91 |
|
update-volatile: |
| 92 |
|
set -e && for archive in etch lenny ; do \ |
| 93 |
|
for arch in $(LENNY_ARCHS) ; do \ |
| 94 |
|
$(PYTHON) bin/apt-update-file \ |
| 95 |
|
$(VOLATILE_MIRROR)/$${archive}/volatile/main/binary-$$arch/Packages \ |
| 96 |
|
data/packages/$${archive}-volatile__main_$${arch}_Packages ; \ |
| 97 |
|
done ; \ |
| 98 |
|
$(PYTHON) bin/apt-update-file \ |
| 99 |
|
$(VOLATILE_MIRROR)/$${archive}/volatile/main/source/Sources \ |
| 100 |
|
data/packages/$${archive}-volatile__main_Sources ; \ |
| 101 |
|
done |
| 102 |
|
|
| 103 |
|
BACKPORTS_MIRROR = http://www.backports.org/backports.org/dists |
| 104 |
|
update-backports: |
| 105 |
|
set -e && for archive in etch lenny ; do \ |
| 106 |
|
for arch in $(LENNY_ARCHS) ; do \ |
| 107 |
|
$(PYTHON) bin/apt-update-file \ |
| 108 |
|
$(BACKPORTS_MIRROR)/$${archive}-backports/main/binary-$$arch/Packages \ |
| 109 |
|
data/packages/$${archive}-backports__main_$${arch}_Packages ; \ |
| 110 |
|
done ; \ |
| 111 |
|
$(PYTHON) bin/apt-update-file \ |
| 112 |
|
$(BACKPORTS_MIRROR)/$${archive}-backports/main/source/Sources \ |
| 113 |
|
data/packages/$${archive}-backports__main_Sources ; \ |
| 114 |
|
done |