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