Browse Source

Restructure contrib folder.

contrib/pogen.sh -> bin/pogen.sh
bootstrap: Use new pogen location and execute it.
contrib/openvpn-tap32: Move to contrib/3rdparty/Windows/openvpn-tap32.
contrib/gnunet-logo*: Move to contrib/branding/logo/
Delete old patches in contrib, predating git.
Move buildbot data to contrib/ci/buildbot,
move docker data to contrib/ci/docker.
Create contrib/conf and populate it with config files found in contrib and bin.
Move gns related data to contrib/gns.
delete contrib/repeat.sh
Move contrib/log.php into contrib/web/log.php.
Create folder contrib/scripts and use it for most scripts in contrib.
Remove trailing whitespace in doc/Makefile.am

Signed-off-by: Nils Gillmann <ng0@n0.is>
Nils Gillmann 6 years ago
parent
commit
6ab60d4920
71 changed files with 60 additions and 434 deletions
  1. 1 0
      .gitignore
  2. 7 2
      README
  3. 0 0
      bin/pogen.sh
  4. 1 1
      bootstrap
  5. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/COPYING
  6. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/INSTALL
  7. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip
  8. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip
  9. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf
  10. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat
  11. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys
  12. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
  13. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat
  14. 0 0
      contrib/3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys
  15. 46 46
      contrib/Makefile.am
  16. 0 0
      contrib/branding/logo/gnunet-logo-big.png
  17. 0 0
      contrib/branding/logo/gnunet-logo-color.png
  18. 0 0
      contrib/branding/logo/gnunet-logo.pdf
  19. 0 202
      contrib/buildslave-0.8.6p1-gnunet-w32.patch
  20. 0 0
      contrib/ci/buildbot/buildbot-update.sh
  21. 0 0
      contrib/ci/buildbot/ssh-config
  22. 0 0
      contrib/ci/buildbot/ssh-keys
  23. 0 0
      contrib/ci/docker/Dockerfile
  24. 0 0
      contrib/ci/docker/docker-entrypoint.sh
  25. 0 0
      contrib/conf/colorit/colorit.conf
  26. 0 0
      contrib/conf/editors/eclipse/gnunet_codingstyle.xml
  27. 0 0
      contrib/conf/gnunet/no_autostart_above_core.conf
  28. 0 0
      contrib/conf/gnunet/no_forcestart.conf
  29. 0 0
      contrib/conf/nss/nssswitch.conf
  30. 0 0
      contrib/conf/wireshark/wireshark.lua
  31. 0 0
      contrib/gns/bootstrap.min.css
  32. 0 0
      contrib/gns/def.tex
  33. 0 0
      contrib/gns/gns-bcd.html
  34. 1 1
      contrib/gns/gns-bcd.tex
  35. 0 0
      contrib/gns/gns-form-fields.xml
  36. 0 0
      contrib/gns/gns-form.xslt
  37. 0 0
      contrib/nse/experiments/infiniband.conf
  38. 0 0
      contrib/patches/lrn-indent.diff
  39. 0 0
      contrib/patches/texi2html5-indent.diff
  40. 0 0
      contrib/patches/transport_ats_years.diff
  41. 0 1
      contrib/repeat.sh
  42. 0 0
      contrib/scripts/coverage.sh
  43. 0 0
      contrib/scripts/debug
  44. 0 0
      contrib/scripts/find_typedefs.py
  45. 0 0
      contrib/scripts/gdb-iterate-dll.py
  46. 0 0
      contrib/scripts/generate-monkey-db.sh
  47. 0 0
      contrib/scripts/gnunet-chk.py.in
  48. 1 1
      contrib/scripts/gnunet-logread/gnunet-logread
  49. 1 0
      contrib/scripts/gnunet-logread/gnunet-logread-ipc
  50. 1 1
      contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit
  51. 0 0
      contrib/scripts/gnunet-suidfix
  52. 0 0
      contrib/scripts/gnunet_janitor.py.in
  53. 0 0
      contrib/scripts/gnunet_pyexpect.py.in
  54. 0 0
      contrib/scripts/process_log.sh
  55. 0 0
      contrib/scripts/pydiffer.py.in
  56. 0 0
      contrib/scripts/pydmesg
  57. 0 0
      contrib/scripts/regression.sh
  58. 0 0
      contrib/scripts/removetrailingwhitespace.py.in
  59. 0 0
      contrib/scripts/report.sh
  60. 0 0
      contrib/scripts/revisionary.sh
  61. 0 0
      contrib/scripts/terminate.py.in
  62. 0 0
      contrib/scripts/testbed_cleanup.sh
  63. 0 0
      contrib/scripts/texinfo-hacks.el
  64. 0 0
      contrib/scripts/visualize_stats.sh
  65. 0 0
      contrib/scripts/zonewalk-to-types.sh
  66. 0 90
      contrib/testbed_perfhacks.patch
  67. 0 9
      contrib/testbed_setup_pre_ecc_tree.sh
  68. 0 77
      contrib/transpot_delay.patch
  69. 0 0
      contrib/web/log.php
  70. 1 1
      doc/Makefile.am
  71. 0 2
      guix-env.scm

+ 1 - 0
.gitignore

@@ -41,6 +41,7 @@ confdefs.h
 confdefs.c
 confdefs.err
 gnunet-doc.scm
+guix-env-gillmann.scm
 src/namestore/test_namestore_api_zone_to_name
 src/credential/gnunet-credential
 src/credential/gnunet-service-credential

+ 7 - 2
README

@@ -51,7 +51,7 @@ These are the direct dependencies for running GNUnet:
 - libogg        >= 1.3.0 (optional for experimental conversation tool)
 - python-zbar   >= 0.10 (optional for gnunet-qr)
 - TeX Live      >= 2012 (optional for gnunet-bcd[*])
-- Texinfo       >= 5.2
+- Texinfo       >= 5.2 [*1]
 - libglpk       >= 4.45 (optional for experimental code)
 
 Recommended autotools for compiling the git version are:
@@ -63,6 +63,10 @@ Recommended autotools for compiling the git version are:
 [*] Mandatory for compiling the info output of the documentation,
 a limited subset ('texlive-tiny' in Guix) is enough.
 
+[*1] The default configuration is to build the info output of the documentation,
+and therefore require texinfo.  You can pass --disable-documentation to
+the configure script to change this.
+
 How to install?
 ===============
 
@@ -262,7 +266,8 @@ $ make check
 
 Some of the testcases require python >= 2.6 and pexpect to be
 installed.  If any testcases fail to pass on your system, run
-"contrib/report.sh" and report the output together with
+"contrib/scripts/report.sh" (in the repository) or "gnunet-bugreport"
+when you already have GNUnet installed and report the output together with
 information about the failing testcase to the Mantis bugtracking
 system at https://gnunet.org/bugs/.
 

+ 0 - 0
contrib/pogen.sh → bin/pogen.sh


+ 1 - 1
bootstrap

@@ -6,4 +6,4 @@ which glibtoolize || which libtoolize || which libtool || {
         exit 1
 }
 autoreconf -if
-contrib/pogen.sh
+. "bin/pogen.sh"

+ 0 - 0
contrib/openvpn-tap32/COPYING → contrib/3rdparty/Windows/openvpn-tap32/COPYING


+ 0 - 0
contrib/openvpn-tap32/INSTALL → contrib/3rdparty/Windows/openvpn-tap32/INSTALL


+ 0 - 0
contrib/openvpn-tap32/tap32-signed-i386-2.1.zip → contrib/3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip


+ 0 - 0
contrib/openvpn-tap32/tap32-source-2.1.zip → contrib/3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip


+ 0 - 0
contrib/openvpn-tap32/tapw32/OemWin2k.inf → contrib/3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf


+ 0 - 0
contrib/openvpn-tap32/tapw32/tap0901.cat → contrib/3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat


+ 0 - 0
contrib/openvpn-tap32/tapw32/tap0901.sys → contrib/3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys


+ 0 - 0
contrib/openvpn-tap32/tapw64/OemWin2k.inf → contrib/3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf


+ 0 - 0
contrib/openvpn-tap32/tapw64/tap0901.cat → contrib/3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat


+ 0 - 0
contrib/openvpn-tap32/tapw64/tap0901.sys → contrib/3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys


+ 46 - 46
contrib/Makefile.am

@@ -17,54 +17,62 @@ timeout_watchdog_SOURCES = \
 endif
 
 noinst_SCRIPTS = \
- terminate.py \
- pydiffer.py \
- removetrailingwhitespace.py \
- gnunet_pyexpect.py \
- gnunet_janitor.py \
- gnunet-chk.py
+ scripts/terminate.py \
+ scripts/pydiffer.py \
+ scripts/removetrailingwhitespace.py \
+ scripts/gnunet_pyexpect.py \
+ scripts/gnunet_janitor.py \
+ scripts/gnunet-chk.py
 
 dist_pkgdata_DATA = \
- gns-bcd.html \
- gns-bcd.tex \
- gnunet-logo.pdf \
- gnunet-logo-color.png \
+ gns/gns-bcd.html \
+ gns/gns-bcd.tex \
+ gns/def.tex \
+ gns/gns-form-fields.xml \
+ gns/gns-form.xslt \
+ branding/logo/gnunet-logo.pdf \
+ branding/logo/gnunet-logo-color.png \
+ scripts/report.sh \
  testing_hostkeys.ecc
 
 if MINGW
 tap32_DATA = \
- openvpn-tap32/tapw32/tap0901.sys \
- openvpn-tap32/tapw32/tap0901.cat \
- openvpn-tap32/tapw32/OemWin2k.inf
+ 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
+ 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
+ 3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf
 
 tap64_DATA = \
- openvpn-tap32/tapw64/tap0901.sys \
- openvpn-tap32/tapw64/tap0901.cat \
- openvpn-tap32/tapw64/OemWin2k.inf
+ 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
+ 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
+ 3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
 endif
 
 EXTRA_DIST = \
- no_forcestart.conf \
- no_autostart_above_core.conf \
- coverage.sh \
- nssswitch.conf \
- report.sh \
- terminate.py.in \
- gnunet_pyexpect.py.in \
- gnunet_janitor.py.in \
- gnunet-chk.py.in \
- removetrailingwhitespace.py.in \
- pydiffer.py.in \
- gnunet-gns-import.sh \
- openvpn-tap32/tapw32/tap0901.sys \
- openvpn-tap32/tapw32/tap0901.cat \
- openvpn-tap32/tapw32/OemWin2k.inf \
- openvpn-tap32/tapw64/tap0901.sys \
- openvpn-tap32/tapw64/tap0901.cat \
- openvpn-tap32/tapw64/OemWin2k.inf \
- openvpn-tap32/INSTALL \
- openvpn-tap32/tap32-signed-i386-2.1.zip \
- openvpn-tap32/tap32-source-2.1.zip
+ conf/colorit/colorit.conf \
+ conf/editors/eclipse/gnunet_codingstyle.xml \
+ conf/gnunet/no_forcestart.conf \
+ conf/gnunet/no_autostart_above_core.conf \
+ conf/nss/nssswitch.conf \
+ conf/wireshark/wireshark.lua \
+ scripts/coverage.sh \
+ scripts/terminate.py.in \
+ scripts/gnunet_pyexpect.py.in \
+ scripts/gnunet_janitor.py.in \
+ scripts/gnunet-chk.py.in \
+ scripts/removetrailingwhitespace.py.in \
+ scripts/pydiffer.py.in \
+ scripts/gnunet-gns-import.sh \
+ packages/nix/default.nix \
+ packages/nix/gnunet-dex.nix \
+ 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
+ 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
+ 3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf \
+ 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
+ 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
+ 3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf \
+ 3rdparty/Windows/openvpn-tap32/INSTALL \
+ 3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip \
+ 3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip
 
 CLEANFILES = \
   $(noinst_SCRIPTS)
@@ -82,21 +90,13 @@ do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
 #
 # instead of this:
 
+SUFFIXES =
 SUFFIXES = .py.in .py
 
 .py.in.py:
 	$(do_subst) < $< > $@
 	chmod +x $@
 
-# init_gnunet_redhat \
-# init_gnunet_ubuntu \
-# visualize_stats.sh \
-# gnmessage.sh \
-# junkinsert.sh \
-# junklookup.sh \
-# namespacehelper.sh
-
-
 check_PROGRAMS = \
  test_gnunet_prefix
 

+ 0 - 0
contrib/gnunet-logo-big.png → contrib/branding/logo/gnunet-logo-big.png


+ 0 - 0
contrib/gnunet-logo-color.png → contrib/branding/logo/gnunet-logo-color.png


+ 0 - 0
contrib/gnunet-logo.pdf → contrib/branding/logo/gnunet-logo.pdf


+ 0 - 202
contrib/buildslave-0.8.6p1-gnunet-w32.patch

@@ -1,202 +0,0 @@
-diff -urN /src/buildbot-slave-0.8.6p1.orig/buildslave/runprocess.py /src/buildbot-slave-0.8.6p1/buildslave/runprocess.py
---- buildbot-slave-0.8.6p1.orig/buildslave/runprocess.py	2012-03-26 04:09:10 +0400
-+++ buildbot-slave-0.8.6p1/buildslave/runprocess.py	2013-03-31 05:18:55 +0400
-@@ -24,6 +24,7 @@
- import re
- import subprocess
- import traceback
-+import tempfile
- import stat
- from collections import deque
- 
-@@ -36,6 +37,89 @@
- if runtime.platformType == 'posix':
-     from twisted.internet.process import Process
- 
-+if os.name == 'nt':
-+    import win32api
-+    import win32process
-+    import win32event
-+    import pywintypes
-+
-+def safe_terminate_process (proc, code):
-+    if os.name == 'nt':
-+        log.msg ("Obtaining current process handle")
-+        cp = win32api.GetCurrentProcess ()
-+        result = False
-+        log.msg ("Expanding target process handle permissions")
-+        dupproc = win32api.DuplicateHandle (cp, proc._handle, cp, 2 | 1024 | 8 | 32 | 16 | 0x100000, 0, 0)
-+        log.msg ("Expanded.")
-+        try:
-+            log.msg ("Checking exit code of target process")
-+            exitcode = win32process.GetExitCodeProcess (dupproc)
-+            log.msg ("Exit code is %d" % exitcode)
-+            if exitcode == 0x103:
-+                log.msg ("Opening kernel32.dll")
-+                kernel32 = win32api.GetModuleHandle ("kernel32")
-+                log.msg ("Getting ExitProcess() address")
-+                exitprocess = win32api.GetProcAddress (kernel32, "ExitProcess")
-+                try:
-+                    log.msg ("Creating remote thread")
-+                    th = 0
-+                    tid = 0
-+                    failed = False
-+                    th, tid = win32process.CreateRemoteThread (dupproc, None, 0, exitprocess, code, 0)
-+                    log.msg ("Created remote thread %d" % tid)
-+                except pywintypes.error as e:
-+                    if e[0] == 5:
-+                      log.msg ("Access denied. It still might die, so don't fail yet")
-+                      pass
-+                    else:
-+                      log.msg("exception %s - %s" % (sys.exc_info()[0], sys.exc_info()[1]))
-+                      failed = True
-+                except Exception as e:
-+                    log.msg("exception %s - %s" % (sys.exc_info()[0], sys.exc_info()[1]))
-+                    failed = True
-+                if not failed:
-+                    log.msg ("Wait for 5 seconds or until it dies (usually takes around 1 microsecond)")
-+                    waitresult = win32event.WaitForSingleObject (dupproc, 5)
-+                    log.msg ("Result of waiting: %d" % waitresult)
-+                    win32api.CloseHandle (th)
-+                    if waitresult == 0:
-+                        result = True
-+            else:
-+                result = True
-+        except:
-+            log.msg("exception %s - %s" % (sys.exc_info()[0], sys.exc_info()[1]))
-+        finally:
-+            win32api.CloseHandle (dupproc)
-+        return result
-+    else:
-+        return proc.kill ()
-+
-+class Dummy(object):
-+    def SetHandle (self, h):
-+        self._handle = h
-+
-+def safe_terminate_process_by_pid (proc, code):
-+    if os.name == 'nt':
-+        try:
-+            log.msg("Opening process %d" % proc)
-+            openproc = win32api.OpenProcess (2 | 1024 | 8 | 32 | 16 | 0x100000, 0, proc)
-+            log.msg("Opened process %d" % proc)
-+            try:
-+                d = Dummy ()
-+                d.SetHandle (openproc)
-+                log.msg("Terminating it safely")
-+                safe_terminate_process (d, code)
-+                log.msg("Finished terminating")
-+            finally:
-+                log.msg("Closing process handle")
-+                win32api.CloseHandle (openproc)
-+        except:
-+            log.msg("exception %s - %s" % (sys.exc_info()[0], sys.exc_info()[1]))
-+            pass
-+    else:
-+        return os.kill (proc, code)
-+
-+	
- def shell_quote(cmd_list):
-     # attempt to quote cmd_list such that a shell will properly re-interpret
-     # it.  The pipes module is only available on UNIX, and Windows "shell"
-@@ -148,6 +232,7 @@
-         self.pending_stdin = ""
-         self.stdin_finished = False
-         self.killed = False
-+        self.scriptfile = ""
- 
-     def setStdin(self, data):
-         assert not self.connected
-@@ -198,6 +283,11 @@
-                 rc = 1
-             else:
-                 rc = -1
-+        if self.scriptfile:
-+            try:
-+                os.remove (self.scriptfile) 
-+            except:
-+                pass
-         self.command.finished(sig, rc)
- 
- 
-@@ -408,9 +498,14 @@
- 
-         if type(self.command) in types.StringTypes:
-             if runtime.platformType  == 'win32':
--                argv = os.environ['COMSPEC'].split() # allow %COMSPEC% to have args
--                if '/c' not in argv: argv += ['/c']
--                argv += [self.command]
-+                if os.environ['BUILDSLAVE_SHELL']:
-+                    argv = os.environ['BUILDSLAVE_SHELL'].split() # allow %COMSPEC% to have args
-+                    argv += [self.command]
-+                else:
-+                    argv = os.environ['COMSPEC'].split() # allow %COMSPEC% to have args
-+                    if '/c' not in argv:
-+                        argv += ['/c']
-+                    argv += [self.command]
-             else:
-                 # for posix, use /bin/sh. for other non-posix, well, doesn't
-                 # hurt to try
-@@ -424,9 +519,26 @@
-             # handle path searching, etc.
-             if runtime.platformType == 'win32' and not \
-                     (self.command[0].lower().endswith(".exe") and os.path.isabs(self.command[0])):
--                argv = os.environ['COMSPEC'].split() # allow %COMSPEC% to have args
--                if '/c' not in argv: argv += ['/c']
--                argv += list(self.command)
-+                if os.environ['BUILDSLAVE_SHELL']:
-+                    argv = os.environ['BUILDSLAVE_SHELL'].split()
-+                    # Create a temporary script file that changes current directory
-+                    # and runs the command we want
-+                    # It will be deleted after command is finished running (see RunProcessPP)
-+                    tf, tf_name = tempfile.mkstemp ()
-+                    f = os.fdopen (tf, 'wb')
-+                    fcontents = '#!/bin/sh\ncd {}\n{}'.format (
-+                        re.sub(r'(?<!\\) ','\\ ', self.workdir.replace('\\','/')),
-+                        ' '.join (self.command))
-+                    f.write (fcontents)
-+                    log.msg("Script: {}".format (fcontents))
-+                    f.close ()
-+                    self.pp.scriptfile = tf_name
-+                    argv += [tf_name.replace('\\','/')]
-+                else:
-+                    argv = os.environ['COMSPEC'].split() # allow %COMSPEC% to have args
-+                    if '/c' not in argv:
-+                      argv += ['/c']
-+                    argv += list(self.command)
-             else:
-                 argv = self.command
-             # Attempt to format this for use by a shell, although the process isn't perfect
-@@ -439,7 +551,7 @@
-             self.environ['PWD'] = os.path.abspath(self.workdir)
- 
-         # self.stdin is handled in RunProcessPP.connectionMade
--
-+        log.msg("Running {}".format (argv))
-         log.msg(" " + display)
-         self._addToBuffers('header', display+"\n")
- 
-@@ -770,9 +882,7 @@
-             if self.interruptSignal == None:
-                 log.msg("self.interruptSignal==None, only pretending to kill child")
-             else:
--                log.msg("using TASKKILL /F PID /T to kill pid %s" % self.process.pid)
--                subprocess.check_call("TASKKILL /F /PID %s /T" % self.process.pid)
--                log.msg("taskkill'd pid %s" % self.process.pid)
-+                safe_terminate_process_by_pid (self.process.pid, 1)
-                 hit = 1
- 
-         # try signalling the process itself (works on Windows too, sorta)
-@@ -795,10 +905,11 @@
-         if not hit:
-             log.msg("signalProcess/os.kill failed both times")
- 
--        if runtime.platformType == "posix":
-+        if runtime.platformType == "posix" or runtime.platformType == "win32":
-             # we only do this under posix because the win32eventreactor
-             # blocks here until the process has terminated, while closing
-             # stderr. This is weird.
-+            # LRN: Turns out, things don't work without this on W32. At all.
-             self.pp.transport.loseConnection()
- 
-         if self.deferred:

+ 0 - 0
contrib/buildbot-update.sh → contrib/ci/buildbot/buildbot-update.sh


+ 0 - 0
contrib/ssh-config → contrib/ci/buildbot/ssh-config


+ 0 - 0
contrib/ssh-keys → contrib/ci/buildbot/ssh-keys


+ 0 - 0
contrib/Dockerfile → contrib/ci/docker/Dockerfile


+ 0 - 0
contrib/docker-entrypoint.sh → contrib/ci/docker/docker-entrypoint.sh


+ 0 - 0
contrib/colorit.conf → contrib/conf/colorit/colorit.conf


+ 0 - 0
contrib/gnunet_codingstyle.xml → contrib/conf/editors/eclipse/gnunet_codingstyle.xml


+ 0 - 0
contrib/no_autostart_above_core.conf → contrib/conf/gnunet/no_autostart_above_core.conf


+ 0 - 0
contrib/no_forcestart.conf → contrib/conf/gnunet/no_forcestart.conf


+ 0 - 0
contrib/nssswitch.conf → contrib/conf/nss/nssswitch.conf


+ 0 - 0
bin/wireshark.lua → contrib/conf/wireshark/wireshark.lua


+ 0 - 0
contrib/bootstrap.min.css → contrib/gns/bootstrap.min.css


+ 0 - 0
contrib/def.tex → contrib/gns/def.tex


+ 0 - 0
contrib/gns-bcd.html → contrib/gns/gns-bcd.html


+ 1 - 1
contrib/gns-bcd.tex → contrib/gns/gns-bcd.tex

@@ -18782,7 +18782,7 @@
                 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-29.0mm) {\ifthenelse{\equal{#1}{english}}{\textit{\jobtitleenglish}}{\textit{\jobtitlegerman}}};
             }
             {
-                \node at (78mm,-7mm) {\logo}; %\includegraphics[height=7mm]{gnunet-logo.pdf}};
+                \node at (78mm,-7mm) {\logo}; %\includegraphics[height=7mm]{../branding/logo/gnunet-logo.pdf}};
                 \node[rectangle,draw=white,line width=1pt,inner sep=0pt] at (17mm,-17mm) {\begin{pspicture}(15mm,15mm) \psbarcode{gnunet://gns/\gns}{eclevel=Q}{qrcode}\end{pspicture}};
                 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-35.0mm) {\ifthenelse{\equal{\prefix}{}}{}{\tiny \prefix}};
                 \node[rectangle,draw=white,minimum height=7pt,text width=41mm,inner sep=0pt] at (24.25mm,-41.5mm) {\fontsize{8pt}{8pt}\selectfont \textbf{\name}\ifthenelse{\equal{\suffix}{}}{}{, \tiny \suffix}};

+ 0 - 0
contrib/gns-form-fields.xml → contrib/gns/gns-form-fields.xml


+ 0 - 0
contrib/gns-form.xslt → contrib/gns/gns-form.xslt


+ 0 - 0
contrib/experiments/nse/infiniband.conf → contrib/nse/experiments/infiniband.conf


+ 0 - 0
contrib/lrn-indent.diff → contrib/patches/lrn-indent.diff


+ 0 - 0
contrib/texi2html5-indent.diff → contrib/patches/texi2html5-indent.diff


+ 0 - 0
contrib/transport_ats_years.diff → contrib/patches/transport_ats_years.diff


+ 0 - 1
contrib/repeat.sh

@@ -1 +0,0 @@
-while true; do rm -rf /tmp/test-gnunetd-*; make check || break; done

+ 0 - 0
contrib/coverage.sh → contrib/scripts/coverage.sh


+ 0 - 0
contrib/debug → contrib/scripts/debug


+ 0 - 0
contrib/find_typedefs.py → contrib/scripts/find_typedefs.py


+ 0 - 0
contrib/gdb-iterate-dll.py → contrib/scripts/gdb-iterate-dll.py


+ 0 - 0
contrib/generate-monkey-db.sh → contrib/scripts/generate-monkey-db.sh


+ 0 - 0
contrib/gnunet-chk.py.in → contrib/scripts/gnunet-chk.py.in


+ 1 - 1
contrib/gnunet-logread → contrib/scripts/gnunet-logread/gnunet-logread

@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!@PERL@
 # helper tool to make gnunet logs more readable
 # try 'gnunet-logread -h' for usage
 

+ 1 - 0
contrib/gnunet-logread-ipc → contrib/scripts/gnunet-logread/gnunet-logread-ipc

@@ -4,6 +4,7 @@
 #
 # ... obsoleted by gnunet-logread's new -f option that does the same thing
 
+# FIXME: Replace /tmp with our use of $TMPDIR and similar.
 ipc=${1:-/tmp/gnunet-logread-ipc.sock}
 test -e "$ipc" || mkfifo "$ipc"
 cat "$ipc"

+ 1 - 1
contrib/gnunet-logread-ipc-sdedit → contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit

@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!@PERL@
 
 # 1. Start sdedit and enable 'RT diagram server' in 'Global preferences'.
 #

+ 0 - 0
contrib/gnunet-suidfix → contrib/scripts/gnunet-suidfix


+ 0 - 0
contrib/gnunet_janitor.py.in → contrib/scripts/gnunet_janitor.py.in


+ 0 - 0
contrib/gnunet_pyexpect.py.in → contrib/scripts/gnunet_pyexpect.py.in


+ 0 - 0
contrib/process_log.sh → contrib/scripts/process_log.sh


+ 0 - 0
contrib/pydiffer.py.in → contrib/scripts/pydiffer.py.in


+ 0 - 0
contrib/pydmesg → contrib/scripts/pydmesg


+ 0 - 0
contrib/regression.sh → contrib/scripts/regression.sh


+ 0 - 0
contrib/removetrailingwhitespace.py.in → contrib/scripts/removetrailingwhitespace.py.in


+ 0 - 0
contrib/report.sh → contrib/scripts/report.sh


+ 0 - 0
contrib/revisionary.sh → contrib/scripts/revisionary.sh


+ 0 - 0
contrib/terminate.py.in → contrib/scripts/terminate.py.in


+ 0 - 0
contrib/testbed_cleanup.sh → contrib/scripts/testbed_cleanup.sh


+ 0 - 0
contrib/texinfo-hacks.el → contrib/scripts/texinfo-hacks.el


+ 0 - 0
contrib/visualize_stats.sh → contrib/scripts/visualize_stats.sh


+ 0 - 0
contrib/zonewalk-to-types.sh → contrib/scripts/zonewalk-to-types.sh


+ 0 - 90
contrib/testbed_perfhacks.patch

@@ -1,90 +0,0 @@
-Index: src/include/gnunet_constants.h
-===================================================================
---- src/include/gnunet_constants.h	(revision 26030)
-+++ src/include/gnunet_constants.h	(working copy)
-@@ -49,7 +49,7 @@
-  * After how long do we consider a connection to a peer dead
-  * if we don't receive messages from the peer?
-  */
--#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
-+#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 5)
- 
- /**
-  * How long do we delay reading more from a peer after a quota violation?
-@@ -61,7 +61,7 @@
-  * even if we assume that the service commonly does not
-  * respond instantly (DNS, Database, etc.).
-  */
--#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10)
-+#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
- 
- /**
-  * How long do we delay messages to get larger packet sizes (CORKing)?
-Index: src/transport/gnunet-service-transport_neighbours.c
-===================================================================
---- src/transport/gnunet-service-transport_neighbours.c	(revision 26030)
-+++ src/transport/gnunet-service-transport_neighbours.c	(working copy)
-@@ -65,7 +65,7 @@
-  * send 3 keepalives in each interval, so 3 messages would need to be
-  * lost in a row for a disconnect).
-  */
--#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
-+#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 100)
- 
- /**
-  * How long are we willing to wait for a response from ATS before timing out?
-Index: src/transport/gnunet-service-transport_validation.c
-===================================================================
---- src/transport/gnunet-service-transport_validation.c	(revision 26030)
-+++ src/transport/gnunet-service-transport_validation.c	(working copy)
-@@ -43,7 +43,7 @@
-  * OTOH, we don't want to spend too much time generating PONG signatures,
-  * so they must have some lifetime to reduce our CPU usage.
-  */
--#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 1)
-+#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 12)
- 
- /**
-  * After how long do we expire an address in a HELLO that we just
-@@ -58,24 +58,24 @@
-  * we cannot validate (because after this time we can destroy the
-  * validation record).
-  */
--#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
-+#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 4)
- 
- /**
-  * How often do we PING an address that we have successfully validated
-  * in the past but are not actively using?  Should be (significantly)
-  * smaller than HELLO_ADDRESS_EXPIRATION.
-  */
--#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
-+#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 6)
- 
- /**
-  * How often do we PING an address that we are currently using?
-  */
--#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 2)
-+#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 2)
- 
- /**
-  * How much delay is acceptable for sending the PING or PONG?
-  */
--#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
-+#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1)
- 
- /**
-  * Size of the validation map hashmap.
-@@ -745,9 +745,9 @@
- void
- GST_validation_start (unsigned int max_fds)
- {
--	validation_next = GNUNET_TIME_absolute_get();
--	validation_delay.rel_value = (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value) /  max_fds;
--	GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Delay between validations: %u ms\n ", validation_delay.rel_value);
-+  validation_next = GNUNET_TIME_absolute_get();
-+  validation_delay.rel_value = GNUNET_TIME_UNIT_MILLISECONDS.rel_value;
-+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Delay between validations: %u ms\n ", validation_delay.rel_value);
-   validation_map = GNUNET_CONTAINER_multihashmap_create (VALIDATION_MAP_SIZE,
- 							 GNUNET_NO);
-   pnc = GNUNET_PEERINFO_notify (GST_cfg, &process_peerinfo_hello, NULL);

+ 0 - 9
contrib/testbed_setup_pre_ecc_tree.sh

@@ -1,9 +0,0 @@
-#!/bin/sh
-
-svn up -r26032 
-svn up -r26167 src/nse/
-svn up -r26079 src/include/gnunet_helper_lib.h src/util/helper.c
-svn up -r26219 src/include/gnunet_protocols.h
-svn up src/include/gnunet_testbed_service.h src/testbed/ src/regex/ src/dht/
-svn up contrib
-svn up configure.ac

+ 0 - 77
contrib/transpot_delay.patch

@@ -1,77 +0,0 @@
-Index: src/transport/gnunet-service-transport_neighbours.c
-===================================================================
---- src/transport/gnunet-service-transport_neighbours.c	(revision 27335)
-+++ src/transport/gnunet-service-transport_neighbours.c	(working copy)
-@@ -65,7 +65,7 @@
-  * send 3 keepalives in each interval, so 3 messages would need to be
-  * lost in a row for a disconnect).
-  */
--#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
-+#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 100)
- 
- /**
-  * How long are we willing to wait for a response from ATS before timing out?
-Index: src/transport/gnunet-service-transport_validation.c
-===================================================================
---- src/transport/gnunet-service-transport_validation.c	(revision 27335)
-+++ src/transport/gnunet-service-transport_validation.c	(working copy)
-@@ -42,7 +42,7 @@
-  * OTOH, we don't want to spend too much time generating PONG signatures,
-  * so they must have some lifetime to reduce our CPU usage.
-  */
--#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 1)
-+#define PONG_SIGNATURE_LIFETIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 12)
- 
- /**
-  * After how long do we expire an address in a HELLO that we just
-@@ -57,24 +57,24 @@
-  * we cannot validate (because after this time we can destroy the
-  * validation record).
-  */
--#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
-+#define UNVALIDATED_PING_KEEPALIVE GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 4)
- 
- /**
-  * How often do we PING an address that we have successfully validated
-  * in the past but are not actively using?  Should be (significantly)
-  * smaller than HELLO_ADDRESS_EXPIRATION.
-  */
--#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
-+#define VALIDATED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 6)
- 
- /**
-  * How often do we PING an address that we are currently using?
-  */
--#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 2)
-+#define CONNECTED_PING_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 2)
- 
- /**
-  * How much delay is acceptable for sending the PING or PONG?
-  */
--#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
-+#define ACCEPTABLE_PING_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1)
- 
- /**
-  * Size of the validation map hashmap.
-Index: src/include/gnunet_constants.h
-===================================================================
---- src/include/gnunet_constants.h	(revision 27335)
-+++ src/include/gnunet_constants.h	(working copy)
-@@ -49,7 +49,7 @@
-  * After how long do we consider a connection to a peer dead
-  * if we don't receive messages from the peer?
-  */
--#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5)
-+#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 5)
- 
- /**
-  * How long do we delay reading more from a peer after a quota violation?
-@@ -61,7 +61,7 @@
-  * even if we assume that the service commonly does not
-  * respond instantly (DNS, Database, etc.).
-  */
--#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10)
-+#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 10)
- 
- /**
-  * How long do we delay messages to get larger packet sizes (CORKing)?

+ 0 - 0
contrib/log.php → contrib/web/log.php


+ 1 - 1
doc/Makefile.am

@@ -7,4 +7,4 @@ if !DOCUMENTATION
 endif
 
 EXTRA_DIST =							\
-	outdated-and-old-installation-instructions.txt		
+	outdated-and-old-installation-instructions.txt

+ 0 - 2
guix-env.scm

@@ -134,8 +134,6 @@
          (modify-phases %standard-phases
            (add-after 'unpack 'patch-bin-sh
              (lambda _
-               (substitute* "bootstrap"
-                 (("contrib/pogen.sh") "sh contrib/pogen.sh"))
                (for-each (lambda (f) (chmod f #o755))
                          (find-files "po" ""))
                #t))