]> git.plutz.net Git - blast/blob - modules/approx.mk
009e445908aad7ecdedc522294adf49d6ea97ede
[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} stretch main
10   deb ${approx} buster main
11   deb ${approx} ${release} main
12   endef
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   deb http://localhost/raspbian  buster main non-free firmware rpi
19   deb http://localhost/rpidebian buster main
20   endef
21 else
22   BOOTSTRAP := http://localhost/debian
23   define SOURCES :=
24   deb http://localhost/debian stretch main
25   deb http://localhost/debian buster main
26   deb http://localhost/debian ${release} main
27   endef
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"