1 # Copyright 2020 by Christian Dreihsig and Steffen Möller
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
10 PKG_VERSION_SHORT
:=$(shell echo
$(PKG_VERSION
)| cut
-f1
,2 -d.
)
13 PKG_SOURCE_DATE
:=2020-02-25
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/BOINC
/boinc
/tar.gz
/client_release
/$(PKG_VERSION_SHORT
)/$(PKG_VERSION
)?
16 PKG_HASH
:=0d5656a9f8ed1048936a5764270848b892d63f27bdb863d0ace447f1eaae6002
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-client_release-
$(PKG_VERSION_SHORT
)-$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Christian Dreihsig
<christian.dreihsig@t-online.de
>, Steffen Moeller
<moeller@debian.org
>
20 PKG_LICENSE
:=GPL-3.0
-or-later
21 PKG_LICENSE_FILES
:=COPYING
22 PKG_CPE_ID
:=cpe
:/a
:boinc_project
:boinc
28 include $(INCLUDE_DIR
)/package.mk
29 include $(INCLUDE_DIR
)/target.mk
35 DEPENDS
:=+curl
+bzip2
+libstdcpp
+libopenssl
+zlib
37 URL
:=https
://github.com
/BOINC
/boinc
/
40 define Package
/boinc
/description
41 The Berkeley Open Infrastructure for Network Computing
(BOINC
) is a
42 software platform for distributed computing
: several initiatives of
43 various scientific disciplines
all compete for the idle time of
44 desktop computers. The developers
' web site at the University of
45 Berkeley serves as a common portal to the otherwise independently run
48 This package provides the BOINC core client program that is
49 required to participate in any project that uses BOINC to control what
50 projects to join and to determine constraints for the computation
51 like the percentage of CPU time. OpenWrt does not
52 provide the graphical BOINC Manager, but you can connect to this
53 machine from the BOINC Manager of your desktop computer.
57 --disable-server --disable-manager --enable-client --enable-libraries \
58 --disable-boinczip --enable-install-headers --enable-dynamic-client-linkage \
59 --with-boinc-platform=$(REAL_GNU_TARGET_NAME) \
60 --with-boinc-alt-platform=$(ARCH)-$(BOARD)-$(DEVICE_TYPE)-openwrt-$(TARGET_SUFFIX)
62 define Build/InstallDev
63 $(INSTALL_DIR) $(1)/usr/include/boinc
64 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/boinc/* $(1)/usr/include/boinc/
65 $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/boinc/ # project_specific_defines.h, config.h, version.h, svn_version.h
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/usr/lib/
70 define Package/boinc/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so}* $(1)/usr/lib/
75 $(INSTALL_DIR) $(1)/etc/init.d
76 $(INSTALL_BIN) ./files/boinc-client.init $(1)/etc/init.d/boinc-client
77 $(INSTALL_DIR) $(1)/opt/boinc
78 $(INSTALL_DIR) $(1)/usr/share/boinc
79 $(CP) ./files/global_prefs_override.xml $(1)/usr/share/boinc/global_prefs_override.xml
80 $(CP) ./files/remote_hosts.cfg $(1)/usr/share/boinc/remote_hosts.cfg
83 $(eval $(call BuildPackage,boinc))