2023-09-12 18:55:46 +02:00
|
|
|
# Copyright (C) 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
|
|
#
|
|
|
|
# This program 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 program 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 program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
AC_PREREQ([2.69])
|
|
|
|
AC_INIT([mumble-vm], [0.1], [GNUtoo@cyberdimension.org])
|
|
|
|
AC_CONFIG_SRCDIR([mumble-vm-system.scm.tmpl])
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_MKDIR_P
|
|
|
|
AM_INIT_AUTOMAKE([foreign])
|
|
|
|
|
|
|
|
AC_CHECK_PROG([GUIX], [guix], [guix])
|
|
|
|
AC_CHECK_PROG([SED], [sed], [sed])
|
|
|
|
|
|
|
|
AC_SUBST([DOMAIN], [])
|
2023-09-12 21:46:34 +02:00
|
|
|
AC_SUBST([LETSENCRYPT_EMAIL], [])
|
2023-09-13 05:27:40 +02:00
|
|
|
AC_SUBST([VM_SSH_PUB_KEY], [])
|
2023-09-12 18:55:46 +02:00
|
|
|
|
|
|
|
AC_ARG_WITH([domain],
|
|
|
|
[AS_HELP_STRING([--with-domain=DOMAIN],
|
|
|
|
[Use custom domain (default=audio.experimental.a-lec.org)])],
|
|
|
|
[DOMAIN=$withval],
|
|
|
|
[DOMAIN=audio.experimental.a-lec.org])
|
|
|
|
|
2023-09-12 21:46:34 +02:00
|
|
|
AC_ARG_WITH([letsencrypt-email],
|
|
|
|
[AS_HELP_STRING([--with-letsencrypt-email=LETSENCRYPT_EMAIL], [Use
|
|
|
|
custom email address for Let's Encrypt registration and recovery
|
|
|
|
contact. (default=cominfra@a-lec.org)])],
|
|
|
|
[LETSENCRYPT_EMAIL=$withval],
|
|
|
|
[LETSENCRYPT_EMAIL=cominfra@a-lec.org])
|
|
|
|
|
2023-09-13 05:27:40 +02:00
|
|
|
AC_ARG_WITH([vm-ssh-public-key],
|
|
|
|
[AS_HELP_STRING([--with-ssh-vm-public-key=VM_SSH_PUB_KEY], [Use custom VM
|
|
|
|
SSH public key for use with 'guix deploy'. (default=\
|
|
|
|
ssh-ed25519\
|
|
|
|
AAAAC3NzaC1lZDI1NTE5AAAAIEjLYbJ+47MTte960IbOUTRzOD012ewt1IZgOOc+NqDa)])],
|
|
|
|
[VM_SSH_PUB_KEY=$withval],
|
|
|
|
[VM_SSH_PUB_KEY="\
|
|
|
|
ssh-ed25519\
|
|
|
|
AAAAC3NzaC1lZDI1NTE5AAAAIEjLYbJ+47MTte960IbOUTRzOD012ewt1IZgOOc+NqDa"])
|
|
|
|
|
2023-09-12 18:55:46 +02:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Configuration options:"
|
|
|
|
echo "======================"
|
2023-09-12 21:46:34 +02:00
|
|
|
echo "- Domain: $DOMAIN"
|
|
|
|
echo "- Let's Encrypt email: $LETSENCRYPT_EMAIL"
|
2023-09-13 05:27:40 +02:00
|
|
|
echo "- VM SSH public key: $VM_SSH_PUB_KEY"
|