X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=modules%2Fapprox.mk;h=05bda84badab938ea853b98b93fb71e69c260b17;hb=2995417f0750557d367452bfea69e3d7f070a14e;hp=c8ed445096bc2cf8c5397dabd472e258b614692e;hpb=03eac1ec61deb1546f93cfd8ba48635f83a61a94;p=blast diff --git a/modules/approx.mk b/modules/approx.mk index c8ed445..05bda84 100644 --- a/modules/approx.mk +++ b/modules/approx.mk @@ -3,31 +3,32 @@ ${SOURCES} endef export approx_original_sources -ifdef approx - -BOOTSTRAP := ${approx} -define SOURCES = -deb ${approx} stretch main -endef +ifndef approxhost + approxhost := localhost +endif +ifdef approx + BOOTSTRAP := ${approx} + define SOURCES = + deb ${approx} ${release} 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 - + BOOTSTRAP := http://localhost/raspbian + define SOURCES := + deb http://${approxhost}/raspbian stretch main non-free firmware rpi + deb http://${approxhost}/rpidebian stretch main + deb http://${approxhost}/raspbian buster main non-free firmware rpi + deb http://${approxhost}/rpidebian buster main + endef else - -BOOTSTRAP := http://localhost/debian -define SOURCES = -deb http://localhost/debian stretch main -endef - + BOOTSTRAP := http://localhost/debian + define SOURCES := + deb http://${approxhost}/debian ${release} 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" + -chroot "$${CFGROOT}" apt-get update