Line data Source code
1 : /* 2 : This file is part of GNU Taler. 3 : Copyright (C) 2019 Taler Systems SA 4 : 5 : Sync 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 : Sync 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 Sync; 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 os_installation.c 23 : * @brief initialize libgnunet OS subsystem for taler-merchant. 24 : * @author Christian Grothoff 25 : */ 26 : #include "platform.h" 27 : #include <gnunet/gnunet_util_lib.h> 28 : #include "taler_merchant_util.h" 29 : 30 : 31 : /** 32 : * Default project data used for installation path detection 33 : * for GNU Taler merchant. 34 : */ 35 : static const struct GNUNET_OS_ProjectData merchant_pd = { 36 : .libname = "libtalermerchantutil", 37 : .project_dirname = "taler-merchant", 38 : .binary_name = "taler-merchant-httpd", 39 : .env_varname = "TALER_MERCHANT_PREFIX", 40 : .base_config_varname = "TALER_BASE_CONFIG", 41 : .bug_email = "taler@lists.gnu.org", 42 : .homepage = "http://www.gnu.org/s/taler/", 43 : .config_file = "taler-merchant.conf", 44 : .user_config_file = "~/.config/taler-merchant.conf", 45 : .version = PACKAGE_VERSION, 46 : .is_gnu = 1, 47 : .gettext_domain = "taler", 48 : .gettext_path = NULL, 49 : }; 50 : 51 : 52 : /** 53 : * Return default project data used by Taler merchant. 54 : */ 55 : const struct GNUNET_OS_ProjectData * 56 367 : TALER_MERCHANT_project_data (void) 57 : { 58 367 : return &merchant_pd; 59 : } 60 : 61 : 62 : /* end of os_installation.c */