Compare commits

...

3 Commits

Author SHA1 Message Date
Denis 'GNUtoo' Carikli 9a216f1d70
audio.experimental.a-lec.org: use Guix for autogen.sh
The target server (anthea) where the images will now be deployed
doesn't have autoconf, automake and m4 installed.

Because of that we work around by using the Guix versions.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2023-11-20 22:18:43 +01:00
Denis 'GNUtoo' Carikli 15314378aa
preseed: switch to Guix
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2023-11-20 22:11:14 +01:00
Denis 'GNUtoo' Carikli 8447264004
preseed: Add tests
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2023-11-20 22:03:20 +01:00
3 changed files with 19 additions and 24 deletions

View File

@ -8,4 +8,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this file. If not, see <http://www.gnu.org/licenses/>.
guix shell -C \
autoconf automake coreutils grep m4 sed \
-- \
autoreconf -fi $@

View File

@ -13,33 +13,24 @@
# You should have received a copy of the GNU General Public License
# along with this project. If not, see <http://www.gnu.org/licenses/>.
GUIX_VERSION ?= v1.4.0
GUIX_SHELL ?= guix time-machine --commit=$(GUIX_VERSION) -- shell
.PHONY: mtools-signkey
all: preseed.img
all: preseed.img check
pubring.kbx:
gpg --homedir $$PWD \
--list-keys 51A23D9D7C4DF41AA48FA893E99CF5537790B839 || \
gpg --homedir $$PWD \
--recv-keys 51A23D9D7C4DF41AA48FA893E99CF5537790B839
PRESEED_IMG_DEPS = \
Makefile \
../trisquel-guix-installer.experimental.a-lec.org/config/debconf/FAIBASE
mtools-4.0.43.tar.bz2:
wget http://ftp.gnu.org/gnu/mtools/$@ -O $@
mtools-4.0.43.tar.bz2.sig:
wget http://ftp.gnu.org/gnu/mtools/$@ -O $@
mtools-4.0.43: mtools-4.0.43.tar.bz2 mtools-4.0.43.tar.bz2.sig
gpg --homedir $$PWD --verify mtools-4.0.43.tar.bz2.sig
tar xf mtools-4.0.43.tar.bz2
cd mtools-4.0.43 && \
./configure && \
make
preseed.img: mtools-4.0.43
preseed.img: $(PRESEED_IMG_DEPS)
dd if=/dev/zero of=$@ count=2048
mtools-4.0.43/mformat -i $@ ::
mtools-4.0.43/mcopy -i $@ \
$(GUIX_SHELL) mtools -- mformat -i $@ ::
$(GUIX_SHELL) mtools -- mcopy -i $@ \
../trisquel-guix-installer.experimental.a-lec.org/config/debconf/FAIBASE \
::
mtools-4.0.43/mdir -i $@ ::
$(GUIX_SHELL) mtools -- mdir -i $@ ::
check: preseed.img preseed.img.sha512
sha512sum -c preseed.img.sha512

View File

@ -0,0 +1 @@
4ccceabb06d01526915c15a4f5b5dab58d75f3dc70ad4837696e29d9dc1956f4a5652f2a0574602fc12fa42b34e11df69fa0cc3da87e6eff8d7a18d50a16ae07 preseed.img