X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=modules%2Fapprox.mk;h=f7541d7d231d3cde159a4882e0101d9a4d4240d8;hb=15eda19471bdf3144d61a6eb42fa009e3e583985;hp=1c2e9a9112c963847c27daf6c5470cf6e9229531;hpb=0bbe0a6f3481469600e18ed7cece050d4a67f6ec;p=blast diff --git a/modules/approx.mk b/modules/approx.mk index 1c2e9a9..f7541d7 100644 --- a/modules/approx.mk +++ b/modules/approx.mk @@ -3,23 +3,31 @@ ${SOURCES} endef export approx_original_sources +ifndef approxhost + approxhost := localhost +endif + +approxrepos := main +approxrepos += $(findstring contrib, ${SOURCES}) +approxrepos += $(findstring non-free, ${SOURCES}) + ifdef approx BOOTSTRAP := ${approx} define SOURCES = - deb ${approx} ${release} main + deb ${approx} ${release} ${approxrepos} endef else ifdef raspi BOOTSTRAP := http://localhost/raspbian define SOURCES := - deb http://localhost/raspbian stretch main non-free firmware rpi - deb http://localhost/rpidebian stretch main - deb http://localhost/raspbian buster main non-free firmware rpi - deb http://localhost/rpidebian buster main + deb http://${approxhost}/raspbian stretch main non-free firmware rpi + deb http://${approxhost}/rpidebian stretch main + deb http://${approxhost}/raspbian buster main non-free firmware rpi + deb http://${approxhost}/rpidebian buster main endef else BOOTSTRAP := http://localhost/debian define SOURCES := - deb http://localhost/debian ${release} main + deb http://${approxhost}/debian ${release} ${approxrepos} endef endif