anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

os_installation.c (1777B)


      1 /*
      2      This file is part of GNU Anastasis.
      3      Copyright (C) 2019, 2021, 2024 Anastasis SARL
      4 
      5      Anastasis is free software; you can redistribute it and/or modify
      6      it under the terms of the GNU General Public License as published
      7      by the Free Software Foundation; either version 3, or (at your
      8      option) any later version.
      9 
     10      Anastasis is distributed in the hope that it will be useful, but
     11      WITHOUT ANY WARRANTY; without even the implied warranty of
     12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13      General Public License for more details.
     14 
     15      You should have received a copy of the GNU General Public License
     16      along with Anastasis; see the file COPYING.  If not, write to the
     17      Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     18      Boston, MA 02110-1301, USA.
     19 */
     20 
     21 /**
     22  * @file anastasis/src/util/os_installation.c
     23  * @brief initialize libgnunet OS subsystem for Anastasis.
     24  * @author Christian Grothoff
     25  */
     26 #include "platform.h"
     27 #include "anastasis_util_lib.h"
     28 
     29 
     30 /**
     31  * Default project data used for installation path detection
     32  * for GNU Anastasis.
     33  */
     34 static const struct GNUNET_OS_ProjectData anastasis_pd = {
     35   .libname = "libanastasisutil",
     36   .project_dirname = "anastasis",
     37   .binary_name = "anastasis-httpd",
     38   .env_varname = "ANASTASIS_PREFIX",
     39   .base_config_varname = "ANASTASIS_BASE_CONFIG",
     40   .bug_email = "contact@anastasis.lu",
     41   .homepage = "https://anastasis.lu/",
     42   .config_file = "anastasis.conf",
     43   .user_config_file = "~/.config/anastasis.conf",
     44   .version = PACKAGE_VERSION,
     45   .is_gnu = 1,
     46   .gettext_domain = "anastasis",
     47   .gettext_path = NULL,
     48 };
     49 
     50 
     51 const struct GNUNET_OS_ProjectData *
     52 ANASTASIS_project_data (void)
     53 {
     54   return &anastasis_pd;
     55 }
     56 
     57 
     58 /* end of os_installation.c */