summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lundquist <lists@zelow.no>2007-12-27 12:00:12 +0000
committerThomas Lundquist <lists@zelow.no>2007-12-27 12:00:12 +0000
commitdc6a57bc6909fbc175c86c044898f1c7694965fd (patch)
treec13c3f193d9b2b069fb06c2fc0cc2a14106f3091
parentdad4e51f6974b1129f59127f1bf8bdac915c873f (diff)
Added BR2_DEBIAN_MIRROR
-rw-r--r--package/acpid/acpid.mk2
-rw-r--r--package/argus/argus.mk2
-rw-r--r--package/at/at.mk2
-rw-r--r--package/cvs/cvs.mk2
-rw-r--r--package/dash/dash.mk2
-rw-r--r--package/fakeroot/fakeroot.mk2
-rw-r--r--package/file/file.mk2
-rw-r--r--package/flex/flex.mk2
-rw-r--r--package/grep/grep.mk2
-rw-r--r--package/hwdata/hwdata.mk2
-rw-r--r--package/kexec/kexec.mk2
-rw-r--r--package/l2tp/l2tp.mk2
-rw-r--r--package/libfloat/libfloat.mk2
-rw-r--r--package/liblockfile/liblockfile.mk2
-rw-r--r--package/libusb/libusb.mk2
-rw-r--r--package/lighttpd/lighttpd.mk2
-rw-r--r--package/lm-sensors/lm-sensors.mk2
-rw-r--r--package/lockfile-progs/lockfile-progs.mk2
-rw-r--r--package/ltrace/ltrace.mk2
-rw-r--r--package/lzo/lzo.mk2
-rw-r--r--package/mdadm/mdadm.mk2
-rw-r--r--package/mrouted/mrouted.mk2
-rw-r--r--package/mtd/20050122/mtd.mk2
-rw-r--r--package/mtd/20061007/mtd.mk2
-rw-r--r--package/mutt/mutt.mk2
-rw-r--r--package/netsnmp/netsnmp.mk2
-rw-r--r--package/patch/patch.mk2
-rw-r--r--package/pptp-linux/pptp-linux.mk2
-rw-r--r--package/rp-pppoe/rp-pppoe.mk2
-rw-r--r--package/setserial/setserial.mk2
-rw-r--r--package/tiff/tiff.mk2
-rw-r--r--target/device/Config.in.mirrors10
-rw-r--r--target/x86/grub/grub.mk4
-rw-r--r--target/x86/grub2/grub2.mk4
34 files changed, 45 insertions, 35 deletions
diff --git a/package/acpid/acpid.mk b/package/acpid/acpid.mk
index c153538a3..5aa99dfe1 100644
--- a/package/acpid/acpid.mk
+++ b/package/acpid/acpid.mk
@@ -6,7 +6,7 @@
ACPID_VERSION:=1.0.4
ACPID_DIR=$(BUILD_DIR)/acpid-$(ACPID_VERSION)
ACPID_SOURCE=acpid_$(ACPID_VERSION)-1.tar.gz
-ACPID_SITE=http://ftp.debian.org/debian/pool/main/a/acpid
+ACPID_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/acpid
$(DL_DIR)/$(ACPID_SOURCE):
$(WGET) -P $(DL_DIR) $(ACPID_SITE)/$(ACPID_SOURCE)
diff --git a/package/argus/argus.mk b/package/argus/argus.mk
index 9d787b92a..f3496fe3a 100644
--- a/package/argus/argus.mk
+++ b/package/argus/argus.mk
@@ -6,7 +6,7 @@
ARGUS_VERSION:=3.0.0.rc.34
ARGUS_SOURCE:=argus_$(ARGUS_VERSION).orig.tar.gz
ARGUS_PATCH:=argus_$(ARGUS_VERSION)-1.diff.gz
-ARGUS_SITE:=ftp://ftp.debian.org/debian/pool/main/a/argus/
+ARGUS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/argus/
ARGUS_DIR:=$(BUILD_DIR)/argus-$(ARGUS_VERSION)
ARGUS_CAT:=$(ZCAT)
ARGUS_BINARY:=bin/argus
diff --git a/package/at/at.mk b/package/at/at.mk
index c60eb555e..6f7f33083 100644
--- a/package/at/at.mk
+++ b/package/at/at.mk
@@ -5,7 +5,7 @@
#############################################################
AT_VERSION:=3.1.10
AT_SOURCE:=at_$(AT_VERSION).tar.gz
-AT_SITE:=http://ftp.debian.org/debian/pool/main/a/at
+AT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/at
AT_DIR:=$(BUILD_DIR)/at-$(AT_VERSION)
AT_CAT:=$(ZCAT)
AT_TARGET_SCRIPT:=etc/init.d/S99at
diff --git a/package/cvs/cvs.mk b/package/cvs/cvs.mk
index 5f28f3ec5..f64e09a38 100644
--- a/package/cvs/cvs.mk
+++ b/package/cvs/cvs.mk
@@ -6,7 +6,7 @@
CVS_VERSION:=1.12.13
CVS_SOURCE:=cvs_$(CVS_VERSION).orig.tar.gz
CVS_PATCH:=cvs_$(CVS_VERSION)-8.diff.gz
-CVS_SITE:=http://ftp.debian.org/debian/pool/main/c/cvs/
+CVS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/c/cvs/
CVS_DIR:=$(BUILD_DIR)/cvs-$(CVS_VERSION)
CVS_CAT:=$(ZCAT)
CVS_BINARY:=src/cvs
diff --git a/package/dash/dash.mk b/package/dash/dash.mk
index 489252796..1024fc182 100644
--- a/package/dash/dash.mk
+++ b/package/dash/dash.mk
@@ -5,7 +5,7 @@
#############################################################
DASH_VERSION:=0.5.3
DASH_SOURCE:=dash_$(DASH_VERSION).orig.tar.gz
-DASH_SITE:=http://ftp.debian.org/debian/pool/main/d/dash
+DASH_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/d/dash
DASH_CAT:=$(ZCAT)
DASH_DIR:=$(BUILD_DIR)/dash-$(DASH_VERSION)
DASH_PATCH1:=dash_$(DASH_VERSION)-7.diff.gz
diff --git a/package/fakeroot/fakeroot.mk b/package/fakeroot/fakeroot.mk
index e1a636249..385ce7691 100644
--- a/package/fakeroot/fakeroot.mk
+++ b/package/fakeroot/fakeroot.mk
@@ -5,7 +5,7 @@
#############################################################
FAKEROOT_VERSION:=1.8.10
FAKEROOT_SOURCE:=fakeroot_$(FAKEROOT_VERSION).tar.gz
-FAKEROOT_SITE:=http://ftp.debian.org/debian/pool/main/f/fakeroot
+FAKEROOT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/f/fakeroot
FAKEROOT_CAT:=$(ZCAT)
FAKEROOT_SOURCE_DIR:=$(BUILD_DIR)/fakeroot-$(FAKEROOT_VERSION)
FAKEROOT_DIR1:=$(TOOL_BUILD_DIR)/fakeroot-$(FAKEROOT_VERSION)-host
diff --git a/package/file/file.mk b/package/file/file.mk
index aee7f57c6..beb0f7dab 100644
--- a/package/file/file.mk
+++ b/package/file/file.mk
@@ -5,7 +5,7 @@
#############################################################
FILE_VERSION:=4.21
FILE_SOURCE:=file_$(FILE_VERSION).orig.tar.gz
-FILE_SITE:=http://ftp.debian.org/debian/pool/main/f/file
+FILE_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/f/file
FILE_SOURCE_DIR:=$(BUILD_DIR)/file-$(FILE_VERSION)
FILE_DIR1:=$(TOOL_BUILD_DIR)/file-$(FILE_VERSION)-host
FILE_DIR2:=$(BUILD_DIR)/file-$(FILE_VERSION)-target
diff --git a/package/flex/flex.mk b/package/flex/flex.mk
index e99113414..5b968e38b 100644
--- a/package/flex/flex.mk
+++ b/package/flex/flex.mk
@@ -7,7 +7,7 @@ FLEX_VERSION:=2.5.33
FLEX_PATCH_VERSION:=11
FLEX_SOURCE:=flex_$(FLEX_VERSION).orig.tar.gz
FLEX_PATCH:=flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz
-FLEX_SITE:=http://ftp.debian.org/debian/pool/main/f/flex
+FLEX_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex
FLEX_DIR:=$(BUILD_DIR)/flex-$(FLEX_VERSION)
FLEX_CAT:=$(ZCAT)
FLEX_BINARY:=flex
diff --git a/package/grep/grep.mk b/package/grep/grep.mk
index 66eb7021f..1369715f0 100644
--- a/package/grep/grep.mk
+++ b/package/grep/grep.mk
@@ -5,7 +5,7 @@
#############################################################
GNUGREP_VERSION:=2.5.1
GNUGREP_SOURCE:=grep_$(GNUGREP_VERSION).ds1.orig.tar.gz
-GNUGREP_SITE:=http://ftp.debian.org/debian/pool/main/g/grep/
+GNUGREP_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/g/grep/
GNUGREP_DIR:=$(BUILD_DIR)/grep-$(GNUGREP_VERSION)
GNUGREP_CAT:=$(ZCAT)
GNUGREP_BINARY:=src/grep
diff --git a/package/hwdata/hwdata.mk b/package/hwdata/hwdata.mk
index 133b37a36..ac43809f0 100644
--- a/package/hwdata/hwdata.mk
+++ b/package/hwdata/hwdata.mk
@@ -6,7 +6,7 @@
HWDATA_VERSION:=0.191
HWDATA_SOURCE:=hwdata_$(HWDATA_VERSION).orig.tar.gz
HWDATA_PATCH:=hwdata_$(HWDATA_VERSION)-1.diff.gz
-HWDATA_SITE:=http://ftp.debian.org/debian/pool/main/h/hwdata/
+HWDATA_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/h/hwdata/
HWDATA_CAT:=$(ZCAT)
HWDATA_DIR:=$(BUILD_DIR)/hwdata-$(HWDATA_VERSION)
HWDATA_BINARY:=pci.ids
diff --git a/package/kexec/kexec.mk b/package/kexec/kexec.mk
index d32eef089..d8e6c55d1 100644
--- a/package/kexec/kexec.mk
+++ b/package/kexec/kexec.mk
@@ -6,7 +6,7 @@
KEXEC_VERSION:=1.101
KEXEC_SOURCE:=kexec-tools_$(KEXEC_VERSION)-kdump10.orig.tar.gz
KEXEC_PATCH:=kexec-tools_$(KEXEC_VERSION)-kdump10-2.diff.gz
-KEXEC_SITE:=ftp://ftp.debian.org/debian/pool/main/k/kexec-tools/
+KEXEC_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/k/kexec-tools/
KEXEC_DIR:=$(BUILD_DIR)/kexec-tools-$(KEXEC_VERSION)
KEXEC_CAT:=$(ZCAT)
KEXEC_BINARY:=kexec
diff --git a/package/l2tp/l2tp.mk b/package/l2tp/l2tp.mk
index ad068d624..a1f61d532 100644
--- a/package/l2tp/l2tp.mk
+++ b/package/l2tp/l2tp.mk
@@ -6,7 +6,7 @@
L2TP_VERSION:=0.70-pre20031121
L2TP_SOURCE:=l2tpd_$(L2TP_VERSION).orig.tar.gz
L2TP_PATCH:=l2tpd_$(L2TP_VERSION)-2.2.diff.gz
-L2TP_SITE:=ftp://ftp.debian.org/debian/pool/main/l/l2tpd/
+L2TP_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/l2tpd/
L2TP_DIR:=$(BUILD_DIR)/l2tpd-$(L2TP_VERSION)
L2TP_CAT:=$(ZCAT)
L2TP_BINARY:=l2tpd
diff --git a/package/libfloat/libfloat.mk b/package/libfloat/libfloat.mk
index 7fde1b4f5..75ca49a03 100644
--- a/package/libfloat/libfloat.mk
+++ b/package/libfloat/libfloat.mk
@@ -5,7 +5,7 @@
#############################################################
LIBFLOAT_SOURCE:=libfloat_990616.orig.tar.gz
LIBFLOAT_PATCH:=libfloat_990616-3.diff.gz
-LIBFLOAT_SITE:=http://ftp.debian.org/debian/pool/main/libf/libfloat
+LIBFLOAT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libf/libfloat
LIBFLOAT_CAT:=$(ZCAT)
LIBFLOAT_DIR:=$(BUILD_DIR)/libfloat
diff --git a/package/liblockfile/liblockfile.mk b/package/liblockfile/liblockfile.mk
index 27a66cf51..07f624543 100644
--- a/package/liblockfile/liblockfile.mk
+++ b/package/liblockfile/liblockfile.mk
@@ -5,7 +5,7 @@
#############################################################
LIBLOCKFILE_VERSION=1.06.1
LIBLOCKFILE_SOURCE:=liblockfile_$(LIBLOCKFILE_VERSION).tar.gz
-LIBLOCKFILE_SITE:=http://ftp.debian.org/debian/pool/main/libl/liblockfile/
+LIBLOCKFILE_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libl/liblockfile/
LIBLOCKFILE_CAT:=$(ZCAT)
LIBLOCKFILE_DIR:=$(BUILD_DIR)/liblockfile-$(LIBLOCKFILE_VERSION)
LIBLOCKFILE_BINARY:=liblockfile.so.1.0
diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index b4a2f4b7a..8eb3b2886 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -7,7 +7,7 @@ LIBUSB_VERSION:=0.1.12
LIBUSB_PATCH_FILE:=libusb_$(LIBUSB_VERSION)-7.diff.gz
LIBUSB_SOURCE:=libusb_$(LIBUSB_VERSION).orig.tar.gz
#LIBUSB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libusb/
-LIBUSB_SITE:=http://ftp.debian.org/debian/pool/main/libu/libusb
+LIBUSB_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libu/libusb
LIBUSB_DIR:=$(BUILD_DIR)/libusb-$(LIBUSB_VERSION)
LIBUSB_CAT:=$(ZCAT)
LIBUSB_BINARY:=usr/lib/libusb.so
diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk
index b74afa7d0..1666273f5 100644
--- a/package/lighttpd/lighttpd.mk
+++ b/package/lighttpd/lighttpd.mk
@@ -6,7 +6,7 @@
LIGHTTPD_VERSION:=1.4.18
LIGHTTPD_SOURCE:=lighttpd_$(LIGHTTPD_VERSION).orig.tar.gz
LIGHTTPD_PATCH:=lighttpd_$(LIGHTTPD_VERSION)-1.diff.gz
-LIGHTTPD_SITE:=http://ftp.debian.org/debian/pool/main/l/lighttpd
+LIGHTTPD_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lighttpd
LIGHTTPD_DIR:=$(BUILD_DIR)/lighttpd-$(LIGHTTPD_VERSION)
LIGHTTPD_CAT:=$(ZCAT)
LIGHTTPD_BINARY:=src/lighttpd
diff --git a/package/lm-sensors/lm-sensors.mk b/package/lm-sensors/lm-sensors.mk
index fce781e0f..60c5307ca 100644
--- a/package/lm-sensors/lm-sensors.mk
+++ b/package/lm-sensors/lm-sensors.mk
@@ -6,7 +6,7 @@
LM_SENSORS_VERSION:=2.10.4
LM_SENSORS_SOURCE:=lm-sensors_$(LM_SENSORS_VERSION).orig.tar.gz
LM_SENSORS_PATCH:=lm-sensors_$(LM_SENSORS_VERSION)-3.diff.gz
-LM_SENSORS_SITE:=http://ftp.debian.org/debian/pool/main/l/lm-sensors/
+LM_SENSORS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lm-sensors/
LM_SENSORS_DIR:=$(BUILD_DIR)/lm_sensors-$(LM_SENSORS_VERSION)
LM_SENSORS_CAT:=$(ZCAT)
LM_SENSORS_BINARY:=prog/sensors/sensors
diff --git a/package/lockfile-progs/lockfile-progs.mk b/package/lockfile-progs/lockfile-progs.mk
index 3961b480b..d15354fb6 100644
--- a/package/lockfile-progs/lockfile-progs.mk
+++ b/package/lockfile-progs/lockfile-progs.mk
@@ -5,7 +5,7 @@
#############################################################
LOCKFILE_PROGS_VERSION=0.1.11
LOCKFILE_PROGS_SOURCE:=lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
-LOCKFILE_PROGS_SITE:=http://ftp.debian.org/debian/pool/main/l/lockfile-progs/
+LOCKFILE_PROGS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
LOCKFILE_PROGS_CAT:=$(ZCAT)
LOCKFILE_PROGS_DIR:=$(BUILD_DIR)/sid
LOCKFILE_PROGS_BINARY:=usr/bin/lockfile-create
diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk
index c16076fec..5d4d3a6ea 100644
--- a/package/ltrace/ltrace.mk
+++ b/package/ltrace/ltrace.mk
@@ -6,7 +6,7 @@
LTRACE_VERSION=0.5
LTRACE_SOURCE=ltrace_$(LTRACE_VERSION).orig.tar.gz
LTRACE_PATCH=ltrace_$(LTRACE_VERSION)-3.diff.gz
-LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
+LTRACE_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/ltrace
LTRACE_DIR=$(BUILD_DIR)/ltrace-$(LTRACE_VERSION)
LTRACE_BINARY=ltrace
LTRACE_TARGET_BINARY=usr/bin/ltrace
diff --git a/package/lzo/lzo.mk b/package/lzo/lzo.mk
index 5531edff2..ed47900c3 100644
--- a/package/lzo/lzo.mk
+++ b/package/lzo/lzo.mk
@@ -8,7 +8,7 @@
#############################################################
LZO_VERSION:=1.08
LZO_SOURCE:=lzo_$(LZO_VERSION).orig.tar.gz
-LZO_SITE:=http://ftp.debian.org/debian/pool/main/l/lzo
+LZO_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lzo
#LZO_SOURCE:=lzo-$(LZO_VERSION).tar.bz2
#LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
LZO_DIR:=$(BUILD_DIR)/lzo-$(LZO_VERSION)
diff --git a/package/mdadm/mdadm.mk b/package/mdadm/mdadm.mk
index dab4a6b3e..9a261ea06 100644
--- a/package/mdadm/mdadm.mk
+++ b/package/mdadm/mdadm.mk
@@ -7,7 +7,7 @@ MDADM_VERSION:=2.6.2
MDADM_SOURCE:=mdadm_$(MDADM_VERSION).orig.tar.gz
MDADM_PATCH:=mdadm_$(MDADM_VERSION)-2.diff.gz
MDADM_CAT:=$(ZCAT)
-MDADM_SITE:=http://ftp.debian.org/debian/pool/main/m/mdadm
+MDADM_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mdadm
MDADM_DIR:=$(BUILD_DIR)/mdadm-$(MDADM_VERSION)
MDADM_BINARY:=mdadm
MDADM_TARGET_BINARY:=sbin/mdadm
diff --git a/package/mrouted/mrouted.mk b/package/mrouted/mrouted.mk
index aad50ee0b..d443a3abf 100644
--- a/package/mrouted/mrouted.mk
+++ b/package/mrouted/mrouted.mk
@@ -6,7 +6,7 @@
#############################################################
MROUTED_VERSION:=3.9-beta3.orig
MROUTED_SOURCE:=mrouted_$(MROUTED_VERSION).tar.gz
-MROUTED_SITE:=http://ftp.debian.org/debian/pool/non-free/m/mrouted
+MROUTED_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/non-free/m/mrouted
MROUTED_DIR:=$(BUILD_DIR)/mrouted-$(MROUTED_VERSION)
MROUTED_CAT:=$(ZCAT)
MROUTED_PATCH:=mrouted_3.9-beta3-1.1.diff.gz
diff --git a/package/mtd/20050122/mtd.mk b/package/mtd/20050122/mtd.mk
index 636ad6dbb..72832fa59 100644
--- a/package/mtd/20050122/mtd.mk
+++ b/package/mtd/20050122/mtd.mk
@@ -15,7 +15,7 @@ MTD_DIR:=$(BUILD_DIR)/mtd_snapshot
else
MTD_SOURCE:=$(strip $(subst ",, $(BR2_PACKAGE_MTD_ORIG_STRING)))
#"))
-MTD_SITE:=http://ftp.debian.org/debian/pool/main/m/mtd
+MTD_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mtd
MTD_HOST_DIR := $(TOOL_BUILD_DIR)/mtd_orig
MTD_DIR:=$(BUILD_DIR)/mtd_orig
MTD_CAT:=$(ZCAT)
diff --git a/package/mtd/20061007/mtd.mk b/package/mtd/20061007/mtd.mk
index db136ec03..bda366dde 100644
--- a/package/mtd/20061007/mtd.mk
+++ b/package/mtd/20061007/mtd.mk
@@ -4,7 +4,7 @@
#
#############################################################
MTD_SOURCE=mtd_20061007.orig.tar.gz
-MTD_SITE=http://ftp.debian.org/debian/pool/main/m/mtd
+MTD_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mtd
MTD_HOST_DIR := $(TOOL_BUILD_DIR)/mtd_orig
MTD_DIR:=$(BUILD_DIR)/mtd_orig
MTD_CAT:=$(ZCAT)
diff --git a/package/mutt/mutt.mk b/package/mutt/mutt.mk
index 971df9334..10f82fd09 100644
--- a/package/mutt/mutt.mk
+++ b/package/mutt/mutt.mk
@@ -6,7 +6,7 @@
MUTT_VERSION:=1.5.16
MUTT_SOURCE:=mutt_$(MUTT_VERSION).orig.tar.gz
MUTT_PATCH:=mutt_$(MUTT_VERSION)-3.diff.gz
-MUTT_SITE:=ftp://ftp.debian.org/debian/pool/main/m/mutt/
+MUTT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mutt/
MUTT_DIR:=$(BUILD_DIR)/mutt-$(MUTT_VERSION)
MUTT_CAT:=$(ZCAT)
MUTT_BINARY:=mutt
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 054a1cc95..1ef53eac6 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -9,7 +9,7 @@ NETSNMP_URL:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net
NETSNMP_DIR:=$(BUILD_DIR)/net-snmp-$(NETSNMP_VERSION)
NETSNMP_SOURCE:=net-snmp-$(NETSNMP_VERSION).tar.gz
NETSNMP_PATCH1:=net-snmp_$(NETSNMP_VERSION)-$(NETSNMP_PATCH_VERSION).diff.gz
-NETSNMP_PATCH1_URL:=http://ftp.debian.org/debian/pool/main/n/net-snmp/
+NETSNMP_PATCH1_URL:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/n/net-snmp/
$(DL_DIR)/$(NETSNMP_SOURCE):
$(WGET) -P $(DL_DIR) $(NETSNMP_URL)/$(NETSNMP_SOURCE)
diff --git a/package/patch/patch.mk b/package/patch/patch.mk
index 7cb2ac34c..8d70e069c 100644
--- a/package/patch/patch.mk
+++ b/package/patch/patch.mk
@@ -5,7 +5,7 @@
#############################################################
GNUPATCH_VERSION:=2.5.9
GNUPATCH_SOURCE:=patch_$(GNUPATCH_VERSION).orig.tar.gz
-GNUPATCH_SITE:=http://ftp.debian.org/debian/pool/main/p/patch
+GNUPATCH_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/p/patch
GNUPATCH_CAT:=$(ZCAT)
GNUPATCH_DIR:=$(BUILD_DIR)/patch-$(GNUPATCH_VERSION)
GNUPATCH_BINARY:=patch
diff --git a/package/pptp-linux/pptp-linux.mk b/package/pptp-linux/pptp-linux.mk
index 9cdd093c4..44bf57366 100644
--- a/package/pptp-linux/pptp-linux.mk
+++ b/package/pptp-linux/pptp-linux.mk
@@ -6,7 +6,7 @@
PPTP_LINUX_VERSION:=1.7.0
PPTP_LINUX_SOURCE:=pptp-linux_$(PPTP_LINUX_VERSION).orig.tar.gz
#PPTP_LINUX_PATCH:=pptp-linux_$(PPTP_LINUX_VERSION)-2.diff.gz
-PPTP_LINUX_SITE:=http://ftp.debian.org/debian/pool/main/p/pptp-linux
+PPTP_LINUX_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/p/pptp-linux
PPTP_LINUX_DIR:=$(BUILD_DIR)/pptp-linux-$(PPTP_LINUX_VERSION).orig
PPTP_LINUX_CAT:=$(ZCAT)
PPTP_LINUX_BINARY:=pptp
diff --git a/package/rp-pppoe/rp-pppoe.mk b/package/rp-pppoe/rp-pppoe.mk
index b798c71b4..a0928dacf 100644
--- a/package/rp-pppoe/rp-pppoe.mk
+++ b/package/rp-pppoe/rp-pppoe.mk
@@ -6,7 +6,7 @@
RP_PPPOE_VERSION:=3.8
RP_PPPOE_SOURCE:=rp-pppoe_$(RP_PPPOE_VERSION).orig.tar.gz
RP_PPPOE_PATCH:=rp-pppoe_$(RP_PPPOE_VERSION)-3.diff.gz
-RP_PPPOE_SITE:=ftp://ftp.debian.org/debian/pool/main/r/rp-pppoe
+RP_PPPOE_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/r/rp-pppoe
RP_PPPOE_TOPDIR:=$(BUILD_DIR)/rp-pppoe-$(RP_PPPOE_VERSION)
RP_PPPOE_DIR:=$(BUILD_DIR)/rp-pppoe-$(RP_PPPOE_VERSION)/src
RP_PPPOE_CAT:=$(ZCAT)
diff --git a/package/setserial/setserial.mk b/package/setserial/setserial.mk
index 9cec03aa0..14220bd64 100644
--- a/package/setserial/setserial.mk
+++ b/package/setserial/setserial.mk
@@ -7,7 +7,7 @@ SETSERIAL_VERSION:=2.17
SETSERIAL_PATCH_VERSION:=-44
#SETSERIAL_PATCH_FILE:=
SETSERIAL_SOURCE:=setserial_$(SETSERIAL_VERSION)$(SETSERIAL_PATCH_VERSION).tar.gz
-SETSERIAL_SITE:=http://ftp.debian.org/debian/pool/main/s/setserial/
+SETSERIAL_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/s/setserial/
SETSERIAL_DIR:=$(BUILD_DIR)/setserial-$(SETSERIAL_VERSION)
SETSERIAL_BINARY:=setserial
SETSERIAL_TARGET_BINARY:=usr/bin/setserial
diff --git a/package/tiff/tiff.mk b/package/tiff/tiff.mk
index 2c3121083..813e9141e 100644
--- a/package/tiff/tiff.mk
+++ b/package/tiff/tiff.mk
@@ -6,7 +6,7 @@
TIFF_VERSION:=3.8.2
TIFF_SOURCE:=tiff_$(TIFF_VERSION).orig.tar.gz
TIFF_SOURCE2:=tiff-$(TIFF_VERSION).tar.gz
-TIFF_SITE:=http://ftp.debian.org/pool/main/t/tiff/
+TIFF_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/t/tiff/
TIFF_DIR:=$(BUILD_DIR)/tiff-$(TIFF_VERSION)
TIFF_CAT:=$(ZCAT)
diff --git a/target/device/Config.in.mirrors b/target/device/Config.in.mirrors
index 92ed872fa..43318dcff 100644
--- a/target/device/Config.in.mirrors
+++ b/target/device/Config.in.mirrors
@@ -38,6 +38,16 @@ config BR2_GNU_MIRROR
http://ftp.gnu.org/pub/gnu
http://mirror.aarnet.edu.au/pub/gnu
+config BR2_DEBIAN_MIRROR
+ string "Debian Software mirror"
+ default "http://ftp.debian.org"
+ help
+ Debian has multiple software mirrors scattered around the world.
+ The following allows you to select your preferred mirror.
+
+ Usually, just add your country code like XX here:
+ http://ftp.XX.debian.org
+
source "target/device/Atmel/Config.in.mirrors"
endmenu
diff --git a/target/x86/grub/grub.mk b/target/x86/grub/grub.mk
index 85606b721..6984b1af2 100644
--- a/target/x86/grub/grub.mk
+++ b/target/x86/grub/grub.mk
@@ -22,8 +22,8 @@ ifeq ($(GRUB_SUPPORTED_ARCH),y)
#############################################################
GRUB_SOURCE:=grub_0.97.orig.tar.gz
GRUB_PATCH:=grub_0.97-28.diff.gz
-GRUB_SITE=http://ftp.debian.org/debian/pool/main/g/grub
-GRUB_PATCH_SITE:=http://ftp.debian.org/debian/pool/main/g/grub
+GRUB_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/g/grub
+GRUB_PATCH_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/g/grub
GRUB_CAT:=$(ZCAT)
GRUB_DIR:=$(BUILD_DIR)/grub-0.97
GRUB_BINARY:=grub/grub
diff --git a/target/x86/grub2/grub2.mk b/target/x86/grub2/grub2.mk
index 07d38af68..fcbbc2cc6 100644
--- a/target/x86/grub2/grub2.mk
+++ b/target/x86/grub2/grub2.mk
@@ -22,8 +22,8 @@ ifeq ($(GRUB2_SUPPORTED_ARCH),y)
#############################################################
GRUB2_SOURCE:=grub2_1.95.orig.tar.gz
GRUB2_PATCH:=grub2_1.95-5.diff.gz
-GRUB2_SITE=http://ftp.debian.org/debian/pool/main/g/grub2
-GRUB2_PATCH_SITE:=http://ftp.debian.org/debian/pool/main/g/grub2
+GRUB2_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/g/grub2
+GRUB2_PATCH_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/g/grub2
GRUB2_CAT:=$(ZCAT)
GRUB2_DIR:=$(BUILD_DIR)/grub-1.95
GRUB2_BINARY:=grub2/grub2