summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/tdelibs/debian/patches
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-04-03 23:02:46 +0900
committerMichele Calgaro <[email protected]>2019-04-03 23:02:46 +0900
commitfcad8b8d150fb9f508973e3044a103de74ec3877 (patch)
treeca34a8cf3bfbe08335d40c47863b4901e1d19609 /ubuntu/_base/tdelibs/debian/patches
parent5d8ed1fab813d86b04383f7fcf8ab2c994cbea30 (diff)
downloadtde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.tar.gz
tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.zip
DEB: use _base folder for a distro instead of specific distros (squeeze and maverick).
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'ubuntu/_base/tdelibs/debian/patches')
-rw-r--r--ubuntu/_base/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff39
-rw-r--r--ubuntu/_base/tdelibs/debian/patches/series1
2 files changed, 40 insertions, 0 deletions
diff --git a/ubuntu/_base/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff b/ubuntu/_base/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff
new file mode 100644
index 000000000..184591207
--- /dev/null
+++ b/ubuntu/_base/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff
@@ -0,0 +1,39 @@
+--- a/tdeio/tdeio/tdeprotocolmanager.cpp
++++ b/tdeio/tdeio/tdeprotocolmanager.cpp
+@@ -450,14 +450,19 @@
+ return d->useragent;
+
+ TQString supp;
++ int debian_append = 0;
+ struct utsname nam;
+ if( uname(&nam) >= 0 )
+ {
+ if( modifiers.contains('o') )
+ {
+ supp += TQString("; %1").arg(nam.sysname);
++ debian_append = 1;
+ if ( modifiers.contains('v') )
++ {
+ supp += TQString(" %1").arg(nam.release);
++ debian_append = 2;
++ }
+ }
+ if( modifiers.contains('p') )
+ {
+@@ -485,6 +490,16 @@
+ }
+ d->modifiers = modifiers;
+ d->useragent = CFG_DEFAULT_UAGENT(supp);
++
++ if (debian_append == 1)
++ d->useragent.append(" (Debian)");
++ else if (debian_append == 2)
++ {
++#define STRINGIFY(macro_or_string) STRINGIFY_ARG(macro_or_string)
++#define STRINGIFY_ARG(contents) #contents
++ d->useragent.append(" (Debian package " STRINGIFY(DEBIAN_VERSION) ")");
++ }
++
+ return d->useragent;
+ }
+
diff --git a/ubuntu/_base/tdelibs/debian/patches/series b/ubuntu/_base/tdelibs/debian/patches/series
new file mode 100644
index 000000000..b5490e13d
--- /dev/null
+++ b/ubuntu/_base/tdelibs/debian/patches/series
@@ -0,0 +1 @@
+kubuntu_19_debianize_useragent.diff