gnunet: update to SVN r38096
authorDaniel Golle <daniel@makrotopia.org>
Fri, 30 Sep 2016 11:52:13 +0000 (13:52 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 10 Oct 2016 23:03:35 +0000 (01:03 +0200)
Wrap around dhtcache vs. datacache confusion which prevented
the datacache service from starting.
While at it, sanetize default package selection.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/gnunet/Makefile
net/gnunet/files/gnunet-fs-heap.defaults
net/gnunet/files/gnunet-fs-pgsql.defaults
net/gnunet/files/gnunet-fs-sqlite.defaults
net/gnunet/files/gnunet-social-pgsql.defaults [new file with mode: 0644]

index 22e66fa510a352a66365109f26c1b0c4471cab9f..ec4adc0463f2ef1282ebe9b3bd2e2e84e81a22d9 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gnunet
-PKG_SOURCE_VERSION:=38014
+PKG_SOURCE_VERSION:=38096
 PKG_VERSION:=0.10.1-svn$(PKG_SOURCE_VERSION)
 PKG_RELEASE:=1
 
@@ -143,7 +143,7 @@ define Package/gnunet/install
        done )
 
        ( for lib in arm ats block cadet core datacache dht \
-           dns dnsparser dnsstub fragmentation friends hello identity nat nse \
+           dns dnsparser fragmentation friends hello identity nat nse \
            peerinfo regexblock regex revocation scalarproduct set \
            statistics transport util; do \
                $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnunet$$$$lib.so* $(1)/usr/lib/ ; \
@@ -300,6 +300,10 @@ DEPENDS_gns-pgsql:=+gnunet-pgsql +gnunet-gns
 PLUGIN_gns-pgsql:=namecache_postgres namestore_postgres
 CONFLICTS_gns-pgsql:=gnunet-gns-sqlite gnunet-gns-flat
 
+DEPENDS_social-pgsql:=+gnunet-pgsql +gnunet-social
+PLUGIN_social-pgsql:=psycstore_postgres
+CONFLICTS_social-pgsql:=gnunet-social-sqlite gnunet-social-mysql
+
 DEPENDS_sqlite:=+libsqlite3
 
 DEPENDS_gns-sqlite:=+gnunet-sqlite +gnunet-gns
@@ -326,7 +330,7 @@ BIN_utils:=gns-proxy-setup-ca transport-certificate-creation scrypt
 
 DEPENDS_vpn:=+kmod-tun +iptables +firewall
 BIN_vpn:=vpn
-LIB_vpn:=tun vpn
+LIB_vpn:=dnsstub tun vpn
 LIBEXEC_vpn:=daemon-exit daemon-pt helper-exit helper-vpn service-vpn
 CONF_vpn:=exit pt vpn
 
@@ -378,19 +382,19 @@ $(eval $(call PostInstFixSUIDPerms,gnunet-vpn))
 $(eval $(call BuildPackage,gnunet))
 $(eval $(call BuildComponent,conversation,conversation component,))
 $(eval $(call BuildComponent,datastore,data storage components,))
-$(eval $(call BuildComponent,dv,distance-vector routing component,))
+$(eval $(call BuildComponent,dv,distance-vector routing component,y))
 $(eval $(call BuildComponent,experiments,experimental components,))
 $(eval $(call BuildComponent,fs,file-sharing components,))
 $(eval $(call BuildComponent,gns,name resolution components,y))
 $(eval $(call BuildComponent,gns-proxy,gns-proxy component,))
-$(eval $(call BuildComponent,hostlist,HTTP bootstrap hostlist client and server,))
+$(eval $(call BuildComponent,hostlist,HTTP bootstrap hostlist client and server,y))
 $(eval $(call BuildComponent,peerstore,peerstore local persistency component,))
 $(eval $(call BuildComponent,rest,REST interface,))
-$(eval $(call BuildComponent,rps,RPS routing component,))
+$(eval $(call BuildComponent,rps,RPS routing component,y))
 $(eval $(call BuildComponent,social,social components,))
 $(eval $(call BuildComponent,namestore-fcfsd,first-come-first-serve registration server,))
 $(eval $(call BuildComponent,fs-heap,heap-based filesharing plugins,))
-$(eval $(call BuildComponent,gns-flat,flat storage GNS plugins,))
+$(eval $(call BuildComponent,gns-flat,flat storage GNS plugins,y))
 $(eval $(call BuildComponent,peerstore-flat,flat storage peerstore plugin,))
 $(eval $(call BuildComponent,mysql,mySQL datastore backend,))
 $(eval $(call BuildComponent,fs-mysql,mySQL filesharing plugins,))
@@ -398,6 +402,7 @@ $(eval $(call BuildComponent,social-mysql,mySQL social plugins,))
 $(eval $(call BuildComponent,pgsql,PostgreSQL storage backends,))
 $(eval $(call BuildComponent,fs-pgsql,PostgreSQL filesharing plugins,))
 $(eval $(call BuildComponent,gns-pgsql,PostgreSQL GNS plugins,))
+$(eval $(call BuildComponent,social-pgsql,PostgreSQL social plugins,))
 $(eval $(call BuildComponent,sqlite,libsqlite3 storage backends,))
 $(eval $(call BuildComponent,fs-sqlite,libsqlite3 filesharing plugins,))
 $(eval $(call BuildComponent,gns-sqlite,libsqlite3 gns plugins,))
@@ -406,6 +411,6 @@ $(eval $(call BuildComponent,social-sqlite,libsqlite3 social plugins,))
 $(eval $(call BuildComponent,transport-bluetooth,bluetooth transport,))
 $(eval $(call BuildComponent,transport-http_client,HTTP/HTTPS client transport,y))
 $(eval $(call BuildComponent,transport-http_server,HTTP/HTTPS server transport,))
-$(eval $(call BuildComponent,transport-wlan,WLAN transport,))
+$(eval $(call BuildComponent,transport-wlan,WLAN transport,y))
 $(eval $(call BuildComponent,utils,administration utililties,))
 $(eval $(call BuildComponent,vpn,vpn components,y))
index 773e9bcfb5ebd6dab7a224749e20db19b9ed3c4c..78a03c1d44edc257ef4df5a2708ee7386a4fe71a 100644 (file)
@@ -1,10 +1,10 @@
 #!/bin/sh
 
 uci -q get gnunet.datastore || uci set gnunet.datastore=gnunet-config
-uci -q get gnunet.datacache || uci set gnunet.datacache=gnunet-config
+uci -q get gnunet.dhtcache || uci set gnunet.dhtcache=gnunet-config
 
 uci -q batch <<EOF
        set gnunet.datastore.DATABASE=heap
-       set gnunet.datacache.DATABASE=heap
+       set gnunet.dhtcache.DATABASE=heap
        commit gnunet
 EOF
index 2ce90aec885157812f094bfd2e90ca9f59a3c9e8..72ad2cd31fd32b02bc98f677bf3bc0bf7c2ccfff 100644 (file)
@@ -1,10 +1,10 @@
 #!/bin/sh
 
 uci -q get gnunet.datastore || uci set gnunet.datastore=gnunet-config
-uci -q get gnunet.datacache || uci set gnunet.datacache=gnunet-config
+uci -q get gnunet.dhtcache || uci set gnunet.dhtcache=gnunet-config
 
 uci -q batch <<EOF
        set gnunet.datastore.DATABASE=postgres
-       set gnunet.datacache.DATABASE=postgres
+       set gnunet.dhtcache.DATABASE=postgres
        commit gnunet
 EOF
index 824572795ac27f3f6628e94ebc34f312f2dc2242..04a5472f1c0b175e881aaf92ec0fb90e4bbaf59c 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 uci -q get gnunet.datastore || uci set gnunet.datastore=gnunet-config
-uci -q get gnunet.datacache || uci set gnunet.datacache=gnunet-config
+uci -q get gnunet.dhtcache || uci set gnunet.dhtcache=gnunet-config
 
 uci -q batch <<EOF
        del gnunet.datastore_sqlite
@@ -11,6 +11,6 @@ uci -q batch <<EOF
        del gnunet.datacache_sqlite
        set gnunet.datacache_sqlite=gnunet-config
        set gnunet.datacache_sqlite.FILENAME=/var/run/gnunet/datacache.sqlite
-       set gnunet.datacache.DATABASE=sqlite
+       set gnunet.dhtcache.DATABASE=sqlite
        commit gnunet
 EOF
diff --git a/net/gnunet/files/gnunet-social-pgsql.defaults b/net/gnunet/files/gnunet-social-pgsql.defaults
new file mode 100644 (file)
index 0000000..fe74e11
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+uci -q get gnunet.psycstore || uci set gnunet.psycstore=gnunet-config
+
+uci -q batch <<EOF
+       set gnunet.psycstore.DATABASE=postgres
+       commit gnunet
+EOF