aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-06-14 18:46:06 +0000
committerNils Gillmann <ng0@n0.is>2018-06-14 18:46:06 +0000
commit2bc8eb9778631235aa868a2f9766e62c602fa0ce (patch)
treed1204c018365b70a5a6f68b598ee98327ef605c8
parent07edbcab2e3915e8898680d38596537c128b10dc (diff)
parent8602fa51ea946d552a3c6e18e6c4a92caefee34e (diff)
downloadgnunet-2bc8eb9778631235aa868a2f9766e62c602fa0ce.tar.gz
gnunet-2bc8eb9778631235aa868a2f9766e62c602fa0ce.zip
Merge branch 'master' of gnunet.org:gnunet
-rw-r--r--contrib/Makefile.am2
-rw-r--r--contrib/ci/docker/Dockerfile59
-rw-r--r--po/POTFILES.in1
-rw-r--r--src/curl/curl.c19
-rw-r--r--src/include/gnunet_curl_lib.h11
5 files changed, 48 insertions, 44 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 27b1d01bc..1e348233d 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -125,7 +125,7 @@ install-data-local:
125 $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \ 125 $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
126 fi \ 126 fi \
127 done 127 done
128 install scripts/gnunet-bugreport $(bindir)/gnunet-bugreport 128 install scripts/gnunet-bugreport $(DESTDIR)$(bindir)/gnunet-bugreport
129 129
130dist-hook: 130dist-hook:
131 if test -d $(srcdir)/hellos; then \ 131 if test -d $(srcdir)/hellos; then \
diff --git a/contrib/ci/docker/Dockerfile b/contrib/ci/docker/Dockerfile
index 974e41a5e..42c64eaf3 100644
--- a/contrib/ci/docker/Dockerfile
+++ b/contrib/ci/docker/Dockerfile
@@ -1,57 +1,32 @@
1from fedora:26 1FROM ubuntu:18.04
2 2
3# Install the required build tools 3# Install the required build tools
4RUN dnf -y update && dnf -y install which git automake texinfo gettext-devel autoconf libtool libtool-ltdl-devel libidn-devel libunistring-devel glpk libextractor-devel libmicrohttpd-devel gnutls libgcrypt-devel jansson-devel sqlite-devel npm 4RUN apt update && apt install -y apt git autopoint automake texinfo gettext autoconf libtool libidn11-dev libunistring-dev gnutls-dev libgcrypt20 libgcrypt20-dev libjansson-dev libsqlite3-dev wget flex bison libglib2.0-dev libgmp3-dev libmicrohttpd-dev libglpk-dev libextractor-dev
5 5
6# Install gnurl from source at version gnurl-7.54.0
6WORKDIR /usr/src 7WORKDIR /usr/src
8RUN git clone https://git.taler.net/gnurl.git --branch gnurl-7.57.0
9RUN cd /usr/src/gnurl && autoreconf -i && ./configure --prefix=/usr --disable-ntlm-wb && make install
7 10
8# Install gnurl 11# Install libpbc
9RUN wget https://ftp.gnu.org/gnu/gnunet/gnurl-7.59.0.tar.gz
10RUN tar xvzpf gnurl-7.59.0.tar.gz
11WORKDIR /usr/src/gnurl-7.59.0
12RUN autoreconf -i
13RUN ./configure --disable-ntlm-wb
14RUN make install
15WORKDIR /usr/src 12WORKDIR /usr/src
13RUN wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz && tar xvzpf pbc-0.5.14.tar.gz && cd /usr/src/pbc-0.5.14 && ./configure --prefix=/usr && make install
16 14
17RUN dnf -y install wget flex bison 15# Install libbswabe
18
19# Install libpbc
20RUN wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
21RUN tar xvzpf pbc-0.5.14.tar.gz
22WORKDIR /usr/src/pbc-0.5.14
23RUN ./configure --prefix=/usr
24RUN make install
25WORKDIR /usr/src 16WORKDIR /usr/src
17RUN git clone https://github.com/schanzen/libgabe.git && cd /usr/src/libgabe && ./configure --prefix=/usr && make install
26 18
27RUN dnf -y install glib2-devel 19WORKDIR /usr/src
20RUN git clone git://gnunet.org/gnunet.git
21RUN cd /usr/src/gnunet && ./bootstrap && ./configure --enable-experimental --prefix=/usr && make && make install
28 22
29# Install libbswabe 23RUN addgroup gnunetdns && addgroup gnunet && adduser --system --home /var/lib/gnunet gnunet
30RUN git clone https://github.com/schanzen/libgabe.git
31WORKDIR /usr/src/libgabe
32RUN ./configure --prefix=/usr
33RUN make install
34
35# Install WebUI
36WORKDIR /usr/src/
37RUN git clone https://github.com/schanzen/gnunet-webui.git
38WORKDIR /usr/src/gnunet-webui
39RUN git checkout gnuidentity
40
41RUN mkdir /usr/src/gnunet
42WORKDIR /usr/src/gnunet
43ADD . .
44ARG NUM_JOBS
45RUN ./bootstrap
46RUN ./configure --prefix=/usr/local
47RUN make -j$NUM_JOBS
48RUN make install
49
50RUN groupadd gnunetdns
51RUN adduser -S -m -h /var/lib/gnunet gnunet
52RUN chown gnunet:gnunet /var/lib/gnunet 24RUN chown gnunet:gnunet /var/lib/gnunet
53RUN echo '[arm]\nSYSTEM_ONLY = YES\nUSER_ONLY = NO\n' > /etc/gnunet.conf 25RUN echo '[arm]\nSYSTEM_ONLY = YES\nUSER_ONLY = NO\n' > /etc/gnunet.conf
54 26
55ADD docker-entrypoint.sh . 27ADD docker-entrypoint.sh .
56 28
57CMD ["sh", "docker-entrypoint.sh"] 29RUN rm -rf /usr/src/*
30#RUN apt remove gcc
31
32CMD ["sh", "docker-entrypoint.sh"]
diff --git a/po/POTFILES.in b/po/POTFILES.in
index dd9966302..28f51f366 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -460,7 +460,6 @@ src/util/container_multihashmap.c
460src/util/container_multipeermap.c 460src/util/container_multipeermap.c
461src/util/container_multishortmap.c 461src/util/container_multishortmap.c
462src/util/crypto_abe.c 462src/util/crypto_abe.c
463src/util/crypto_bug.c
464src/util/crypto_crc.c 463src/util/crypto_crc.c
465src/util/crypto_ecc.c 464src/util/crypto_ecc.c
466src/util/crypto_ecc_dlog.c 465src/util/crypto_ecc_dlog.c
diff --git a/src/curl/curl.c b/src/curl/curl.c
index 2d0b09d92..cdd39ab8e 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -448,6 +448,25 @@ download_get_result (struct DownloadBuffer *db,
448 448
449 449
450/** 450/**
451 * Add custom request header.
452 *
453 * @param ctx cURL context.
454 * @param header header string; will be given to the context AS IS.
455 * @return #GNUNET_OK if no errors occurred, #GNUNET_SYSERR otherwise.
456 */
457int
458GNUNET_CURL_append_header (struct GNUNET_CURL_Context *ctx,
459 const char *header)
460{
461 ctx->json_header = curl_slist_append (ctx->json_header,
462 header);
463 if (NULL == ctx->json_header)
464 return GNUNET_SYSERR;
465
466 return GNUNET_OK;
467}
468
469/**
451 * Run the main event loop for the Taler interaction. 470 * Run the main event loop for the Taler interaction.
452 * 471 *
453 * @param ctx the library context 472 * @param ctx the library context
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h
index 17e9aeea4..2b2442a52 100644
--- a/src/include/gnunet_curl_lib.h
+++ b/src/include/gnunet_curl_lib.h
@@ -99,6 +99,17 @@ GNUNET_CURL_get_select_info (struct GNUNET_CURL_Context *ctx,
99 99
100 100
101/** 101/**
102 * Add custom request header.
103 *
104 * @param ctx cURL context.
105 * @param header header string; will be given to the context AS IS.
106 * @return #GNUNET_OK if no errors occurred, #GNUNET_SYSERR otherwise.
107 */
108int
109GNUNET_CURL_append_header (struct GNUNET_CURL_Context *ctx,
110 const char *header);
111
112/**
102 * Run the main event loop for the CURL interaction. 113 * Run the main event loop for the CURL interaction.
103 * 114 *
104 * @param ctx the library context 115 * @param ctx the library context