]> git.plutz.net Git - blast/blob - modules/approx.mk
default packages
[blast] / modules / approx.mk
1 define approx_original_sources :=
2 ${SOURCES}
3 endef
4 export approx_original_sources
5
6 ifndef approxhost
7   approxhost := localhost
8 endif
9
10 ifdef approx
11   BOOTSTRAP := ${approx}
12   define SOURCES =
13   deb ${approx} ${release} main
14   endef
15 else ifdef raspi
16   BOOTSTRAP := http://localhost/raspbian
17   define SOURCES :=
18   deb http://${approxhost}/raspbian  stretch main non-free firmware rpi
19   deb http://${approxhost}/rpidebian stretch main
20   deb http://${approxhost}/raspbian  buster main non-free firmware rpi
21   deb http://${approxhost}/rpidebian buster main
22   endef
23 else
24   BOOTSTRAP := http://localhost/debian
25   define SOURCES :=
26   deb http://${approxhost}/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"
34         -chroot "$${CFGROOT}" apt-get update