include $(TOPDIR)/rules.mk
PKG_NAME:=gnunet
-PKG_SOURCE_VERSION:=36986
+PKG_SOURCE_VERSION:=37051
PKG_VERSION:=0.10.1-svn$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1
CONF_fs:=fs
DEPENDS_gns:=+gnunet-vpn
-USERID_gns:=gnunetdns=401:gnunetdns=401
+USERID_gns:=gnunet=400:gnunetdns=401
BIN_gns:=gns gns-import.sh namecache namestore resolver
LIB_gns:=gns gnsrecord namecache namestore
PLUGIN_gns:=block_dns block_gns gnsrecord_dns gnsrecord_gns
PROG=/usr/lib/gnunet/libexec/gnunet-service-arm
GNUNET_HOME=/var/run/gnunet
-LOGFILE=$GNUNET_HOME/gnunet.log
+# LOGFILE=$GNUNET_HOME/gnunet.log
CONFIGFILE=$GNUNET_HOME/gnunet.conf
SUID_ROOT_HELPERS="exit nat-server nat-client transport-bluetooth transport-wlan vpn"
chmodown_execbin() {
execname=/usr/lib/gnunet/libexec/gnunet-$1
if [ -x $execname ]; then
- chmod $2 $execname
[ "$3" ] && chown $3 $execname
+ chmod $2 $execname
fi
}
chmodown_execbin helper-$helper u+s
done
chmodown_execbin helper-dns 4750 root:gnunetdns
- chmodown_execbin service-dns 2750 root:gnunetdns
+ chmodown_execbin service-dns 2750 gnunet:gnunetdns
touch /usr/share/gnunet/.permfix
}
chmod 0750 $GNUNET_HOME
fi
touch $CONFIGFILE
- chown root:gnunet $CONFIGFILE
+ chown gnunet:gnunet $CONFIGFILE
chmod 0640 $CONFIGFILE
gnunet-config -c $CONFIGFILE -s PATHS -o GNUNET_HOME -V $GNUNET_HOME
done
gnunet-config -c $CONFIGFILE -s transport -o PLUGINS -V "$transport_plugins"
+ # do not touch sysctl, iptables and routing
+ gnunet-config -c $CONFIGFILE -s dns -o SKIP_ROUTING_SETUP -V YES
+ gnunet-config -c $CONFIGFILE -s exit -o EXIT_IFNAME -V ''
+
# apply config from UCI
_gnunet_section=""
config_cb()
procd_open_instance
procd_set_param user gnunet
- procd_set_param command $PROG -c $CONFIGFILE -l $LOGFILE
+ procd_set_param command $PROG -c $CONFIGFILE
+ [ "$LOGFILE" ] && procd_append_param command -l $LOGFILE
procd_set_param respawn
procd_close_instance
}