forked from pool/boinc-client
Accepting request 227113 from home:computersalat:devel:network
update to 7.2.42 OBS-URL: https://build.opensuse.org/request/show/227113 OBS-URL: https://build.opensuse.org/package/show/network/boinc-client?expand=0&rev=34
This commit is contained in:
parent
f69864460a
commit
c6f7a6803b
@ -34,8 +34,8 @@ are:
|
|||||||
What the installer does
|
What the installer does
|
||||||
|
|
||||||
1. Creates the daemon script at /etc/init.d/boinc-client.
|
1. Creates the daemon script at /etc/init.d/boinc-client.
|
||||||
2. Places the BOINC binaries (boinc_client, boinc_cmd and boincmgr)
|
2. Places the BOINC binaries (boinc-client, boinccmd, boinc-gui
|
||||||
in /usr/bin/.
|
and boincmgr) in /usr/bin/.
|
||||||
3. Creates /var/lib/boinc/ for BOINC data files and the slots and
|
3. Creates /var/lib/boinc/ for BOINC data files and the slots and
|
||||||
projects directories.
|
projects directories.
|
||||||
4. Names the daemon boinc-client.
|
4. Names the daemon boinc-client.
|
||||||
@ -52,7 +52,7 @@ are:
|
|||||||
2. If you elected to not have Linux start the daemon at boot time,
|
2. If you elected to not have Linux start the daemon at boot time,
|
||||||
start the daemon manually with |/sbin/service boinc-client start|
|
start the daemon manually with |/sbin/service boinc-client start|
|
||||||
3. Open a terminal and enter |ps aux | grep boinc| to print a partial
|
3. Open a terminal and enter |ps aux | grep boinc| to print a partial
|
||||||
list of running processes. You should see |boinc_client --daemon|
|
list of running processes. You should see |boinc-client --dir ...|
|
||||||
in that list, if not then something went wrong in the steps above.
|
in that list, if not then something went wrong in the steps above.
|
||||||
|
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ manager, you can:
|
|||||||
directory without becoming root. As you type in each command
|
directory without becoming root. As you type in each command
|
||||||
below, substitute your Linux username wherever you see |username|.
|
below, substitute your Linux username wherever you see |username|.
|
||||||
Enter the following commands in a terminal, as root:
|
Enter the following commands in a terminal, as root:
|
||||||
1. |/usr/sbin/usermod -G boinc -a username|
|
1. |/usr/sbin/usermod -A boinc username|
|
||||||
2. |chmod g+rw /var/lib/boinc|
|
2. |chmod g+rw /var/lib/boinc|
|
||||||
3. |chmod g+rw /var/lib/boinc/*.*|
|
3. |chmod g+rw /var/lib/boinc/*.*|
|
||||||
4. |ln -s /var/lib/boinc/gui_rpc_auth.cfg
|
4. |ln -s /var/lib/boinc/gui_rpc_auth.cfg
|
||||||
|
3
boinc-7.2.42.tar.bz2
Normal file
3
boinc-7.2.42.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dfff203487f9d030f916891074f978abde6c0d34b3147cfc36e42a5060b8d4b8
|
||||||
|
size 40873943
|
@ -3,18 +3,18 @@ Index: locale/Makefile.am
|
|||||||
--- locale/Makefile.am.orig
|
--- locale/Makefile.am.orig
|
||||||
+++ locale/Makefile.am
|
+++ locale/Makefile.am
|
||||||
@@ -45,12 +45,12 @@ locale_dirs = \
|
@@ -45,12 +45,12 @@ locale_dirs = \
|
||||||
install-exec-hook:
|
install-data-hook:
|
||||||
mydir=$(DESTDIR)$(datadir) ;\
|
mydir=$(DESTDIR)$(datadir) ;\
|
||||||
for ldir in $(locale_dirs) ; do \
|
for ldir in $(locale_dirs) ; do \
|
||||||
- $(INSTALL) -d $$mydir/$$ldir ; \
|
- $(INSTALL) -d $$mydir/$$ldir ; \
|
||||||
+ $(INSTALL) -d $$mydir/$$ldir/LC_MESSAGES ; \
|
+ $(INSTALL) -d $$mydir/$$ldir/LC_MESSAGES ; \
|
||||||
if [ -f $$ldir/BOINC-Manager.mo ] ; then \
|
if [ -f $$ldir/BOINC-Manager.mo ] ; then \
|
||||||
- $(INSTALL) $$ldir/BOINC-Manager.mo $$mydir/$$ldir/BOINC-Manager.mo ; \
|
- $(INSTALL_DATA) $$ldir/BOINC-Manager.mo $$mydir/$$ldir/BOINC-Manager.mo ; \
|
||||||
+ $(INSTALL) $$ldir/BOINC-Manager.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Manager.mo ; \
|
+ $(INSTALL_DATA) $$ldir/BOINC-Manager.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Manager.mo ; \
|
||||||
fi ;\
|
fi ;\
|
||||||
if [ -f $$ldir/BOINC-Client.mo ] ; then \
|
if [ -f $$ldir/BOINC-Client.mo ] ; then \
|
||||||
- $(INSTALL) $$ldir/BOINC-Client.mo $$mydir/$$ldir/BOINC-Client.mo ; \
|
- $(INSTALL_DATA) $$ldir/BOINC-Client.mo $$mydir/$$ldir/BOINC-Client.mo ; \
|
||||||
+ $(INSTALL) $$ldir/BOINC-Client.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Client.mo ; \
|
+ $(INSTALL_DATA) $$ldir/BOINC-Client.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Client.mo ; \
|
||||||
fi ;\
|
fi ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
Index: lib/filesys.cpp
|
|
||||||
===================================================================
|
|
||||||
--- lib/filesys.cpp.orig
|
|
||||||
+++ lib/filesys.cpp
|
|
||||||
@@ -47,6 +47,7 @@
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <dirent.h>
|
|
||||||
+#include <climits>
|
|
||||||
|
|
||||||
#if HAVE_SYS_RESOURCE_H
|
|
||||||
#include <sys/resource.h>
|
|
||||||
@@ -412,7 +413,8 @@
|
|
||||||
} while (FindNextFileA(hFind, &findData));
|
|
||||||
::FindClose(hFind);
|
|
||||||
#else
|
|
||||||
- char filename[1024], subdir[1024];
|
|
||||||
+ char filename[PATH_MAX];
|
|
||||||
+ char *subdir;;
|
|
||||||
int retval=0;
|
|
||||||
DIRREF dirp;
|
|
||||||
double x;
|
|
||||||
@@ -423,7 +425,7 @@
|
|
||||||
while (1) {
|
|
||||||
retval = dir_scan(filename, dirp, sizeof(filename));
|
|
||||||
if (retval) break;
|
|
||||||
- sprintf(subdir, "%s/%s", dirpath, filename);
|
|
||||||
+ asprintf(&subdir, "%s/%s", dirpath, filename);
|
|
||||||
|
|
||||||
if (is_dir(subdir)) {
|
|
||||||
if (recurse) {
|
|
||||||
@@ -436,6 +438,9 @@
|
|
||||||
if (retval) continue;
|
|
||||||
size += x;
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ if(subdir != NULL)
|
|
||||||
+ free(subdir);
|
|
||||||
}
|
|
||||||
dir_close(dirp);
|
|
||||||
#endif
|
|
@ -2,15 +2,15 @@ Index: configure.ac
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- configure.ac.orig
|
--- configure.ac.orig
|
||||||
+++ configure.ac
|
+++ configure.ac
|
||||||
@@ -39,6 +39,7 @@
|
@@ -45,6 +45,7 @@ m4_ifdef([AC_PROG_OBJCXX],[AC_PROG_OBJCX
|
||||||
AC_PROG_CXX
|
dnl ------
|
||||||
AC_PROG_F77
|
AC_PROG_F77
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
+AC_PROG_OBJCXX
|
+AC_PROG_OBJCXX
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
SAH_LINKS
|
SAH_LINKS
|
||||||
AC_LANG_PUSH(C)
|
AC_LANG_PUSH(C)
|
||||||
@@ -744,6 +745,8 @@
|
@@ -793,6 +794,8 @@ AM_CONDITIONAL(ENABLE_LIBRARIES, [test "
|
||||||
AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
|
AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
|
||||||
AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
|
AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
|
||||||
|
|
||||||
@ -19,9 +19,11 @@ Index: configure.ac
|
|||||||
dnl ======================================================================
|
dnl ======================================================================
|
||||||
dnl some more vodoo required for building portable client-binary (client, clientgui)
|
dnl some more vodoo required for building portable client-binary (client, clientgui)
|
||||||
dnl ======================================================================
|
dnl ======================================================================
|
||||||
|
Index: clientgui/Makefile.am
|
||||||
|
===================================================================
|
||||||
--- clientgui/Makefile.am.orig
|
--- clientgui/Makefile.am.orig
|
||||||
+++ clientgui/Makefile.am
|
+++ clientgui/Makefile.am
|
||||||
@@ -118,9 +118,8 @@
|
@@ -117,9 +117,8 @@ EXTRA_DIST = *.h \
|
||||||
../lib/error_numbers.h \
|
../lib/error_numbers.h \
|
||||||
locale $(mac_headers)
|
locale $(mac_headers)
|
||||||
|
|
||||||
@ -29,7 +31,7 @@ Index: configure.ac
|
|||||||
-boincmgr_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) `pkg-config --cflags gtk+-2.0`
|
-boincmgr_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) `pkg-config --cflags gtk+-2.0`
|
||||||
-boincmgr_LDFLAGS = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) `pkg-config --libs gtk+-2.0` -lnotify
|
-boincmgr_LDFLAGS = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) `pkg-config --libs gtk+-2.0` -lnotify
|
||||||
+boincmgr_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) $(GTK2_CFLAGS)
|
+boincmgr_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) $(GTK2_CFLAGS)
|
||||||
+boincmgr_LDFLAGS = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) $(GTK2_LIBS)
|
+boincmgr_LDFLAGS = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) $(GTK2_LIBS) -lnotify
|
||||||
|
|
||||||
win_config.h: $(top_srcdir)/config.h
|
win_config.h: $(top_srcdir)/config.h
|
||||||
grep '#define.*BOINC.*VERSION' $^ > $@
|
grep '#define.*BOINC.*VERSION' $^ > $@
|
@ -1,3 +1,28 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 18 15:21:19 UTC 2014 - chris@computersalat.de
|
||||||
|
|
||||||
|
- fix README.SUSE
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 16 22:23:48 UTC 2014 - chris@computersalat.de
|
||||||
|
|
||||||
|
# fix for bnc#779335
|
||||||
|
* disabled boinc-completion.patch
|
||||||
|
- update to 7.2.42
|
||||||
|
* Fix problem that was causing scheduler RPCs to fail on Yoyo@home
|
||||||
|
(HTTP status code 400)
|
||||||
|
* for mor info have a look at
|
||||||
|
http://boinc.berkeley.edu/wiki/Release_Notes
|
||||||
|
- removed obsolete patches:
|
||||||
|
* boinc-client-dynamic_buffers.patch
|
||||||
|
* boinc-init.patch
|
||||||
|
- rebased patches:
|
||||||
|
* boinc-LC_MESSAGES.patch
|
||||||
|
* boinc-client-AM_CONDITIONAL.patch
|
||||||
|
* boinc-configure.patch
|
||||||
|
* boinc-docbook2x.patch
|
||||||
|
* boinc-guirpcauth.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 26 09:45:58 UTC 2013 - p.drouand@gmail.com
|
Sat Oct 26 09:45:58 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
@ -10,6 +35,16 @@ Sat Oct 26 09:45:58 UTC 2013 - p.drouand@gmail.com
|
|||||||
- Remove boinc-client-glib_h.patch; fixed on upstream
|
- Remove boinc-client-glib_h.patch; fixed on upstream
|
||||||
- Do not copy INSTALL in documentation
|
- Do not copy INSTALL in documentation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 1 20:53:41 UTC 2013 - chris@computersalat.de
|
||||||
|
|
||||||
|
- update to 7.0.28
|
||||||
|
* sorry but there is no ChangeLog :(
|
||||||
|
- rebase patches
|
||||||
|
* dynamic_buffers, guirpcauth, AM_CONDITIONAL
|
||||||
|
- add configure patch
|
||||||
|
- remove obsolete glib_h patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 3 11:12:16 UTC 2013 - coolo@suse.com
|
Wed Apr 3 11:12:16 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package boinc-client
|
# spec file for package boinc-client
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2011 by Sascha Manns <saigkill@opensuse.org>
|
# Copyright (c) 2011 by Sascha Manns <saigkill@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -22,18 +22,30 @@
|
|||||||
%if 0%{?suse_version} >= 1140
|
%if 0%{?suse_version} >= 1140
|
||||||
%define __find_requires %wx_requires
|
%define __find_requires %wx_requires
|
||||||
%endif
|
%endif
|
||||||
%define version_ 7_0_36
|
#define version_ 6_12_43
|
||||||
%define soname 7
|
%define soname 7
|
||||||
%define boinc_dir %{_localstatedir}/lib/boinc
|
%define boinc_dir %{_localstatedir}/lib/boinc
|
||||||
|
|
||||||
Name: boinc-client
|
Name: boinc-client
|
||||||
Version: 7.0.36
|
Version: 7.2.42
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The BOINC client core
|
Summary: The BOINC client
|
||||||
License: LGPL-3.0
|
License: GPL-3.0+, LGPL-3.0+
|
||||||
Group: Productivity/Clustering/Computing
|
Group: Productivity/Clustering/Computing
|
||||||
Url: http://boinc.berkeley.edu/
|
Url: http://boinc.berkeley.edu/
|
||||||
Source0: boinc_core_release-%{version_}.tar.bz2
|
#Source0: boinc_core_release_%{version_}.tar.bz2
|
||||||
|
# There is no real tarball, hence I did
|
||||||
|
#
|
||||||
|
# git clone git://boinc.berkeley.edu/boinc.git
|
||||||
|
# git checkout master
|
||||||
|
# git checkout -t client_release/7.2/7.2.42
|
||||||
|
#
|
||||||
|
# then I created an archive via git
|
||||||
|
#
|
||||||
|
# git archive -v --format=tar --prefix=boinc-7.2.42/ \
|
||||||
|
# client_release/7.2/7.2.42 | bzip2 >../boinc-7.2.42.tar.bz2
|
||||||
|
|
||||||
|
Source0: boinc-%{version}.tar.bz2
|
||||||
Source1: boinc-icons.tar.bz2
|
Source1: boinc-icons.tar.bz2
|
||||||
Source2: boinc-gui.desktop
|
Source2: boinc-gui.desktop
|
||||||
Source3: README.SUSE
|
Source3: README.SUSE
|
||||||
@ -48,7 +60,7 @@ Source6: boinc-manager
|
|||||||
# Trim all binaries and other unnecessary things.
|
# Trim all binaries and other unnecessary things.
|
||||||
Source8: generate-tarball.sh
|
Source8: generate-tarball.sh
|
||||||
Source10: %{name}.init
|
Source10: %{name}.init
|
||||||
Source20: boinc-client-systemd
|
Source20: %{name}.service
|
||||||
Source100: %{name}-rpmlintrc
|
Source100: %{name}-rpmlintrc
|
||||||
|
|
||||||
# PATCH-FIX-OPENSUSE boinc-guirpcauth.patch
|
# PATCH-FIX-OPENSUSE boinc-guirpcauth.patch
|
||||||
@ -58,27 +70,35 @@ Source100: %{name}-rpmlintrc
|
|||||||
# without setting proper group ownership of the password file.
|
# without setting proper group ownership of the password file.
|
||||||
Patch0: boinc-guirpcauth.patch
|
Patch0: boinc-guirpcauth.patch
|
||||||
# PATCH-FIX-OPENSUSE boinc-init.patch
|
# PATCH-FIX-OPENSUSE boinc-init.patch
|
||||||
Patch1: boinc-init.patch
|
#Patch1: boinc-init.patch
|
||||||
# PATCH-FIX-OPENSUSE boinc-LC_MESSAGES.patch
|
# PATCH-FIX-OPENSUSE boinc-LC_MESSAGES.patch
|
||||||
Patch2: boinc-LC_MESSAGES.patch
|
Patch2: boinc-LC_MESSAGES.patch
|
||||||
# PATCH-FIX-OPENSUSE boinc-completion.patch
|
# PATCH-FIX-OPENSUSE boinc-completion.patch
|
||||||
Patch3: boinc-completion.patch
|
# patch disabled: fix for bnc#779335
|
||||||
|
#Patch3: boinc-completion.patch
|
||||||
# PATCH-FIX-OPENSUSE boinc-docbook2x.patch
|
# PATCH-FIX-OPENSUSE boinc-docbook2x.patch
|
||||||
Patch4: boinc-docbook2x.patch
|
Patch4: boinc-docbook2x.patch
|
||||||
# PATCH-FIX-OPENSUSE pth@suse.de use asprintf to fix buffer overflow
|
# PATCH-FIX-OPENSUSE pth@suse.de use asprintf to fix buffer overflow
|
||||||
Patch5: boinc-client-7.0.36-dynamic_buffers.patch
|
#Patch5: boinc-client-dynamic_buffers.patch
|
||||||
|
# PATCH-FIX-OPENSUSE computersalat - #error "Only <glib.h> can be included directly.
|
||||||
|
#Patch6: %{name}-glib_h.patch
|
||||||
# PATCH-FIX-OPENSUSE coolo - #error: am__fastdepOBJCXX does not appear in AM_CONDITIONAL
|
# PATCH-FIX-OPENSUSE coolo - #error: am__fastdepOBJCXX does not appear in AM_CONDITIONAL
|
||||||
Patch7: boinc-client-7.0.36-AM_CONDITIONAL.patch
|
Patch7: %{name}-AM_CONDITIONAL.patch
|
||||||
|
# PATCH-FIX-OPENSUSE computersalat - error:
|
||||||
|
# configure.ac:898: required file `test/version.inc.in' not found
|
||||||
|
# configure.ac:898: required file `py/Boinc/version.py.in' not found
|
||||||
|
Patch8: boinc-configure.patch
|
||||||
#
|
#
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
Requires(pre): pwdutils
|
Requires(pre): pwdutils
|
||||||
%if 0%{?suse_version} < 1230
|
%if 0%{?suse_version} >= 1210
|
||||||
|
BuildRequires: systemd
|
||||||
|
%{?systemd_requires}
|
||||||
|
%define has_systemd 1
|
||||||
|
%else
|
||||||
Requires(pre): %insserv_prereq
|
Requires(pre): %insserv_prereq
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
%else
|
|
||||||
BuildRequires: pkgconfig(systemd)
|
|
||||||
%{?systemd_requires}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: Mesa-devel
|
BuildRequires: Mesa-devel
|
||||||
@ -90,6 +110,12 @@ BuildRequires: update-desktop-files
|
|||||||
#BuildRequires: fcgi-devel
|
#BuildRequires: fcgi-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: freeglut-devel
|
BuildRequires: freeglut-devel
|
||||||
|
%if 0%{?suse_version} >= 1310
|
||||||
|
BuildRequires: libXScrnSaver-devel
|
||||||
|
BuildRequires: libXi-devel
|
||||||
|
BuildRequires: libxcb-devel
|
||||||
|
BuildRequires: xcb-util-devel
|
||||||
|
%endif
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
BuildRequires: gettext-runtime
|
BuildRequires: gettext-runtime
|
||||||
@ -112,7 +138,7 @@ BuildRequires: xorg-x11-libXmu-devel
|
|||||||
%if 0%{?suse_version} <= 1130
|
%if 0%{?suse_version} <= 1130
|
||||||
BuildRequires: wxGTK-devel >= 2.6.0
|
BuildRequires: wxGTK-devel >= 2.6.0
|
||||||
%else
|
%else
|
||||||
BuildRequires: wxWidgets-devel >= 2.8.7
|
BuildRequires: wxWidgets-devel >= 2.8.0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: cron
|
Requires: cron
|
||||||
@ -186,16 +212,19 @@ BuildArch: noarch
|
|||||||
This package contains documentation files for %{name}.
|
This package contains documentation files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n boinc_core_release_%{version_} -D -a 1
|
#setup -q -n boinc_core_release_%{version_} -D -a 1
|
||||||
|
%setup -q -n boinc-%{version} -D -a 1
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
#patch1
|
||||||
%patch2
|
%patch2
|
||||||
%patch3
|
#patch3
|
||||||
%patch4
|
%patch4
|
||||||
%patch5
|
#patch5
|
||||||
%if 0%{?suse_version} >= 1220
|
%if 0%{?suse_version} >= 1220
|
||||||
|
#patch6
|
||||||
%patch7
|
%patch7
|
||||||
%endif
|
%endif
|
||||||
|
%patch8
|
||||||
|
|
||||||
# Install user hints
|
# Install user hints
|
||||||
%{__install} -m0644 %{S:3} README.SUSE
|
%{__install} -m0644 %{S:3} README.SUSE
|
||||||
@ -216,21 +245,17 @@ pushd clientgui/res/skins/default/graphic/
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
# fix utf8
|
# fix utf8
|
||||||
iconv -f ISO88591 -t UTF8 < checkin_notes > checkin_notes.utf8
|
|
||||||
touch -r checkin_notes checkin_notes.utf8
|
|
||||||
mv checkin_notes.utf8 checkin_notes
|
|
||||||
|
|
||||||
iconv -f ISO88591 -t UTF8 < checkin_notes_2004 > checkin_notes_2004.utf8
|
|
||||||
touch -r checkin_notes_2004 checkin_notes_2004.utf8
|
|
||||||
mv checkin_notes_2004.utf8 checkin_notes_2004
|
|
||||||
|
|
||||||
iconv -f ISO88591 -t UTF8 < checkin_notes_2005 > checkin_notes_2005.utf8
|
iconv -f ISO88591 -t UTF8 < checkin_notes_2005 > checkin_notes_2005.utf8
|
||||||
touch -r checkin_notes_2005 checkin_notes_2005.utf8
|
touch -r checkin_notes_2005 checkin_notes_2005.utf8
|
||||||
mv checkin_notes_2005.utf8 checkin_notes_2005
|
mv checkin_notes_2005.utf8 checkin_notes_2005
|
||||||
|
|
||||||
iconv -f ISO88591 -t UTF8 < checkin_notes_2006 > checkin_notes_2006.utf8
|
iconv -f ISO88591 -t UTF8 < checkin_notes_2009 > checkin_notes_2009.utf8
|
||||||
touch -r checkin_notes_2006 checkin_notes_2006.utf8
|
touch -r checkin_notes_2009 checkin_notes_2009.utf8
|
||||||
mv checkin_notes_2006.utf8 checkin_notes_2006
|
mv checkin_notes_2009.utf8 checkin_notes_2009
|
||||||
|
|
||||||
|
iconv -f ISO88591 -t UTF8 < checkin_notes_2010 > checkin_notes_2010.utf8
|
||||||
|
touch -r checkin_notes_2010 checkin_notes_2010.utf8
|
||||||
|
mv checkin_notes_2010.utf8 checkin_notes_2010
|
||||||
|
|
||||||
# fix permissions and newlines on source files
|
# fix permissions and newlines on source files
|
||||||
chmod 644 clientgui/{DlgItemProperties.h,AsyncRPC.cpp,DlgItemProperties.cpp}
|
chmod 644 clientgui/{DlgItemProperties.h,AsyncRPC.cpp,DlgItemProperties.cpp}
|
||||||
@ -329,11 +354,10 @@ popd
|
|||||||
%{__rm} -f %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
%{__rm} -f %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||||
|
|
||||||
# Install init and create symlink to /etc/init.d/boinc-client
|
# Install init and create symlink to /etc/init.d/boinc-client
|
||||||
%if 0%{?suse_version} >=1230
|
%if 0%{?has_systemd}
|
||||||
chmod -x %{S:20}
|
%{__install} -D -m0644 %{S:20} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
%{__install} -Dm0755 %{S:20} %{buildroot}%{_unitdir}/%{name}.service
|
|
||||||
# And remove sysvinit script installed by boinc
|
# And remove sysvinit script installed by boinc
|
||||||
rm -r %{buildroot}/%{_initrddir}
|
%{__rm} -r %{buildroot}/%{_initrddir}
|
||||||
%else
|
%else
|
||||||
%{__install} -Dm0755 %{S:10} %{buildroot}%{_initrddir}/%{name}
|
%{__install} -Dm0755 %{S:10} %{buildroot}%{_initrddir}/%{name}
|
||||||
%{__install} -dm0755 %{buildroot}%{_sbindir}
|
%{__install} -dm0755 %{buildroot}%{_sbindir}
|
||||||
@ -365,10 +389,9 @@ rm -r %{buildroot}/%{_initrddir}
|
|||||||
# Install *.desktop File
|
# Install *.desktop File
|
||||||
%suse_update_desktop_file -i boinc-gui Utility
|
%suse_update_desktop_file -i boinc-gui Utility
|
||||||
|
|
||||||
# Remove libtool archives
|
# Remove static libraries, libtool archives
|
||||||
%{__rm} %{buildroot}%{_libdir}/*.la
|
%{__rm} %{buildroot}%{_libdir}/*.{a,la}
|
||||||
# Remove static libraries
|
|
||||||
%{__rm} %{buildroot}%{_libdir}/*.a
|
|
||||||
# Relinking Manpages
|
# Relinking Manpages
|
||||||
%{__ln_s} -f boincmgr.1.gz %{buildroot}%{_mandir}/man1/boinc-manager.1.gz
|
%{__ln_s} -f boincmgr.1.gz %{buildroot}%{_mandir}/man1/boinc-manager.1.gz
|
||||||
%{__ln_s} -f boinccmd.1.gz %{buildroot}%{_mandir}/man1/boinccmd.1.gz
|
%{__ln_s} -f boinccmd.1.gz %{buildroot}%{_mandir}/man1/boinccmd.1.gz
|
||||||
@ -377,9 +400,6 @@ rm -r %{buildroot}/%{_initrddir}
|
|||||||
# Fix spurious-executable-perm
|
# Fix spurious-executable-perm
|
||||||
%{__chmod} 0644 doc/*.php
|
%{__chmod} 0644 doc/*.php
|
||||||
|
|
||||||
# Don't pick INSTALL file in %doc macro
|
|
||||||
|
|
||||||
|
|
||||||
# Install fake /var/lib/boinc
|
# Install fake /var/lib/boinc
|
||||||
%{__install} -dm0755 %{buildroot}%{_var}/lib/boinc
|
%{__install} -dm0755 %{buildroot}%{_var}/lib/boinc
|
||||||
|
|
||||||
@ -400,16 +420,19 @@ if [ -f %{_sysconfdir}/sysconfig/%{name} ]; then
|
|||||||
mv -f %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/sysconfig/%{name}.save
|
mv -f %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/sysconfig/%{name}.save
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
%service_add_pre %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if 0%{?suse_version} >=1230
|
%if 0%{?has_systemd}
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
%else
|
%else
|
||||||
%stop_on_removal %{name}
|
%stop_on_removal %{name}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?suse_version} >=1230
|
%if 0%{?has_systemd}
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
%else
|
%else
|
||||||
%fillup_and_insserv %{name}
|
%fillup_and_insserv %{name}
|
||||||
@ -417,8 +440,8 @@ fi
|
|||||||
%{_sbindir}/usermod -c "BOINC Client" -s /sbin/nologin boinc 2>/dev/null || :
|
%{_sbindir}/usermod -c "BOINC Client" -s /sbin/nologin boinc 2>/dev/null || :
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if 0%{?suse_version} >=1230
|
%if 0%{?has_systemd}
|
||||||
%service_del_postun
|
%service_del_postun %{name}.service
|
||||||
%else
|
%else
|
||||||
%restart_on_update %{name}
|
%restart_on_update %{name}
|
||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
@ -446,22 +469,23 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING* COPYRIGHT notes todo TODO_OLD README.SUSE
|
%doc COPYING* COPYRIGHT notes todo README.SUSE
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||||
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
|
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
|
||||||
%if 0%{?suse_version} >=1230
|
|
||||||
%{_unitdir}/%{name}.service
|
|
||||||
%else
|
|
||||||
/var/adm/fillup-templates/sysconfig.%{name}
|
|
||||||
%{_sbindir}/rc%{name}
|
|
||||||
%{_initrddir}/%{name}
|
|
||||||
%endif
|
|
||||||
%{_bindir}/boinc
|
%{_bindir}/boinc
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/boinccmd
|
%{_bindir}/boinccmd
|
||||||
|
%{_bindir}/boincscr
|
||||||
%{_bindir}/switcher
|
%{_bindir}/switcher
|
||||||
%{_mandir}/man1/boinccmd.1.gz
|
%{_mandir}/man1/boinccmd.1.gz
|
||||||
%{_mandir}/man1/boinc.1.gz
|
%{_mandir}/man1/boinc.1.gz
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
%{_unitdir}/%{name}.service
|
||||||
|
%else
|
||||||
|
%{_sbindir}/rc%{name}
|
||||||
|
%{_initrddir}/%{name}
|
||||||
|
/var/adm/fillup-templates/sysconfig.%{name}
|
||||||
|
%endif
|
||||||
%defattr(-,boinc,boinc,-)
|
%defattr(-,boinc,boinc,-)
|
||||||
%{_localstatedir}/lib/boinc/
|
%{_localstatedir}/lib/boinc/
|
||||||
|
|
||||||
|
20
boinc-configure.patch
Normal file
20
boinc-configure.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Index: configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- configure.ac.orig
|
||||||
|
+++ configure.ac
|
||||||
|
@@ -968,7 +968,6 @@ AC_CONFIG_FILES([
|
||||||
|
lib/Makefile
|
||||||
|
locale/Makefile
|
||||||
|
Makefile
|
||||||
|
- py/Boinc/version.py
|
||||||
|
py/Makefile
|
||||||
|
py/boinc_path_config.py:py/boinc_path_config.py.in
|
||||||
|
py/setup.py
|
||||||
|
@@ -990,7 +989,6 @@ AC_CONFIG_FILES([
|
||||||
|
packages/solaris/CSW/boincmanager/prototype
|
||||||
|
test/boinc_path_config.py:py/boinc_path_config.py.in
|
||||||
|
test/Makefile
|
||||||
|
- test/version.inc
|
||||||
|
tools/boinc_path_config.py:py/boinc_path_config.py.in
|
||||||
|
tools/Makefile
|
||||||
|
vda/Makefile
|
@ -2,7 +2,7 @@ Index: configure.ac
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- configure.ac.orig
|
--- configure.ac.orig
|
||||||
+++ configure.ac
|
+++ configure.ac
|
||||||
@@ -285,7 +285,7 @@ AC_SUBST([TOP_BUILD_DIR], [`pwd`])
|
@@ -297,7 +297,7 @@ AC_SUBST([TOP_BUILD_DIR], [`pwd`])
|
||||||
dnl Check for docbook2x-man, which we use to create the manpages in
|
dnl Check for docbook2x-man, which we use to create the manpages in
|
||||||
dnl doc/manpages, and set the conditional HAVE_DOCBOOK2X_MAN to build
|
dnl doc/manpages, and set the conditional HAVE_DOCBOOK2X_MAN to build
|
||||||
dnl the manpages only if docbook2x-man is available.
|
dnl the manpages only if docbook2x-man is available.
|
||||||
|
@ -2,7 +2,7 @@ Index: client/gui_rpc_server.cpp
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- client/gui_rpc_server.cpp.orig
|
--- client/gui_rpc_server.cpp.orig
|
||||||
+++ client/gui_rpc_server.cpp
|
+++ client/gui_rpc_server.cpp
|
||||||
@@ -145,12 +145,7 @@ int GUI_RPC_CONN_SET::get_password() {
|
@@ -169,12 +169,7 @@ void GUI_RPC_CONN_SET::get_password() {
|
||||||
// they can cause code to execute as this user.
|
// they can cause code to execute as this user.
|
||||||
// So better protect it.
|
// So better protect it.
|
||||||
//
|
//
|
||||||
@ -15,4 +15,4 @@ Index: client/gui_rpc_server.cpp
|
|||||||
+ chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR | S_IRGRP | S_IWGRP);
|
+ chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR | S_IRGRP | S_IWGRP);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,89 +0,0 @@
|
|||||||
Index: client/scripts/boinc-client.in
|
|
||||||
===================================================================
|
|
||||||
--- client/scripts/boinc-client.in.orig
|
|
||||||
+++ client/scripts/boinc-client.in
|
|
||||||
@@ -19,14 +19,16 @@
|
|
||||||
# For more information about BOINC (the Berkeley Open Infrastructure
|
|
||||||
# for Network Computing) see http://boinc.berkeley.edu
|
|
||||||
# processname: boinc
|
|
||||||
-# config: /etc/sysconfig/boinc
|
|
||||||
+# config: /etc/sysconfig/boinc-client
|
|
||||||
#
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
-# Provides: boinc
|
|
||||||
-# Required-Start: $network
|
|
||||||
-# Required-Stop: $network
|
|
||||||
-# Default-Start: 3 4 5
|
|
||||||
-# Default-Stop: 0 1 2 6
|
|
||||||
+# Provides: boinc-client
|
|
||||||
+# Required-Start: $network $remote_fs
|
|
||||||
+# Should-Start: $time
|
|
||||||
+# Required-Stop: $network $remote_fs
|
|
||||||
+# Should-Stop: $time
|
|
||||||
+# Default-Start: 3 5
|
|
||||||
+# Default-Stop: 0 1 2 6
|
|
||||||
# Short-Description: This script monitors the BOINC client.
|
|
||||||
# Description: This script starts the local BOINC client as a daemon
|
|
||||||
# For more information about BOINC (the Berkeley Open Infrastructure
|
|
||||||
@@ -117,6 +119,10 @@ fi
|
|
||||||
#
|
|
||||||
BOINCUSER=boinc
|
|
||||||
|
|
||||||
+# Name of group to run as:
|
|
||||||
+#
|
|
||||||
+BOINCUSER=boinc
|
|
||||||
+
|
|
||||||
# Working directory. Could be /home/boinc, /var/lib/boinc, etc..
|
|
||||||
# The reason I prefer /var/lib/boinc is that this works best for a
|
|
||||||
# cluster of computers where /home/anything might be shared between machines
|
|
||||||
@@ -128,7 +134,7 @@ BOINCDIR=/var/lib/boinc
|
|
||||||
# but I like to rename it and put it in a public place.
|
|
||||||
# (Hint: move boincmgr to /usr/local/bin too so anyone can easily use it).
|
|
||||||
#
|
|
||||||
-BOINCEXE_NAME=boinc_client
|
|
||||||
+BOINCEXE_NAME=boinc-client
|
|
||||||
BOINCEXE=${bindir}/${BOINCEXE_NAME}
|
|
||||||
BOINCCMD_NAME=boinccmd
|
|
||||||
BOINCCMD=${bindir}/${BOINCCMD_NAME}
|
|
||||||
@@ -161,9 +167,7 @@ BOINCOPTS=
|
|
||||||
# Subsys lock file ...
|
|
||||||
|
|
||||||
# If there is the subsys directory, then use it ...
|
|
||||||
-if [ -d /var/lock/subsys/ ]; then
|
|
||||||
- LOCKFILE=/var/lock/subsys/${BOINCEXE_NAME}
|
|
||||||
-elif [ -d /var/lock ]; then
|
|
||||||
+if [ -d /var/lock ]; then
|
|
||||||
LOCKFILE=/var/lock/${BOINCEXE_NAME}
|
|
||||||
elif [ -d /var/run ]; then
|
|
||||||
LOCKFILE=/var/run/${BOINCEXE_NAME}.lock
|
|
||||||
@@ -178,8 +182,8 @@ export TERM=dumb
|
|
||||||
# but if the functions are not found we create our own simple replacements.
|
|
||||||
# (The idea for replacing the functions comes from OpenAFS. Thanks guys!)
|
|
||||||
|
|
||||||
-if [ -f /etc/rc.d/init.d/functions ] ; then
|
|
||||||
- . /etc/rc.d/init.d/functions
|
|
||||||
+if [ -f /etc/init.d/functions ] ; then
|
|
||||||
+ . /etc/init.d/functions
|
|
||||||
else
|
|
||||||
if printf "Hello" >/dev/null 2>/dev/null ; then
|
|
||||||
# printf works
|
|
||||||
@@ -279,7 +283,7 @@ if [ ! -d $BOINCDIR ]; then
|
|
||||||
echo -n "Creating $BOINCDIR "
|
|
||||||
if mkdir -p $BOINCDIR 2>/dev/null ; then
|
|
||||||
if [ -n "$BOINCUSER" ] ; then
|
|
||||||
- if chown $BOINCUSER $BOINCDIR ; then
|
|
||||||
+ if chown $BOINCUSER $BOINCGROUP $BOINCDIR ; then
|
|
||||||
echo_success
|
|
||||||
else
|
|
||||||
echo_failure
|
|
||||||
@@ -329,8 +333,8 @@ if [ "${USERNOW}" = "${BOINCUSER}" ] ; t
|
|
||||||
exit 8
|
|
||||||
fi
|
|
||||||
elif [ "${USERNOW}" = "root" ] ; then
|
|
||||||
- cmd="if test -O ${BOINCDIR} ; then echo success ; fi"
|
|
||||||
- if [ -z `su $BOINCUSER -c "$cmd"` ]; then
|
|
||||||
+ # cmd="if test -O ${BOINCDIR} ; then echo success ; fi"
|
|
||||||
+ # if [ -z `su $BOINCUSER -c "$cmd"` ]; then
|
|
||||||
echo -n ERROR: $BOINCDIR is not owned by $BOINCUSER.
|
|
||||||
echo_failure
|
|
||||||
echo
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:061700382a0bdedb182e501f8ce51d5e84831a010bdc322c03820cc5bab0291e
|
|
||||||
size 39793308
|
|
Loading…
Reference in New Issue
Block a user