gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated (307543dfb -> f7e99c3ce)


From: gnunet
Subject: [gnunet] branch master updated (307543dfb -> f7e99c3ce)
Date: Mon, 16 Oct 2023 08:30:52 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a change to branch master
in repository gnunet.

    from 307543dfb meson: add still working core tests
     new 9795f128c contrib: move guix packages to pckages folder
     new f7e99c3ce meson: add user/group notice message

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 contrib/{ => packages/guix}/guix.README |  0
 contrib/{ => packages/guix}/guix.scm    |  0
 meson.build                             | 49 +++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 rename contrib/{ => packages/guix}/guix.README (100%)
 rename contrib/{ => packages/guix}/guix.scm (100%)

diff --git a/contrib/guix.README b/contrib/packages/guix/guix.README
similarity index 100%
rename from contrib/guix.README
rename to contrib/packages/guix/guix.README
diff --git a/contrib/guix.scm b/contrib/packages/guix/guix.scm
similarity index 100%
rename from contrib/guix.scm
rename to contrib/packages/guix/guix.scm
diff --git a/meson.build b/meson.build
index 523645c88..da377735a 100644
--- a/meson.build
+++ b/meson.build
@@ -24,6 +24,22 @@ docdir = get_option('datadir')/'doc'/'gnunet'
 install_emptydir(docdir)
 install_data('README', 'COPYING', install_dir: docdir)
 
+gnunet_user = false
+getent_bin = find_program('getent', '/usr/bin/getent', required : false)
+if getent_bin.found()
+  gnunet_user = true
+  if not run_command('getent', 'passwd', 'gnunet', check: false).returncode() 
== 0
+    gnunet_user = false
+  endif
+  if not run_command('getent', 'group', 'gnunet', check: false).returncode() 
== 0
+    gnunet_user = false
+  endif
+  if not run_command('getent', 'group', 'gnunetdns', check: 
false).returncode() == 0
+    gnunet_user = false
+  endif
+endif
+
+
 # TODO: Set to true to build a single libgnunet
 if get_option('monolith')
   add_project_arguments('-DHAVE_GNUNET_MONOLITH', language: 'c')
@@ -199,6 +215,13 @@ if ip_bin.found()
   cdata.set_quoted('PATH_TO_IP', ip_bin.full_path())
 endif
 
+iptables_bin = find_program('iptables', '/usr/sbin/iptables', required : false)
+if iptables_bin.found()
+  cdata.set_quoted('IPTABLES', iptables_bin.full_path())
+endif
+
+adduser_bin = find_program('adduser', '/usr/sbin/adduser', required : false)
+
 pkgc_bin = find_program('pkg-config', '/usr/bin/pkg-config', required : false)
 if pkgc_bin.found()
   add_project_arguments('-DHAVE_PKG_CONFIG', language : 'c')
@@ -393,3 +416,29 @@ subdir('doc')
 subdir('contrib')
 
 meson.add_dist_script('meson-dist-script')
+
+summary({'host': host_machine.system(),
+         'prefix': get_option('prefix'),
+         'compiler': cc.get_id(),
+          'libdir': get_option('libdir'),
+          'datadir': get_option('datadir'),
+          'default interface': cdata.get('GNUNET_DEFAULT_INTERFACE'),
+          'PostgreSQL': pq_dep.found(),
+          'curl w/ gnutls': (cdata.get('curl_gnutls') == 1),
+          'ifconfig': ifconfig_bin.found(),
+          'iptables': iptables_bin.found()
+          }, section: 'Detected system')
+
+if not gnunet_user
+message('Please make sure NOW to create a user and group \'gnunet\' and 
additionally a group \'gnunetdns\'. Make sure that \'/var/lib/gnunet\' is owned 
(and writable) by user \'gnunet\'')
+message('Each user of GNUnet should be added to the \'gnunet\' group')
+if adduser_bin.found() and not gnunet_user
+    message('''Create the gnunet user and add users to the gnunetdns group, 
run:
+             # addgroup gnunetdns
+             # adduser --system --disabled-login --home /var/lib/gnunet 
gnunet''')
+    message('''To add users to the gnunet group, run:
+             # adduser USERNAME gnunet
+             for each of your users, replacing \'USERNAME\' with the 
respective login name.
+             Users may have to login again for the changes to take effect.''')
+endif
+endif

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]