]> git.plutz.net Git - blast/blob - modules/approx.mk
cleaner release settings
[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  stretch main non-free firmware rpi
15   deb http://localhost/rpidebian stretch main
16   deb http://localhost/raspbian  buster main non-free firmware rpi
17   deb http://localhost/rpidebian buster main
18   endef
19 else
20   BOOTSTRAP := http://localhost/debian
21   define SOURCES :=
22   deb http://localhost/debian ${release} 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"