From: Hector Espert Date: Tue, 2 Jun 2026 08:31:03 +0000 (+0200) Subject: boinc: fix can't open /proc/stat X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3ea39aa5d74f12f5be76e26fbe5848fc15598175;p=openwrt-packages.git boinc: fix can't open /proc/stat Add procfs to boinc jail to allow access /proc/stat Add test.sh to test boinc package Signed-off-by: Hector Espert --- diff --git a/net/boinc/Makefile b/net/boinc/Makefile index dc740c112..60af013fa 100644 --- a/net/boinc/Makefile +++ b/net/boinc/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=boinc PKG_VERSION:=8.2.11 PKG_VERSION_SHORT:=$(shell echo $(PKG_VERSION)| cut -f1,2 -d.) -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/BOINC/boinc diff --git a/net/boinc/files/boinc-client.init b/net/boinc/files/boinc-client.init index f9065a37b..93ae9c839 100755 --- a/net/boinc/files/boinc-client.init +++ b/net/boinc/files/boinc-client.init @@ -49,7 +49,7 @@ start_service() { procd_set_param stderr 1 procd_set_param pidfile $PID_FILE - procd_add_jail $BOINCEXE_NAME log requirejail + procd_add_jail $BOINCEXE_NAME log procfs requirejail procd_add_jail_mount /etc/TZ procd_add_jail_mount /proc/cpuinfo /proc/meminfo procd_add_jail_mount /etc/ssl/certs/ca-certificates.crt diff --git a/net/boinc/test.sh b/net/boinc/test.sh new file mode 100755 index 000000000..c78273fd7 --- /dev/null +++ b/net/boinc/test.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +[ "$1" = "boinc" ] || exit 0 + +boinc_client --version 2>&1 | grep "$2"