1 define approx_original_sources :=
4 export approx_original_sources
7 approxhost := localhost
11 approxrepos += $(findstring contrib, ${SOURCES})
12 approxrepos += $(findstring non-free, ${SOURCES})
15 BOOTSTRAP := ${approx}
17 deb ${approx} ${release} ${approxrepos}
20 BOOTSTRAP := http://localhost/raspbian
22 deb http://${approxhost}/raspbian stretch main non-free firmware rpi
23 deb http://${approxhost}/rpidebian stretch main
24 deb http://${approxhost}/raspbian buster main non-free firmware rpi
25 deb http://${approxhost}/rpidebian buster main
28 BOOTSTRAP := http://localhost/debian
30 deb http://${approxhost}/debian ${release} ${approxrepos}
34 .PHONY: _approx_restore_sources
35 _config: _approx_restore_sources
36 _approx_restore_sources: ${CFGROOT}
37 printf '%s\n' "$${approx_original_sources}" >"$${CFGROOT}/etc/apt/sources.list"
38 -chroot "$${CFGROOT}" apt-get update