]> git.plutz.net Git - blast/blob - modules/approx.mk
apt proxy support, small fixes and typos
[blast] / modules / approx.mk
1 define approx_original_sources :=
2 ${SOURCES}
3 endef
4 export approx_original_sources
5
6 ifdef approx
7
8 BOOTSTRAP := ${approx}
9 define SOURCES =
10 deb ${approx} stretch main
11 endef
12
13 else ifdef raspi
14
15 BOOTSTRAP := http://localhost/raspbian
16 define SOURCES =
17 deb http://localhost/raspbian stretch main non-free firmware rpi
18 deb http://localhost/rpidebian stretch main
19 endef
20
21 else
22
23 BOOTSTRAP := http://localhost/debian
24 define SOURCES =
25 deb http://localhost/debian stretch main
26 endef
27
28 endif
29
30 .PHONY: _approx_restore_sources
31 _config: _approx_restore_sources
32 _approx_restore_sources: ${CFGROOT}
33         printf '%s\n' "$${approx_original_sources}" >"$${CFGROOT}/etc/apt/sources.list"