1 define approx_original_sources :=
4 export approx_original_sources
7 approxhost := localhost
11 approxrepos += $(findstring contrib, ${SOURCES})
12 approxrepos += $(findstring non-free-fimware, ${SOURCES})
13 #approxrepos += $(findstring non-free, ${SOURCES})
16 BOOTSTRAP := ${approx}
18 deb ${approx} ${release} ${approxrepos}
19 deb ${approx} ${release}-backports ${approxrepos}
22 BOOTSTRAP := http://localhost/raspbian
24 deb http://${approxhost}/raspbian stretch main non-free firmware rpi
25 deb http://${approxhost}/rpidebian stretch main
26 deb http://${approxhost}/raspbian buster main non-free firmware rpi
27 deb http://${approxhost}/rpidebian buster main
30 BOOTSTRAP := http://localhost/debian
32 deb http://${approxhost}/debian ${release} ${approxrepos}
36 .PHONY: _approx_restore_sources
37 _config: _approx_restore_sources
38 _approx_restore_sources: ${CFGROOT}
39 printf '%s\n' "$${approx_original_sources}" >"$${CFGROOT}/etc/apt/sources.list"
40 -chroot "$${CFGROOT}" apt-get update