]> git.plutz.net Git - blast/blob - modules/approx.mk
ca3f34ad01820ad648a7acb41f0ce95c77422aa3
[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   BOOTSTRAP := http://localhost/raspbian
15   define SOURCES :=
16   deb http://localhost/raspbian stretch main non-free firmware rpi
17   deb http://localhost/rpidebian stretch main
18   endef
19 else
20   BOOTSTRAP := http://localhost/debian
21   define SOURCES :=
22   deb http://localhost/debian stretch main
23   endef
24 endif
25
26 .PHONY: _approx_restore_sources
27 _config: _approx_restore_sources
28 _approx_restore_sources: ${CFGROOT}
29         printf '%s\n' "$${approx_original_sources}" >"$${CFGROOT}/etc/apt/sources.list"