diff --git a/preseed/Makefile b/preseed/Makefile new file mode 100644 index 0000000..113831d --- /dev/null +++ b/preseed/Makefile @@ -0,0 +1,45 @@ +# Copyright (C) 2023 Denis 'GNUtoo' Carikli +# +# This project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This project is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this project. If not, see . + +.PHONY: mtools-signkey + +all: preseed.img + +pubring.kbx: + gpg --homedir $$PWD \ + --list-keys 51A23D9D7C4DF41AA48FA893E99CF5537790B839 || \ + gpg --homedir $$PWD \ + --recv-keys 51A23D9D7C4DF41AA48FA893E99CF5537790B839 + +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 + dd if=/dev/zero of=$@ count=2048 + mtools-4.0.43/mformat -i $@ :: + mtools-4.0.43/mcopy -i $@ \ + ../trisquel-guix-installer.experimental.a-lec.org/config/debconf/FAIBASE \ + :: + mtools-4.0.43/mdir -i $@ ::