aboutsummaryrefslogtreecommitdiff
path: root/german
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-08-24 08:55:09 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-08-24 08:55:09 +0000
commitd7400afb0a4cecb5f43c26a73cf2de932feecc99 (patch)
treea9cfec5517927aa95114d19cb2de357ac606b059 /german
parentd461119058d915c8541f3c96da438fa3af5f5e19 (diff)
downloadports-d7400afb0a4cecb5f43c26a73cf2de932feecc99.tar.gz
ports-d7400afb0a4cecb5f43c26a73cf2de932feecc99.zip
Notes
Diffstat (limited to 'german')
-rw-r--r--german/tipp10/Makefile2
-rw-r--r--german/tipp10/files/patch-sql-connection.h18
2 files changed, 19 insertions, 1 deletions
diff --git a/german/tipp10/Makefile b/german/tipp10/Makefile
index bef005aa18e9..6c7cbb515b7c 100644
--- a/german/tipp10/Makefile
+++ b/german/tipp10/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tipp10
PORTVERSION= 2.0.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= german
MASTER_SITES= http://www.tipp10.de/download/
DISTNAME= tipp10_source_v2-0-1
diff --git a/german/tipp10/files/patch-sql-connection.h b/german/tipp10/files/patch-sql-connection.h
new file mode 100644
index 000000000000..0bb75dfc878c
--- /dev/null
+++ b/german/tipp10/files/patch-sql-connection.h
@@ -0,0 +1,18 @@
+--- ./sql/connection.h.orig 2007-10-02 20:22:22.000000000 +0800
++++ ./sql/connection.h 2008-08-24 16:25:30.000000000 +0800
+@@ -170,6 +170,7 @@
+ // -> copy database to user home dir
+ QFile file(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate);
+ if (file.copy(dbPath)) {
++ QFile::setPermissions(dbPath, QFile::permissions(dbPath) | QFile::WriteUser);
+ dbExist = true;
+ } else {
+ ErrorMessage *errorMessage = new ErrorMessage();
+@@ -201,6 +202,7 @@
+ dir.cd("tipp10");
+ QFile file(dbPath);
+ if (file.copy(dir.path() + "/" + dbNameUser)) {
++ QFile::setPermissions(dir.path() + "/" + dbNameUser, QFile::permissions(dir.path() + "/" + dbNameUser) | QFile::WriteUser);
+ dbPath = dir.path() + "/" + dbNameUser;
+ } else {
+ ErrorMessage *errorMessage = new ErrorMessage();