Package: owncloud-client / 2.5.1.10973+dfsg-1

0002-debian_version.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Added a version tag to label this version as a Debian build
Author: Sandro Knauß<hefee@debian.org>
Bug: https://github.com/owncloud/mirall/pull/1477
Forwarded: not-needed
Last-Update: 2014-02-21
---
--- a/OWNCLOUD.cmake
+++ b/OWNCLOUD.cmake
@@ -2,6 +2,8 @@ set( APPLICATION_NAME       "ownCloud" )
 set( APPLICATION_SHORTNAME  "ownCloud" )
 set( APPLICATION_EXECUTABLE "owncloud" )
 set( APPLICATION_DOMAIN     "owncloud.com" )
+set( DEBIAN_URL        "https://packages.debian.org/buster/owncloud-client" )
+set( DEBIAN_DOMAIN     "packages.debian.org/owncloud-client" )
 set( APPLICATION_VENDOR     "ownCloud" )
 set( APPLICATION_UPDATE_URL "https://updates.owncloud.com/client/" CACHE string "URL for updater" )
 set( APPLICATION_ICON_NAME  "owncloud" )
--- a/config.h.in
+++ b/config.h.in
@@ -26,4 +26,9 @@
 #cmakedefine SYSCONFDIR "@SYSCONFDIR@"
 #cmakedefine SHAREDIR "@SHAREDIR@"
 
+//debian specific
+#cmakedefine DEBIAN_VERSION "@DEBIAN_VERSION@"
+#cmakedefine DEBIAN_URL "@DEBIAN_URL@"
+#cmakedefine DEBIAN_DOMAIN "@DEBIAN_DOMAIN@"
+
 #endif
--- a/src/libsync/theme.cpp
+++ b/src/libsync/theme.cpp
@@ -343,9 +343,9 @@ QString Theme::about() const
                        "<p>For known issues and help, please visit: <a href=\"https://central.owncloud.org/c/desktop-client\">https://central.owncloud.org</a></p>"
                        "<p><small>By Klaas Freitag, Daniel Molkentin, Olivier Goffart, Markus Götz, "
                        " Jan-Christoph Borchardt, and others.</small></p>")
-                    .arg(Utility::escape(MIRALL_VERSION_STRING),
-                        Utility::escape("https://" MIRALL_STRINGIFY(APPLICATION_DOMAIN)),
-                        Utility::escape(MIRALL_STRINGIFY(APPLICATION_DOMAIN)));
+                    .arg(Utility::escape(DEBIAN_VERSION),
+                        Utility::escape(DEBIAN_URL),
+                        DEBIAN_DOMAIN);
     devString += tr("<p>Copyright ownCloud GmbH</p>");
     devString += tr("<p>Distributed by %1 and licensed under the GNU General Public License (GPL) Version 2.0.<br/>"
                     "%2 and the %2 logo are registered trademarks of %1 in the "