gnunet: update to version 0.13.3

Apart from adapting to upstream changes also switch to use FILE_MODES
instead of chown/chmod in init-script.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2020-09-13 23:17:55 +01:00
parent decc5f51f4
commit 5f9a1a1422
3 changed files with 21 additions and 39 deletions
-24
View File
@@ -9,31 +9,8 @@ PROG=/usr/lib/gnunet/libexec/gnunet-service-arm
GNUNET_HOME=/var/run/gnunet
# LOGFILE=$GNUNET_HOME/gnunet.log
CONFIGFILE=$GNUNET_HOME/gnunet.conf
SUID_ROOT_HELPERS="exit nat-server nat-client transport-bluetooth transport-wlan vpn"
EXTRA_COMMANDS="restart_transport"
chmodown_execbin() {
execname=/usr/lib/gnunet/libexec/gnunet-$1
if [ -x $execname ]; then
if [ "$3" ]; then
chown $3 $execname 2>/dev/null && chmod $2 $execname
else
chmod $2 $execname
fi
fi
}
fix_libexec_permissions() {
[ -e /usr/share/gnunet/.permfix ] && return
for helper in $SUID_ROOT_HELPERS; do
chmodown_execbin helper-$helper u+s
done
chmodown_execbin helper-dns 4750 root:gnunetdns
chmodown_execbin service-dns 2750 gnunet:gnunetdns
touch /usr/share/gnunet/.permfix
}
prepare_config() {
local had_exit_service=0;
@@ -109,7 +86,6 @@ restart_transport() {
}
start_service() {
fix_libexec_permissions
prepare_config
procd_open_instance