Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/BOINC/boinc
Browse files Browse the repository at this point in the history
Conflicts:
	_autosetup
  • Loading branch information
romw committed Feb 28, 2016
2 parents 27ae17e + c54afde commit 26e2d5e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 40 deletions.
52 changes: 28 additions & 24 deletions _autosetup
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env bash

## $Id$

## ---------- some portability checks/adjustments [stolen from configure] ----------
## 'echo -n' is not portable..
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
Expand All @@ -25,30 +24,35 @@ check_version()
desired=`echo $2 | awk -F. '{print $1*100+$2}'`
echo $ECHO_N "Checking version of '$1' >= $desired... $ECHO_C"
name=$1
app_var_name=`echo $name | tr '[:lower:]-' '[:upper:]_'`
if [ ! -z ${!app_var_name+x} ]; then
name=${!app_var_name}
fi

fullpath=`type $name | awk '{ print $(NF) }'`;
if [ -x "$fullpath" ]; then
foundit=yes;
foundit=yes;
fi

if [ "$foundit" != yes ]; then
echo "Didn't find application";
version=0
success=no
echo "Didn't find application";
version=0
success=no
else
cmdline="$fullpath --version";
if version=`($cmdline 2>/dev/null)` 2>/dev/null; then
echo >/dev/null
else
version="0";
fi
if [ -n "${version}" ]; then
version=`echo $version | awk '{ for (i=1;i<=NF;i++) { split($i,j,"."); m=j[1]*100+j[2] ; if ((m*1)>0) { print m ; break; } } }'`
if [ -z "$version" ]; then version=0; fi
success=`echo "$version" "$desired" | awk '{ if ($1 >= $2) { print "yes";} else {print "no";}} '`
else
version=0
success=no
fi
cmdline="$fullpath --version";
if version=`($cmdline 2>/dev/null)` 2>/dev/null; then
echo >/dev/null
else
version="0";
fi
if [ -n "${version}" ]; then
version=`echo $version | awk '{ for (i=1;i<=NF;i++) { split($i,j,"."); m=j[1]*100+j[2] ; if ((m*1)>0) { print m ; break; } } }'`
if [ -z "$version" ]; then version=0; fi
success=`echo "$version" "$desired" | awk '{ if ($1 >= $2) { print "yes";} else {print "no";}} '`
else
version=0
success=no
fi
fi
cd $dir

Expand All @@ -75,11 +79,11 @@ check_version()
echo >/dev/null
else
if check_version gmake 3.79; then
have_gmake=yes;
have_gmake=yes;
else
echo "Couldn't find a new-enough version of GNU 'make', please install one!";
echo "If you have a newer version, set the environment variable 'MAKE' to its path";
exit 1;
echo "Couldn't find a new-enough version of GNU 'make', please install one!";
echo "If you have a newer version, set the environment variable 'MAKE' to its path";
exit 1;
fi
fi

Expand Down
4 changes: 4 additions & 0 deletions client/switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ int main(int /*argc*/, char** argv) {

#endif

// Satisfy an error / warning from rpmlint: ensure that
// we drop any supplementary groups associated with root
setgroups(0, NULL);

// We are running setuid root, so setgid() sets real group ID,
// effective group ID and saved set_group-ID for this process
grp = getgrnam(group_name);
Expand Down
9 changes: 6 additions & 3 deletions generate_svn_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ elif [ -d .git ]; then
GIT_LOG=`git log -n1 --pretty="format:%H"`
HOST=`hostname`
BRANCH=`git branch | sed -n 's/^\* *//p'`
remote=`git config --get branch.$BRANCH.remote`
remote=`git config --get branch.$BRANCH.remote 2>/dev/null`
if [ "$?" != "0" ]; then
remote="origin"
fi
URL=`git config --get remote.$remote.url`
DATE=`git log -n1 --pretty="format:%ct"`
elif [ -d .svn ]; then
Expand All @@ -32,7 +35,7 @@ if [ "x$GIT_LOG" != "x" ]; then
y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;
s/^/#define REPOSITORY_/;s/$/ 1/' >> $TMPFILE
elif [ "x$CMD" != "x" ]; then
LANG=C
LANG=C
URL=`$CMD | awk '
/^URL/ { url = $2; };
/^Rev/ { rev = $2; };
Expand All @@ -41,7 +44,7 @@ elif [ "x$CMD" != "x" ]; then
print "#define SVN_REPOSITORY \"" url "\"" >> "'"$TMPFILE"'";
print "#define SVN_REVISION " rev >> "'"$TMPFILE"'";
print url };'`
echo $URL |
echo $URL |
sed 's%.*://%%;s/[^/]*@//;s/[^a-zA-Z0-9]/_/g;s/__*/_/g;
y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;
s/^/#define REPOSITORY_/;s/$/ 1/' >> $TMPFILE
Expand Down
26 changes: 13 additions & 13 deletions locale/hu/BOINC-Manager.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: BOINC\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-16 17:27-0500\n"
"PO-Revision-Date: 2016-02-22 13:35+0000\n"
"PO-Revision-Date: 2016-02-25 20:16+0000\n"
"Last-Translator: Gabor Cseh <[email protected]>\n"
"Language-Team: Hungarian (http://www.transifex.com/boinc/boinc/language/hu/)\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -1330,7 +1330,7 @@ msgstr "Tároljon további"
#: clientgui/DlgAdvPreferencesBase.cpp:399
#, c-format
msgid "If you run several projects, %s may switch between them this often."
msgstr "Ha több projektet futtat, a %s ilyen gyakorisággal válthat köztük."
msgstr "Ha több projektet futtatsz, a(z) %s ilyen gyakorisággal válthat köztük."

#. context: Switch between tasks every ___ minutes
#: clientgui/DlgAdvPreferencesBase.cpp:404
Expand All @@ -1346,7 +1346,7 @@ msgstr "Ez szabályozza, hogy a feladatok milyen gyakorisággal mentsék az áll
#. context: Request tasks to checkpoint at most every ___ seconds
#: clientgui/DlgAdvPreferencesBase.cpp:423
msgid "Request tasks to checkpoint at most every"
msgstr "A feladat kérése állapotának lemezre írására legalább minden"
msgstr "Kérd a feladat állapotának lemezre írását legalább minden"

#. context: Request tasks to checkpoint at most every ___ seconds
#: clientgui/DlgAdvPreferencesBase.cpp:432
Expand All @@ -1356,7 +1356,7 @@ msgstr "másodpercben"
#. upload/download rates
#: clientgui/DlgAdvPreferencesBase.cpp:469
msgid "Limit the download rate of file transfers."
msgstr "Letöltési sebesség korlátozása."
msgstr "A fájlátvitelek letöltési sebességének korlátozása."

#: clientgui/DlgAdvPreferencesBase.cpp:470
msgid "Limit download rate to"
Expand All @@ -1369,7 +1369,7 @@ msgstr "KB/s"

#: clientgui/DlgAdvPreferencesBase.cpp:478
msgid "Limit the upload rate of file transfers."
msgstr "Feltöltési sebesség korlátozása."
msgstr "A fájlátvitelek feltöltési sebességének korlátozása."

#: clientgui/DlgAdvPreferencesBase.cpp:479
msgid "Limit upload rate to"
Expand Down Expand Up @@ -1401,15 +1401,15 @@ msgstr "Az adatátvitel korlátozás beállításához nézd meg a \"Napi menetr
msgid ""
"Check this only if your Internet provider modifies image files. Skipping "
"verification reduces the security of %s."
msgstr "Jelölje be, ha az internetszolgáltatója módosítja a képfájlokat. Az ellenőrzés kihagyása csökkenti a %s biztonságát."
msgstr "Jelöld be, ha az internetszolgáltatód módosítja a képfájlokat. Az ellenőrzés kihagyása csökkenti a(z) %s biztonságát."

#: clientgui/DlgAdvPreferencesBase.cpp:524
msgid "Skip data verification for image files"
msgstr "Adatellenőrzés kihagyása"
msgstr "Képfájlok adatellenőrzésének kihagyása"

#: clientgui/DlgAdvPreferencesBase.cpp:528
msgid "Confirm before connecting to Internet"
msgstr "Jóváhagyás internetre csatlakozás előtt"
msgstr "Megerősítés internetre csatlakozás előtt"

#: clientgui/DlgAdvPreferencesBase.cpp:529
#: clientgui/DlgAdvPreferencesBase.cpp:533
Expand All @@ -1418,7 +1418,7 @@ msgstr "Modem, ISDN vagy VPN kapcsolat esetén érdemes használni."

#: clientgui/DlgAdvPreferencesBase.cpp:532
msgid "Disconnect when done"
msgstr "Lecsatlakozik ha kész"
msgstr "Lecsatlakozás, ha kész"

#: clientgui/DlgAdvPreferencesBase.cpp:559 clientgui/ViewResources.cpp:116
msgid "Disk"
Expand Down Expand Up @@ -1463,7 +1463,7 @@ msgstr "GB szabad"
msgid ""
"Limit the percentage of disk space used by %s on the volume where it stores "
"data."
msgstr "Korlátozza a lemez foglalását százalékban %s által azon a meghajtón, ahol az adatai tárolódnak."
msgstr "%s lemezfoglalását korlátozza százalékban azon a meghajtón, ahol az adatait tárolja."

#: clientgui/DlgAdvPreferencesBase.cpp:602
#, no-c-format
Expand All @@ -1477,7 +1477,7 @@ msgstr "Memória"
#: clientgui/DlgAdvPreferencesBase.cpp:614
#, c-format
msgid "Limit the memory used by %s when you're using the computer."
msgstr "Memóriahasználat korlátozása %s-ra, ha ön használja a számítógépet"
msgstr "%s memóriahasználatának korlátozása, ha használod a számítógépet."

#: clientgui/DlgAdvPreferencesBase.cpp:616
msgid "When computer is in use, use at most"
Expand All @@ -1493,15 +1493,15 @@ msgstr "%"
#: clientgui/DlgAdvPreferencesBase.cpp:627
#, c-format
msgid "Limit the memory used by %s when you're not using the computer."
msgstr "Memóriahasználat korlátozása %s-ra, ha ön nem használja a számítógépet"
msgstr "%s memóriahasználatának korlátozása, ha nem használod a számítógépet."

#: clientgui/DlgAdvPreferencesBase.cpp:629
msgid "When computer is not in use, use at most"
msgstr "Ha a számítógép nincs használatban, legfeljebb ennyit használjon:"

#: clientgui/DlgAdvPreferencesBase.cpp:638
msgid "Leave non-GPU tasks in memory while suspended"
msgstr "Hagyja a nem-GPU alkalmazásokat a memóriában a felfüggesztés alatt"
msgstr "Hagyd a nem-GPU alkalmazásokat a memóriában a felfüggesztés alatt"

#: clientgui/DlgAdvPreferencesBase.cpp:639
msgid ""
Expand Down

0 comments on commit 26e2d5e

Please sign in to comment.