commit 29284d082b271748060a3ac471ee279204fd288e
parent 985cb19af4df38eb0d8e02a949e13c56a7dbac11
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 26 Nov 2025 14:22:21 +0100
more basics
Diffstat:
5 files changed, 110 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,16 @@
+**~
+**/Makefile.in
+**/Makefile
+INSTALL
+aclocal.m4
+autom4te.cache/
+compile
+config.guess
+config.sub
+configure
+depcomp
+install-sh
+ltmain.sh
+m4/
+missing
+paivana_config.h.in
diff --git a/doc/Makefile.am b/doc/Makefile.am
@@ -0,0 +1,4 @@
+# This Makefile.am is in the public domain
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
+
+SUBDIRS = .
diff --git a/src/backend/paivana-httpd.c b/src/backend/paivana-httpd.c
@@ -31,6 +31,7 @@
#include <curl/curl.h>
#include <gnunet/gnunet_util_lib.h>
#include <microhttpd.h>
+#include "paivana_pd.h"
#define PAIVANA_LOG_INFO(...) \
diff --git a/src/backend/paivana_pd.c b/src/backend/paivana_pd.c
@@ -0,0 +1,54 @@
+/*
+ This file is part of Taler.
+ Copyright (C) 2025 Taler Systems SA
+
+ Taler 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,
+ or (at your option) any later version.
+
+ Taler 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 Taler; see the file COPYING. If not,
+ write to the Free Software Foundation, Inc., 51 Franklin
+ Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+/**
+ * @file paivana_pd.c
+ * @brief Paivana project data
+ * @author Christian Grothoff
+ */
+#include "platform.h"
+#include "paivana_pd.h"
+
+/**
+ * Default project data used for installation path detection
+ * for Twister.
+ */
+static const struct GNUNET_OS_ProjectData twister_project_data = {
+ .libname = "libpaivana",
+ .project_dirname = "paivana",
+ .binary_name = "paivana-httpd",
+ .version = PACKAGE_VERSION " " VCS_VERSION,
+ .env_varname = "PAIVANA_PREFIX",
+ .base_config_varname = "PAIVANA_BASE_CONFIG",
+ .bug_email = "taler@gnu.org",
+ .homepage = "http://www.gnu.org/s/taler/",
+ .config_file = "paivana.conf",
+ .user_config_file = "~/.config/paivana.conf",
+ .is_gnu = 1,
+ .gettext_domain = "paivana",
+ .gettext_path = NULL,
+ .agpl_url = GNUNET_AGPL_URL,
+};
+
+
+const struct GNUNET_OS_ProjectData *
+PAIVANA_project_data ()
+{
+ return &paivana_project_data;
+}
diff --git a/src/backend/paivana_pd.h b/src/backend/paivana_pd.h
@@ -0,0 +1,35 @@
+/*
+ This file is part of GNUnet.
+ Copyright (C) 2018 Taler Systems SA
+
+ Paivana 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, or (at your option) any later version.
+
+ Paivana 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 Paivana; see the file COPYING. If not,
+ write to the Free Software Foundation, Inc., 51 Franklin
+ Street, Fifth Floor, Boston, MA 02110-1301, USA.
+*/
+
+/**
+ * @author
+ * @file paivana_pd.h
+ *
+ * @brief Project data definition
+ */
+#ifndef PAIVANA_PD_H
+#define PAIVANA_PD_H
+
+#include <gnunet/gnunet_util_lib.h>
+
+const struct GNUNET_OS_ProjectData *
+PAIVANA_project_data (void);
+
+#endif