X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=modules%2Fapprox.mk;fp=modules%2Fapprox.mk;h=c8ed445096bc2cf8c5397dabd472e258b614692e;hb=03eac1ec61deb1546f93cfd8ba48635f83a61a94;hp=0000000000000000000000000000000000000000;hpb=036c84e85aff0768e1606d22076492b934d161f4;p=blast diff --git a/modules/approx.mk b/modules/approx.mk new file mode 100644 index 0000000..c8ed445 --- /dev/null +++ b/modules/approx.mk @@ -0,0 +1,33 @@ +define approx_original_sources := +${SOURCES} +endef +export approx_original_sources + +ifdef approx + +BOOTSTRAP := ${approx} +define SOURCES = +deb ${approx} stretch main +endef + +else ifdef raspi + +BOOTSTRAP := http://localhost/raspbian +define SOURCES = +deb http://localhost/raspbian stretch main non-free firmware rpi +deb http://localhost/rpidebian stretch main +endef + +else + +BOOTSTRAP := http://localhost/debian +define SOURCES = +deb http://localhost/debian stretch main +endef + +endif + +.PHONY: _approx_restore_sources +_config: _approx_restore_sources +_approx_restore_sources: ${CFGROOT} + printf '%s\n' "$${approx_original_sources}" >"$${CFGROOT}/etc/apt/sources.list"