-adding namestore directory:
authorChristian Grothoff <christian@grothoff.org>
Mon, 20 Feb 2012 18:25:35 +0000 (18:25 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 20 Feb 2012 18:25:35 +0000 (18:25 +0000)
configure.ac
src/namestore/Makefile.am [new file with mode: 0644]
src/namestore/namestore.conf.in [new file with mode: 0644]
src/nse/nse_profiler_test.conf

index 69cc7d60c84ca17495b2f28c5ab5f6c9694656e5..b1073d9d6ad5be810f13d4cacdd65096c5a36330 100644 (file)
@@ -877,6 +877,8 @@ src/include/gnunet_directories.h
 src/hostlist/Makefile
 src/mesh/Makefile
 src/mesh/mesh.conf
+src/namestore/Makefile
+src/namestore/namestore.conf
 src/nat/Makefile
 src/nse/Makefile
 src/nse/nse.conf
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am
new file mode 100644 (file)
index 0000000..3dead06
--- /dev/null
@@ -0,0 +1,58 @@
+INCLUDES = -I$(top_srcdir)/src/include
+
+plugindir = $(libdir)/gnunet
+
+pkgcfgdir= $(pkgnamedir)/config.d/
+
+pkgcfg_NAME = \
+  namestore.conf
+
+if MINGW
+  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
+endif
+
+if USE_COVERAGE
+  AM_CFLAGS = --coverage -O0
+  XLIBS = -lgcov
+endif
+
+
+#lib_LTLIBRARIES = \
+#  libgnunetnamestore.la
+#
+#libgnunetnamestore_la_SOURCES = \
+#  namestore_api.c namestore.h 
+#libgnunetnamestore_la_LIBADD = \
+#  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+#  $(top_builddir)/src/util/libgnunetutil.la \
+#  $(GN_LIBINTL) 
+#libgnunetnamestore_la_LDFLAGS = \
+#  $(GN_LIB_LDFLAGS) $(WINFLAGS) \
+#  -version-info 0:0:0
+#
+
+#bin_PROGRAMS = \
+# gnunet-service-namestore
+#
+#gnunet_service_namestore_SOURCES = \
+# gnunet-service-namestore.c 
+#gnunet_service_namestore_LDADD = \
+#  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+#  $(top_builddir)/src/util/libgnunetutil.la \
+#  $(GN_LIBINTL)
+
+if HAVE_SQLITE
+ SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
+endif
+
+plugin_LTLIBRARIES = \
+  $(SQLITE_PLUGIN) 
+
+libgnunet_plugin_namestore_sqlite_la_SOURCES = \
+  plugin_namestore_sqlite.c
+libgnunet_plugin_namestore_sqlite_la_LIBADD = \
+  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+  $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
+libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
+ $(GN_PLUGIN_LDFLAGS)
+
diff --git a/src/namestore/namestore.conf.in b/src/namestore/namestore.conf.in
new file mode 100644 (file)
index 0000000..c9b9984
--- /dev/null
@@ -0,0 +1,30 @@
+[namestore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-namestore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+@UNIXONLY@ PORT = 2099
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-namestore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DATABASE = sqlite
+
+[namestore-sqlite]
+FILENAME = $SERVICEHOME/namestore/sqlite.db
+
+[namestore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[namestore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+
+
index 54df2238bb6d6cf5503e80a8f43133f780c80efd..552b4fe6347c54d096b2f25e893ea735d6dff1d6 100644 (file)
@@ -103,7 +103,7 @@ PORT = 0
 PORT = 0
 
 #@W32PORT@ PORT = 1234
-#@UNIXPORT@ PORT = 0
+#@UNIXONLY@ PORT = 0
 
 [transport]
 PORT = 0