experimental-vms/gnutoo-trisquel-installer/Makefile

42 lines
1.3 KiB
Makefile

# Copyright (C) 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
#
# 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 <http://www.gnu.org/licenses/>.
.PHONY: install
all: config.tar.xz.b64
TARBALL_SOURCE = \
config/class/50-host-classes \
config/files/etc/cron.d/fai/FAIBASE \
config/files/etc/fai/fai.conf/FAIBASE \
config/package_config/FAIBASE \
config/scripts/FAIBASE/01-files \
Makefile
config.tar: $(TARBALL_SOURCE)
tar -cf $@ $(TARBALL_SOURCE)
config.tar.xz: config.tar
xz -f -9e --verbose $<
config.tar.xz.b64: config.tar.xz
base64 $< > $@
install:
apt install fai-client
install -m644 config/files/etc/fai/fai.conf/FAIBASE /etc/fai/fai.conf
@# For some reasons fai returns 2 but the install works fine.
/usr/sbin/fai -vNu $$HOSTNAME softupdate || true