From 40e144be7d4b4a7a9d3d3fd45b39878c73dee406 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Wed, 7 Sep 2022 13:47:33 +0200 Subject: [PATCH] boinc-wrapper: add new package Signed-off-by: Vitalii Koshura --- net/boinc-wrapper/Makefile | 70 ++++++++++++++++++++++++++++++++++++++ net/boinc-wrapper/test.sh | 5 +++ 2 files changed, 75 insertions(+) create mode 100644 net/boinc-wrapper/Makefile create mode 100644 net/boinc-wrapper/test.sh diff --git a/net/boinc-wrapper/Makefile b/net/boinc-wrapper/Makefile new file mode 100644 index 0000000000..8e5dbe24b9 --- /dev/null +++ b/net/boinc-wrapper/Makefile @@ -0,0 +1,70 @@ +# SPDX-Identifier-License: GPL-3.0-or-later +# +# Copyright (C) 2023 by Vitalii Koshura +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=boinc-wrapper +PKG_VERSION:=26018 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/BOINC/boinc/tar.gz/refs/tags/wrapper/$(PKG_VERSION)? +PKG_HASH:=a93ae0a9e640a893e78f523c6d93f31b1d5812092f85af4e9ce964846373f55d + +PKG_MAINTAINER:=Vitalii Koshura +PKG_LICENSE:=GPL-3.0-or-later +PKG_LICENSE_FILES:=COPYING +PKG_CPE_ID:=cpe:/a:boinc-wrapper:boinc-wrapper + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=0 +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/target.mk + +define Package/boinc-wrapper + SECTION:=net + CATEGORY:=Network + TITLE:=BOINC wrapper + DEPENDS:=+libstdcpp + URL:=https://github.com/BOINC/boinc/ +endef + +define Package/boinc-wrapper/description + The Berkeley Open Infrastructure for Network Computing (BOINC) is a + software platform for distributed computing: several initiatives of + various scientific disciplines all compete for the idle time of + desktop computers. The developers' web site at the University of + Berkeley serves as a common portal to the otherwise independently run + projects. + + This package provides the BOINC wrapper that runs the Project applications as + subprocesses, and handles all communication with the BOINC client + (e.g., to report CPU time and fraction done). +endef + +CONFIGURE_ARGS += \ + --disable-server --disable-manager --disable-client --enable-libraries \ + --enable-boinczip \ + --with-boinc-platform=$(REAL_GNU_TARGET_NAME) \ + --with-boinc-alt-platform=$(ARCH)-$(BOARD)-$(DEVICE_TYPE)-openwrt-$(TARGET_SUFFIX) + +TARGET_CFLAGS += -Wno-format -Wno-format-security +TARGET_CPPFLAGS += -Wno-format -Wno-format-security + +define Build/Compile + $(call Build/Compile/Default) + $(MAKE_VARS) $(MAKE) \ + -C $(PKG_BUILD_DIR)/samples/wrapper \ + $(MAKE_FLAGS) +endef + +define Package/boinc-wrapper/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/samples/wrapper/wrapper $(1)/usr/bin/boinc-wrapper +endef + +$(eval $(call BuildPackage,boinc-wrapper)) diff --git a/net/boinc-wrapper/test.sh b/net/boinc-wrapper/test.sh new file mode 100644 index 0000000000..33f2f96d41 --- /dev/null +++ b/net/boinc-wrapper/test.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +boinc-wrapper +# Non-zero exit status is expected so always return 0 to avoid false failure. +exit 0