소스 검색

gnunet: update source, enable local iperf and echo services

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle 9 년 전
부모
커밋
76e84e8be9
2개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      net/gnunet/Makefile
  2. 16
    0
      net/gnunet/files/gnunet.init

+ 1
- 1
net/gnunet/Makefile 파일 보기

@@ -8,7 +8,7 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=gnunet
11
-PKG_SOURCE_VERSION:=36127
11
+PKG_SOURCE_VERSION:=36139
12 12
 PKG_VERSION:=0.10.1-svn$(PKG_SOURCE_VERSION)
13 13
 PKG_RELEASE:=1
14 14
 

+ 16
- 0
net/gnunet/files/gnunet.init 파일 보기

@@ -55,7 +55,10 @@ prepare_config() {
55 55
 	gnunet-config -c $CONFIGFILE -s namestore-sqlite -o FILENAME -V /etc/gnunet/namestore.sqlite
56 56
 
57 57
 	# minimal datastore (todo: make this configurable)
58
+	gnunet-config -c $CONFIGFILE -s datastore -o DATABASE -V heap
58 59
 	gnunet-config -c $CONFIGFILE -s datastore -o QUOTA -V "4 MB"
60
+	gnunet-config -c $CONFIGFILE -s fs -o CONTENT_PUSHING -V NO
61
+	gnunet-config -c $CONFIGFILE -s fs -o CONTENT_CACHING -V NO
59 62
 
60 63
 	# limit dhtcache memory usage to 4 MB
61 64
 	gnunet-config -c $CONFIGFILE -s dhtcache -o QUOTA -V "4 MB"
@@ -73,6 +76,19 @@ prepare_config() {
73 76
 			transport_plugins="$transport_plugins $transplug"
74 77
 	done
75 78
 	gnunet-config -c $CONFIGFILE -s transport -o PLUGINS -V "$transport_plugins"
79
+
80
+	gnunet-config -c $CONFIGFILE -s pt -o FORCESTART -V YES
81
+	gnunet-config -c $CONFIGFILE -s exit -o AUTOSTART -V YES
82
+	gnunet-config -c $CONFIGFILE -s exit -o FORCESTART -V YES
83
+	gnunet-config -c $CONFIGFILE -s exit -o EXIT_IPV4 -V YES
84
+	# ssh and www services
85
+#	gnunet-config -c $CONFIGFILE -s exit -o EXIT_RANGE_IPV4_POLICY -V "169.254.86.1:22;169.254.86.1:80;"
86
+#	gnunet-config -c $CONFIGFILE -s ssh.gnunet. -o TCP_REDIRECTS -V "22:169.254.86.1:22"
87
+#	gnunet-config -c $CONFIGFILE -s www.gnunet. -o TCP_REDIRECTS -V "80:169.254.86.1:80"
88
+	# iperf (TCP) and echo (UDP) for battlemesh
89
+	gnunet-config -c $CONFIGFILE -s exit -o EXIT_RANGE_IPV4_POLICY -V "169.254.86.1:7;169.254.86.1:5201;"
90
+	gnunet-config -c $CONFIGFILE -s iperf.gnunet. -o TCP_REDIRECTS -V "5201:169.254.86.1:5201"
91
+	gnunet-config -c $CONFIGFILE -s echo.gnunet. -o UDP_REDIRECTS -V "7:169.254.86.1:7"
76 92
 }
77 93
 
78 94
 start_service() {