diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-21 12:35:36 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-21 12:35:36 +0000 |
commit | aa24a07a4e5411a2e3e9dc4158232b92b7e90927 (patch) | |
tree | 3b8aa07a12d6e129e5bfd7bd0ab6d47299325371 /src | |
parent | 2bbb26257965091c6909c0b33fc10cb24a014003 (diff) | |
download | gnunet-aa24a07a4e5411a2e3e9dc4158232b92b7e90927.tar.gz gnunet-aa24a07a4e5411a2e3e9dc4158232b92b7e90927.zip |
adding experimentation daemon
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/experimentation/Makefile | 712 | ||||
-rw-r--r-- | src/experimentation/Makefile.am | 27 | ||||
-rw-r--r-- | src/experimentation/experimentation.conf.in | 11 | ||||
-rw-r--r-- | src/experimentation/gnunet-daemon-experimentation.c | 82 |
5 files changed, 833 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index ab51ee178..0d056100e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -3,7 +3,7 @@ | |||
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | if HAVE_EXPERIMENTAL | 5 | if HAVE_EXPERIMENTAL |
6 | EXP_DIR = gns chat consensus dv set | 6 | EXP_DIR = gns chat consensus dv set experimentation |
7 | endif | 7 | endif |
8 | 8 | ||
9 | if LINUX | 9 | if LINUX |
diff --git a/src/experimentation/Makefile b/src/experimentation/Makefile new file mode 100644 index 000000000..8c0aed92a --- /dev/null +++ b/src/experimentation/Makefile | |||
@@ -0,0 +1,712 @@ | |||
1 | # Makefile.in generated by automake 1.11.3 from Makefile.am. | ||
2 | # src/experimentation/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | ||
6 | # Foundation, Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
20 | pkgdatadir = $(datadir)/gnunet | ||
21 | pkgincludedir = $(includedir)/gnunet | ||
22 | pkglibdir = $(libdir)/gnunet | ||
23 | pkglibexecdir = $(libexecdir)/gnunet | ||
24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | install_sh_PROGRAM = $(install_sh) -c | ||
27 | install_sh_SCRIPT = $(install_sh) -c | ||
28 | INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | transform = $(program_transform_name) | ||
30 | NORMAL_INSTALL = : | ||
31 | PRE_INSTALL = : | ||
32 | POST_INSTALL = : | ||
33 | NORMAL_UNINSTALL = : | ||
34 | PRE_UNINSTALL = : | ||
35 | POST_UNINSTALL = : | ||
36 | build_triplet = x86_64-unknown-linux-gnu | ||
37 | host_triplet = x86_64-unknown-linux-gnu | ||
38 | target_triplet = x86_64-unknown-linux-gnu | ||
39 | libexec_PROGRAMS = gnunet-daemon-experimentation$(EXEEXT) | ||
40 | subdir = src/experimentation | ||
41 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ | ||
42 | $(srcdir)/experimentation.conf.in | ||
43 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
44 | am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \ | ||
45 | $(top_srcdir)/m4/align.m4 $(top_srcdir)/m4/argz.m4 \ | ||
46 | $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glib-2.0.m4 \ | ||
47 | $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ | ||
48 | $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ | ||
49 | $(top_srcdir)/m4/libcurl.m4 $(top_srcdir)/m4/libgcrypt.m4 \ | ||
50 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libunistring.m4 \ | ||
51 | $(top_srcdir)/m4/ltdl.m4 $(top_srcdir)/m4/ltoptions.m4 \ | ||
52 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | ||
53 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ | ||
54 | $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ | ||
55 | $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac | ||
56 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
57 | $(ACLOCAL_M4) | ||
58 | mkinstalldirs = $(install_sh) -d | ||
59 | CONFIG_HEADER = $(top_builddir)/gnunet_config.h | ||
60 | CONFIG_CLEAN_FILES = experimentation.conf | ||
61 | CONFIG_CLEAN_VPATH_FILES = | ||
62 | am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(pkgcfgdir)" | ||
63 | PROGRAMS = $(libexec_PROGRAMS) | ||
64 | am_gnunet_daemon_experimentation_OBJECTS = \ | ||
65 | gnunet-daemon-experimentation.$(OBJEXT) | ||
66 | gnunet_daemon_experimentation_OBJECTS = \ | ||
67 | $(am_gnunet_daemon_experimentation_OBJECTS) | ||
68 | gnunet_daemon_experimentation_DEPENDENCIES = \ | ||
69 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
70 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
71 | $(top_builddir)/src/util/libgnunetutil.la | ||
72 | AM_V_lt = $(am__v_lt_$(V)) | ||
73 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
74 | am__v_lt_0 = --silent | ||
75 | DEFAULT_INCLUDES = -I. -I$(top_builddir) | ||
76 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
77 | am__depfiles_maybe = depfiles | ||
78 | am__mv = mv -f | ||
79 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
80 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
81 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
82 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
83 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
84 | $(AM_CFLAGS) $(CFLAGS) | ||
85 | AM_V_CC = $(am__v_CC_$(V)) | ||
86 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
87 | am__v_CC_0 = @echo " CC " $@; | ||
88 | AM_V_at = $(am__v_at_$(V)) | ||
89 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
90 | am__v_at_0 = @ | ||
91 | CCLD = $(CC) | ||
92 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
93 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
94 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
95 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
96 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
97 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
98 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
99 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
100 | am__v_GEN_0 = @echo " GEN " $@; | ||
101 | SOURCES = $(gnunet_daemon_experimentation_SOURCES) | ||
102 | DIST_SOURCES = $(gnunet_daemon_experimentation_SOURCES) | ||
103 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
104 | am__vpath_adj = case $$p in \ | ||
105 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
106 | *) f=$$p;; \ | ||
107 | esac; | ||
108 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
109 | am__install_max = 40 | ||
110 | am__nobase_strip_setup = \ | ||
111 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
112 | am__nobase_strip = \ | ||
113 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
114 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
115 | for p in $$list; do echo "$$p $$p"; done | \ | ||
116 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
117 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
118 | if (++n[$$2] == $(am__install_max)) \ | ||
119 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
120 | END { for (dir in files) print dir, files[dir] }' | ||
121 | am__base_list = \ | ||
122 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
123 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
124 | am__uninstall_files_from_dir = { \ | ||
125 | test -z "$$files" \ | ||
126 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | ||
127 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | ||
128 | $(am__cd) "$$dir" && rm -f $$files; }; \ | ||
129 | } | ||
130 | DATA = $(pkgcfg_DATA) | ||
131 | ETAGS = etags | ||
132 | CTAGS = ctags | ||
133 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
134 | ACLOCAL = ${SHELL} /home/mwachs/gnunet/gnunet-debug/missing --run aclocal-1.11 | ||
135 | AMTAR = $${TAR-tar} | ||
136 | AM_DEFAULT_VERBOSITY = 0 | ||
137 | AR = ar | ||
138 | ARGZ_H = | ||
139 | AS = as | ||
140 | AUTOCONF = ${SHELL} /home/mwachs/gnunet/gnunet-debug/missing --run autoconf | ||
141 | AUTOHEADER = ${SHELL} /home/mwachs/gnunet/gnunet-debug/missing --run autoheader | ||
142 | AUTOMAKE = ${SHELL} /home/mwachs/gnunet/gnunet-debug/missing --run automake-1.11 | ||
143 | AWK = gawk | ||
144 | CC = gcc | ||
145 | CCDEPMODE = depmode=gcc3 | ||
146 | CFLAGS = -fno-strict-aliasing -Wall -Wall -g -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
147 | CPP = gcc -E | ||
148 | CPPFLAGS = | ||
149 | CXX = g++ | ||
150 | CXXCPP = g++ -E | ||
151 | CXXDEPMODE = depmode=gcc3 | ||
152 | CXXFLAGS = -g -O2 | ||
153 | CYGPATH_W = echo | ||
154 | DEFAULT_INTERFACE = "eth0" | ||
155 | DEFS = -DHAVE_CONFIG_H | ||
156 | DEPDIR = .deps | ||
157 | DLLDIR = lib | ||
158 | DLLTOOL = false | ||
159 | DSYMUTIL = | ||
160 | DUMPBIN = | ||
161 | ECHO_C = | ||
162 | ECHO_N = -n | ||
163 | ECHO_T = | ||
164 | EGREP = /bin/grep -E | ||
165 | EXEEXT = | ||
166 | EXT_LIBS = | ||
167 | EXT_LIB_PATH = | ||
168 | FGREP = /bin/grep -F | ||
169 | GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
170 | GLIB_GENMARSHAL = glib-genmarshal | ||
171 | GLIB_LIBS = -lglib-2.0 | ||
172 | GLIB_MKENUMS = glib-mkenums | ||
173 | GMSGFMT = /usr/bin/msgfmt | ||
174 | GMSGFMT_015 = /usr/bin/msgfmt | ||
175 | GNUNETDNS_GROUP = gnunetdns | ||
176 | GN_DAEMON_CONFIG_DIR = /etc | ||
177 | GN_DAEMON_HOME_DIR = /var/lib/gnunet | ||
178 | GN_INTLINCL = | ||
179 | GN_LIBINTL = | ||
180 | GN_LIB_LDFLAGS = -export-dynamic -no-undefined | ||
181 | GN_PLUGIN_LDFLAGS = -export-dynamic -avoid-version -module -no-undefined | ||
182 | GN_USER_HOME_DIR = ~/.gnunet | ||
183 | GOBJECT_QUERY = gobject-query | ||
184 | GREP = /bin/grep | ||
185 | HAVE_LIBUNISTRING = yes | ||
186 | INCLTDL = | ||
187 | INSTALL = /usr/bin/install -c | ||
188 | INSTALL_DATA = ${INSTALL} -m 644 | ||
189 | INSTALL_PROGRAM = ${INSTALL} | ||
190 | INSTALL_SCRIPT = ${INSTALL} | ||
191 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s | ||
192 | INTLLIBS = | ||
193 | INTL_MACOSX_LIBS = | ||
194 | JAVAPORT = # | ||
195 | LD = /usr/bin/ld -m elf_x86_64 | ||
196 | LDFLAGS = | ||
197 | LIBADD_DL = -ldl | ||
198 | LIBADD_DLD_LINK = | ||
199 | LIBADD_DLOPEN = -ldl | ||
200 | LIBADD_SHL_LOAD = | ||
201 | LIBCURL = -L/usr/lib/x86_64-linux-gnu -lcurl -Wl,-Bsymbolic-functions -Wl,-z,relro | ||
202 | LIBCURL_CPPFLAGS = | ||
203 | LIBGCRYPT_CFLAGS = -I/usr/local/include | ||
204 | LIBGCRYPT_CONFIG = /usr/local/bin/libgcrypt-config | ||
205 | LIBGCRYPT_LIBS = -L/usr/local/lib -lgcrypt -lgpg-error | ||
206 | LIBICONV = | ||
207 | LIBINTL = | ||
208 | LIBLTDL = -lltdl | ||
209 | LIBOBJS = | ||
210 | LIBPREFIX = | ||
211 | LIBS = -lm -ldl | ||
212 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | ||
213 | LIBUNISTRING = -lunistring | ||
214 | LIPO = | ||
215 | LN_S = ln -s | ||
216 | LTDLDEPS = | ||
217 | LTDLINCL = | ||
218 | LTDLOPEN = libltdl | ||
219 | LTLIBICONV = | ||
220 | LTLIBINTL = | ||
221 | LTLIBOBJS = | ||
222 | LTLIBUNISTRING = -lunistring | ||
223 | LT_CONFIG_H = gnunet_config.h | ||
224 | LT_DLLOADERS = libltdl/dlopen.la | ||
225 | LT_DLPREOPEN = -dlpreopen libltdl/dlopen.la | ||
226 | MAKEINFO = ${SHELL} /home/mwachs/gnunet/gnunet-debug/missing --run makeinfo | ||
227 | MANIFEST_TOOL = : | ||
228 | MKDIR_P = /bin/mkdir -p | ||
229 | MONKEYPREFIX = | ||
230 | MSGFMT = /usr/bin/msgfmt | ||
231 | MSGFMT_015 = /usr/bin/msgfmt | ||
232 | MSGMERGE = /usr/bin/msgmerge | ||
233 | MYSQL_CPPFLAGS = | ||
234 | MYSQL_LDFLAGS = | ||
235 | NM = /usr/bin/nm -B | ||
236 | NMEDIT = | ||
237 | NSS_DIR = | ||
238 | OBJC = gcc | ||
239 | OBJCDEPMODE = depmode=gcc3 | ||
240 | OBJCFLAGS = | ||
241 | OBJDUMP = objdump | ||
242 | OBJEXT = o | ||
243 | OTOOL = | ||
244 | OTOOL64 = | ||
245 | PACKAGE = gnunet | ||
246 | PACKAGE_BUGREPORT = bug-gnunet@gnu.org | ||
247 | PACKAGE_NAME = gnunet | ||
248 | PACKAGE_STRING = gnunet 0.9.5a | ||
249 | PACKAGE_TARNAME = gnunet | ||
250 | PACKAGE_URL = | ||
251 | PACKAGE_VERSION = 0.9.5a | ||
252 | PATH_SEPARATOR = : | ||
253 | PKG_CONFIG = /usr/bin/pkg-config | ||
254 | POSTGRES_CPPFLAGS = | ||
255 | POSTGRES_LDFLAGS = | ||
256 | POSUB = po | ||
257 | PYTHON = /usr/bin/python | ||
258 | PYTHON_EXEC_PREFIX = ${exec_prefix} | ||
259 | PYTHON_PLATFORM = linux2 | ||
260 | PYTHON_PREFIX = ${prefix} | ||
261 | PYTHON_VERSION = 2.7 | ||
262 | RANLIB = ranlib | ||
263 | SED = /bin/sed | ||
264 | SET_MAKE = | ||
265 | SHELL = /bin/bash | ||
266 | SQLITE_CPPFLAGS = | ||
267 | SQLITE_LDFLAGS = | ||
268 | STRIP = strip | ||
269 | SUDO_BINARY = | ||
270 | UNIXONLY = # | ||
271 | USE_NLS = yes | ||
272 | VERSION = 0.9.5a | ||
273 | XGETTEXT = /usr/bin/xgettext | ||
274 | XGETTEXT_015 = /usr/bin/xgettext | ||
275 | XMKMF = | ||
276 | X_CFLAGS = | ||
277 | X_EXTRA_LIBS = | ||
278 | X_LIBS = | ||
279 | X_PRE_LIBS = -lSM -lICE | ||
280 | _libcurl_config = | ||
281 | abs_builddir = /home/mwachs/gnunet/gnunet-debug/src/experimentation | ||
282 | abs_srcdir = /home/mwachs/gnunet/gnunet-debug/src/experimentation | ||
283 | abs_top_builddir = /home/mwachs/gnunet/gnunet-debug | ||
284 | abs_top_srcdir = /home/mwachs/gnunet/gnunet-debug | ||
285 | ac_ct_AR = ar | ||
286 | ac_ct_CC = gcc | ||
287 | ac_ct_CXX = g++ | ||
288 | ac_ct_DUMPBIN = | ||
289 | ac_ct_OBJC = gcc | ||
290 | am__include = include | ||
291 | am__leading_dot = . | ||
292 | am__quote = | ||
293 | am__tar = $${TAR-tar} chof - "$$tardir" | ||
294 | am__untar = $${TAR-tar} xf - | ||
295 | bindir = ${exec_prefix}/bin | ||
296 | build = x86_64-unknown-linux-gnu | ||
297 | build_alias = | ||
298 | build_cpu = x86_64 | ||
299 | build_os = linux-gnu | ||
300 | build_target = linux | ||
301 | build_vendor = unknown | ||
302 | builddir = . | ||
303 | datadir = ${datarootdir} | ||
304 | datarootdir = ${prefix}/share | ||
305 | docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} | ||
306 | dvidir = ${docdir} | ||
307 | exec_prefix = ${prefix} | ||
308 | gitcommand = /usr/bin/git | ||
309 | host = x86_64-unknown-linux-gnu | ||
310 | host_alias = | ||
311 | host_cpu = x86_64 | ||
312 | host_os = linux-gnu | ||
313 | host_vendor = unknown | ||
314 | htmldir = ${docdir} | ||
315 | includedir = ${prefix}/include | ||
316 | infodir = ${datarootdir}/info | ||
317 | install_sh = ${SHELL} /home/mwachs/gnunet/gnunet-debug/install-sh | ||
318 | libdir = ${exec_prefix}/lib | ||
319 | libexecdir = $(pkglibdir)/libexec/ | ||
320 | localedir = ${datarootdir}/locale | ||
321 | localstatedir = ${prefix}/var | ||
322 | ltdl_LIBOBJS = lt__strl.o | ||
323 | ltdl_LTLIBOBJS = lt__strl.lo | ||
324 | mandir = ${datarootdir}/man | ||
325 | mkdir_p = /bin/mkdir -p | ||
326 | oldincludedir = /usr/include | ||
327 | pdfdir = ${docdir} | ||
328 | pkgpyexecdir = ${pyexecdir}/gnunet | ||
329 | pkgpythondir = ${pythondir}/gnunet | ||
330 | prefix = /home/mwachs/gnunet/gnb-debug | ||
331 | program_transform_name = s,x,x, | ||
332 | psdir = ${docdir} | ||
333 | pyexecdir = ${exec_prefix}/lib/python2.7/site-packages | ||
334 | pythondir = ${prefix}/lib/python2.7/site-packages | ||
335 | sbindir = ${exec_prefix}/sbin | ||
336 | sharedstatedir = ${prefix}/com | ||
337 | srcdir = . | ||
338 | subdirs = libltdl | ||
339 | svnversioncommand = /usr/bin/svnversion | ||
340 | sys_symbol_underscore = no | ||
341 | sysconfdir = ${prefix}/etc | ||
342 | target = x86_64-unknown-linux-gnu | ||
343 | target_alias = | ||
344 | target_cpu = x86_64 | ||
345 | target_os = linux-gnu | ||
346 | target_vendor = unknown | ||
347 | top_build_prefix = ../../ | ||
348 | top_builddir = ../.. | ||
349 | top_srcdir = ../.. | ||
350 | INCLUDES = -I$(top_srcdir)/src/include | ||
351 | pkgcfgdir = $(pkgdatadir)/config.d/ | ||
352 | pkgcfg_DATA = \ | ||
353 | experimentation.conf | ||
354 | |||
355 | #WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32 | ||
356 | #AM_CFLAGS = --coverage -O0 | ||
357 | #XLIB = -lgcov | ||
358 | gnunet_daemon_experimentation_SOURCES = \ | ||
359 | gnunet-daemon-experimentation.c | ||
360 | |||
361 | gnunet_daemon_experimentation_LDADD = \ | ||
362 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
363 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
364 | $(top_builddir)/src/util/libgnunetutil.la | ||
365 | |||
366 | all: all-am | ||
367 | |||
368 | .SUFFIXES: | ||
369 | .SUFFIXES: .c .lo .o .obj | ||
370 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
371 | @for dep in $?; do \ | ||
372 | case '$(am__configure_deps)' in \ | ||
373 | *$$dep*) \ | ||
374 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
375 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
376 | exit 1;; \ | ||
377 | esac; \ | ||
378 | done; \ | ||
379 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/experimentation/Makefile'; \ | ||
380 | $(am__cd) $(top_srcdir) && \ | ||
381 | $(AUTOMAKE) --gnu src/experimentation/Makefile | ||
382 | .PRECIOUS: Makefile | ||
383 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
384 | @case '$?' in \ | ||
385 | *config.status*) \ | ||
386 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
387 | *) \ | ||
388 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
389 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
390 | esac; | ||
391 | |||
392 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
393 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
394 | |||
395 | $(top_srcdir)/configure: $(am__configure_deps) | ||
396 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
397 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
398 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
399 | $(am__aclocal_m4_deps): | ||
400 | experimentation.conf: $(top_builddir)/config.status $(srcdir)/experimentation.conf.in | ||
401 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ | ||
402 | install-libexecPROGRAMS: $(libexec_PROGRAMS) | ||
403 | @$(NORMAL_INSTALL) | ||
404 | test -z "$(libexecdir)" || $(MKDIR_P) "$(DESTDIR)$(libexecdir)" | ||
405 | @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \ | ||
406 | for p in $$list; do echo "$$p $$p"; done | \ | ||
407 | sed 's/$(EXEEXT)$$//' | \ | ||
408 | while read p p1; do if test -f $$p || test -f $$p1; \ | ||
409 | then echo "$$p"; echo "$$p"; else :; fi; \ | ||
410 | done | \ | ||
411 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | ||
412 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | ||
413 | sed 'N;N;N;s,\n, ,g' | \ | ||
414 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | ||
415 | { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | ||
416 | if ($$2 == $$4) files[d] = files[d] " " $$1; \ | ||
417 | else { print "f", $$3 "/" $$4, $$1; } } \ | ||
418 | END { for (d in files) print "f", d, files[d] }' | \ | ||
419 | while read type dir files; do \ | ||
420 | if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | ||
421 | test -z "$$files" || { \ | ||
422 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ | ||
423 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ | ||
424 | } \ | ||
425 | ; done | ||
426 | |||
427 | uninstall-libexecPROGRAMS: | ||
428 | @$(NORMAL_UNINSTALL) | ||
429 | @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \ | ||
430 | files=`for p in $$list; do echo "$$p"; done | \ | ||
431 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | ||
432 | -e 's/$$/$(EXEEXT)/' `; \ | ||
433 | test -n "$$list" || exit 0; \ | ||
434 | echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \ | ||
435 | cd "$(DESTDIR)$(libexecdir)" && rm -f $$files | ||
436 | |||
437 | clean-libexecPROGRAMS: | ||
438 | @list='$(libexec_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
439 | echo " rm -f" $$list; \ | ||
440 | rm -f $$list || exit $$?; \ | ||
441 | test -n "$(EXEEXT)" || exit 0; \ | ||
442 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
443 | echo " rm -f" $$list; \ | ||
444 | rm -f $$list | ||
445 | gnunet-daemon-experimentation$(EXEEXT): $(gnunet_daemon_experimentation_OBJECTS) $(gnunet_daemon_experimentation_DEPENDENCIES) $(EXTRA_gnunet_daemon_experimentation_DEPENDENCIES) | ||
446 | @rm -f gnunet-daemon-experimentation$(EXEEXT) | ||
447 | $(AM_V_CCLD)$(LINK) $(gnunet_daemon_experimentation_OBJECTS) $(gnunet_daemon_experimentation_LDADD) $(LIBS) | ||
448 | |||
449 | mostlyclean-compile: | ||
450 | -rm -f *.$(OBJEXT) | ||
451 | |||
452 | distclean-compile: | ||
453 | -rm -f *.tab.c | ||
454 | |||
455 | include ./$(DEPDIR)/gnunet-daemon-experimentation.Po | ||
456 | |||
457 | .c.o: | ||
458 | $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
459 | $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
460 | # $(AM_V_CC)source='$<' object='$@' libtool=no \ | ||
461 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
462 | # $(AM_V_CC_no)$(COMPILE) -c $< | ||
463 | |||
464 | .c.obj: | ||
465 | $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
466 | $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
467 | # $(AM_V_CC)source='$<' object='$@' libtool=no \ | ||
468 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
469 | # $(AM_V_CC_no)$(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
470 | |||
471 | .c.lo: | ||
472 | $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
473 | $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
474 | # $(AM_V_CC)source='$<' object='$@' libtool=yes \ | ||
475 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
476 | # $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< | ||
477 | |||
478 | mostlyclean-libtool: | ||
479 | -rm -f *.lo | ||
480 | |||
481 | clean-libtool: | ||
482 | -rm -rf .libs _libs | ||
483 | install-pkgcfgDATA: $(pkgcfg_DATA) | ||
484 | @$(NORMAL_INSTALL) | ||
485 | test -z "$(pkgcfgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgcfgdir)" | ||
486 | @list='$(pkgcfg_DATA)'; test -n "$(pkgcfgdir)" || list=; \ | ||
487 | for p in $$list; do \ | ||
488 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
489 | echo "$$d$$p"; \ | ||
490 | done | $(am__base_list) | \ | ||
491 | while read files; do \ | ||
492 | echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgcfgdir)'"; \ | ||
493 | $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgcfgdir)" || exit $$?; \ | ||
494 | done | ||
495 | |||
496 | uninstall-pkgcfgDATA: | ||
497 | @$(NORMAL_UNINSTALL) | ||
498 | @list='$(pkgcfg_DATA)'; test -n "$(pkgcfgdir)" || list=; \ | ||
499 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
500 | dir='$(DESTDIR)$(pkgcfgdir)'; $(am__uninstall_files_from_dir) | ||
501 | |||
502 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
503 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
504 | unique=`for i in $$list; do \ | ||
505 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
506 | done | \ | ||
507 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
508 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
509 | mkid -fID $$unique | ||
510 | tags: TAGS | ||
511 | |||
512 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
513 | $(TAGS_FILES) $(LISP) | ||
514 | set x; \ | ||
515 | here=`pwd`; \ | ||
516 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
517 | unique=`for i in $$list; do \ | ||
518 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
519 | done | \ | ||
520 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
521 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
522 | shift; \ | ||
523 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
524 | test -n "$$unique" || unique=$$empty_fix; \ | ||
525 | if test $$# -gt 0; then \ | ||
526 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
527 | "$$@" $$unique; \ | ||
528 | else \ | ||
529 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
530 | $$unique; \ | ||
531 | fi; \ | ||
532 | fi | ||
533 | ctags: CTAGS | ||
534 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
535 | $(TAGS_FILES) $(LISP) | ||
536 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
537 | unique=`for i in $$list; do \ | ||
538 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
539 | done | \ | ||
540 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
541 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
542 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
543 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
544 | $$unique | ||
545 | |||
546 | GTAGS: | ||
547 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
548 | && $(am__cd) $(top_srcdir) \ | ||
549 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
550 | |||
551 | distclean-tags: | ||
552 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
553 | |||
554 | distdir: $(DISTFILES) | ||
555 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
556 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
557 | list='$(DISTFILES)'; \ | ||
558 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
559 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
560 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
561 | case $$dist_files in \ | ||
562 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
563 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
564 | sort -u` ;; \ | ||
565 | esac; \ | ||
566 | for file in $$dist_files; do \ | ||
567 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
568 | if test -d $$d/$$file; then \ | ||
569 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
570 | if test -d "$(distdir)/$$file"; then \ | ||
571 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
572 | fi; \ | ||
573 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
574 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
575 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
576 | fi; \ | ||
577 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
578 | else \ | ||
579 | test -f "$(distdir)/$$file" \ | ||
580 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
581 | || exit 1; \ | ||
582 | fi; \ | ||
583 | done | ||
584 | check-am: all-am | ||
585 | check: check-am | ||
586 | all-am: Makefile $(PROGRAMS) $(DATA) | ||
587 | installdirs: | ||
588 | for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(pkgcfgdir)"; do \ | ||
589 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
590 | done | ||
591 | install: install-am | ||
592 | install-exec: install-exec-am | ||
593 | install-data: install-data-am | ||
594 | uninstall: uninstall-am | ||
595 | |||
596 | install-am: all-am | ||
597 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
598 | |||
599 | installcheck: installcheck-am | ||
600 | install-strip: | ||
601 | if test -z '$(STRIP)'; then \ | ||
602 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
603 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
604 | install; \ | ||
605 | else \ | ||
606 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
607 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
608 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | ||
609 | fi | ||
610 | mostlyclean-generic: | ||
611 | |||
612 | clean-generic: | ||
613 | |||
614 | distclean-generic: | ||
615 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
616 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
617 | |||
618 | maintainer-clean-generic: | ||
619 | @echo "This command is intended for maintainers to use" | ||
620 | @echo "it deletes files that may require special tools to rebuild." | ||
621 | clean: clean-am | ||
622 | |||
623 | clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \ | ||
624 | mostlyclean-am | ||
625 | |||
626 | distclean: distclean-am | ||
627 | -rm -rf ./$(DEPDIR) | ||
628 | -rm -f Makefile | ||
629 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
630 | distclean-tags | ||
631 | |||
632 | dvi: dvi-am | ||
633 | |||
634 | dvi-am: | ||
635 | |||
636 | html: html-am | ||
637 | |||
638 | html-am: | ||
639 | |||
640 | info: info-am | ||
641 | |||
642 | info-am: | ||
643 | |||
644 | install-data-am: install-pkgcfgDATA | ||
645 | |||
646 | install-dvi: install-dvi-am | ||
647 | |||
648 | install-dvi-am: | ||
649 | |||
650 | install-exec-am: install-libexecPROGRAMS | ||
651 | |||
652 | install-html: install-html-am | ||
653 | |||
654 | install-html-am: | ||
655 | |||
656 | install-info: install-info-am | ||
657 | |||
658 | install-info-am: | ||
659 | |||
660 | install-man: | ||
661 | |||
662 | install-pdf: install-pdf-am | ||
663 | |||
664 | install-pdf-am: | ||
665 | |||
666 | install-ps: install-ps-am | ||
667 | |||
668 | install-ps-am: | ||
669 | |||
670 | installcheck-am: | ||
671 | |||
672 | maintainer-clean: maintainer-clean-am | ||
673 | -rm -rf ./$(DEPDIR) | ||
674 | -rm -f Makefile | ||
675 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
676 | |||
677 | mostlyclean: mostlyclean-am | ||
678 | |||
679 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
680 | mostlyclean-libtool | ||
681 | |||
682 | pdf: pdf-am | ||
683 | |||
684 | pdf-am: | ||
685 | |||
686 | ps: ps-am | ||
687 | |||
688 | ps-am: | ||
689 | |||
690 | uninstall-am: uninstall-libexecPROGRAMS uninstall-pkgcfgDATA | ||
691 | |||
692 | .MAKE: install-am install-strip | ||
693 | |||
694 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
695 | clean-libexecPROGRAMS clean-libtool ctags distclean \ | ||
696 | distclean-compile distclean-generic distclean-libtool \ | ||
697 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
698 | install install-am install-data install-data-am install-dvi \ | ||
699 | install-dvi-am install-exec install-exec-am install-html \ | ||
700 | install-html-am install-info install-info-am \ | ||
701 | install-libexecPROGRAMS install-man install-pdf install-pdf-am \ | ||
702 | install-pkgcfgDATA install-ps install-ps-am install-strip \ | ||
703 | installcheck installcheck-am installdirs maintainer-clean \ | ||
704 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
705 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
706 | tags uninstall uninstall-am uninstall-libexecPROGRAMS \ | ||
707 | uninstall-pkgcfgDATA | ||
708 | |||
709 | |||
710 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
711 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
712 | .NOEXPORT: | ||
diff --git a/src/experimentation/Makefile.am b/src/experimentation/Makefile.am new file mode 100644 index 000000000..34d8ec3d1 --- /dev/null +++ b/src/experimentation/Makefile.am | |||
@@ -0,0 +1,27 @@ | |||
1 | INCLUDES = -I$(top_srcdir)/src/include | ||
2 | |||
3 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
4 | |||
5 | libexecdir= $(pkglibdir)/libexec/ | ||
6 | |||
7 | pkgcfg_DATA = \ | ||
8 | experimentation.conf | ||
9 | |||
10 | if MINGW | ||
11 | WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32 | ||
12 | endif | ||
13 | |||
14 | if USE_COVERAGE | ||
15 | AM_CFLAGS = --coverage -O0 | ||
16 | XLIB = -lgcov | ||
17 | endif | ||
18 | |||
19 | libexec_PROGRAMS = \ | ||
20 | gnunet-daemon-experimentation | ||
21 | |||
22 | gnunet_daemon_experimentation_SOURCES = \ | ||
23 | gnunet-daemon-experimentation.c | ||
24 | gnunet_daemon_experimentation_LDADD = \ | ||
25 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
26 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
27 | $(top_builddir)/src/util/libgnunetutil.la | ||
diff --git a/src/experimentation/experimentation.conf.in b/src/experimentation/experimentation.conf.in new file mode 100644 index 000000000..058dac035 --- /dev/null +++ b/src/experimentation/experimentation.conf.in | |||
@@ -0,0 +1,11 @@ | |||
1 | [experimentation] | ||
2 | AUTOSTART = NO | ||
3 | # PORT = 2106 | ||
4 | HOSTNAME = localhost | ||
5 | HOME = $SERVICEHOME | ||
6 | BINARY = gnunet-daemon-experimentation | ||
7 | ACCEPT_FROM = 127.0.0.1; | ||
8 | ACCEPT_FROM6 = ::1; | ||
9 | UNIXPATH = /tmp/gnunet-daemon-experimentation.sock | ||
10 | UNIX_MATCH_UID = YES | ||
11 | UNIX_MATCH_GID = YES | ||
diff --git a/src/experimentation/gnunet-daemon-experimentation.c b/src/experimentation/gnunet-daemon-experimentation.c new file mode 100644 index 000000000..1b8cf1418 --- /dev/null +++ b/src/experimentation/gnunet-daemon-experimentation.c | |||
@@ -0,0 +1,82 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | (C) 2009 Christian Grothoff (and other contributing authors) | ||
4 | |||
5 | GNUnet 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 | GNUnet 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 GNUnet; see the file COPYING. If not, write to the | ||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | /** | ||
22 | * @file experimentation/gnunet-daemon-experimentation.c | ||
23 | * @brief experimentation daemon | ||
24 | * @author Christian Grothoff | ||
25 | * @author Matthias Wachs | ||
26 | */ | ||
27 | #include "platform.h" | ||
28 | #include "gnunet_getopt_lib.h" | ||
29 | #include "gnunet_service_lib.h" | ||
30 | |||
31 | |||
32 | /** | ||
33 | * Task run during shutdown. | ||
34 | * | ||
35 | * @param cls unused | ||
36 | * @param tc unused | ||
37 | */ | ||
38 | static void | ||
39 | cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
40 | { | ||
41 | /* FIXME: do clean up here */ | ||
42 | } | ||
43 | |||
44 | |||
45 | /** | ||
46 | * Process template requests. | ||
47 | * | ||
48 | * @param cls closure | ||
49 | * @param server the initialized server | ||
50 | * @param cfg configuration to use | ||
51 | */ | ||
52 | static void | ||
53 | run (void *cls, struct GNUNET_SERVER_Handle *server, | ||
54 | const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
55 | { | ||
56 | static const struct GNUNET_SERVER_MessageHandler handlers[] = { | ||
57 | /* FIXME: add handlers here! */ | ||
58 | {NULL, NULL, 0, 0} | ||
59 | }; | ||
60 | /* FIXME: do setup here */ | ||
61 | GNUNET_SERVER_add_handlers (server, handlers); | ||
62 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, | ||
63 | NULL); | ||
64 | } | ||
65 | |||
66 | |||
67 | /** | ||
68 | * The main function for the template service. | ||
69 | * | ||
70 | * @param argc number of arguments from the command line | ||
71 | * @param argv command line arguments | ||
72 | * @return 0 ok, 1 on error | ||
73 | */ | ||
74 | int | ||
75 | main (int argc, char *const *argv) | ||
76 | { | ||
77 | return (GNUNET_OK == | ||
78 | GNUNET_SERVICE_run (argc, argv, "experimentation", | ||
79 | GNUNET_SERVICE_OPTION_NONE, &run, NULL)) ? 0 : 1; | ||
80 | } | ||
81 | |||
82 | /* end of gnunet-daemon-experimentation.c */ | ||