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
+ BOOTSTRAP := http://${approxhost}/raspbian
define SOURCES :=
deb http://${approxhost}/raspbian stretch main non-free firmware rpi
deb http://${approxhost}/rpidebian stretch main
deb http://${approxhost}/rpidebian buster main
endef
else
- BOOTSTRAP := http://localhost/debian
+ BOOTSTRAP := http://${approxhost}/debian
define SOURCES :=
- deb http://${approxhost}/debian ${release} main
+ deb http://${approxhost}/debian ${release} ${approxrepos}
endef
endif