summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2018-10-28 03:51:16 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-03 07:46:59 +0700
commita632c548b4a25c6edb82fd9d630302513fea2a0d (patch)
tree73718025495b9bca99ffc3ac18ab2479437a2545
parent7a3a0ebb95b587275ea72883a4a43901a7dc64b6 (diff)
downloadslackbuilds-a632c548b4a25c6edb82fd9d630302513fea2a0d.tar.gz
network/skypeforlinux: Updated for version 8.33.0.41.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
-rw-r--r--network/skypeforlinux/skype-dbus-mock/org.freedesktop.login1.service4
-rw-r--r--network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.conf12
-rw-r--r--network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.py27
-rw-r--r--network/skypeforlinux/skypeforlinux.SlackBuild10
-rw-r--r--network/skypeforlinux/skypeforlinux.info6
5 files changed, 55 insertions, 4 deletions
diff --git a/network/skypeforlinux/skype-dbus-mock/org.freedesktop.login1.service b/network/skypeforlinux/skype-dbus-mock/org.freedesktop.login1.service
new file mode 100644
index 0000000000..74a520e572
--- /dev/null
+++ b/network/skypeforlinux/skype-dbus-mock/org.freedesktop.login1.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.freedesktop.login1
+Exec=/usr/bin/skype-dbus-mock
+User=root
diff --git a/network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.conf b/network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.conf
new file mode 100644
index 0000000000..4d8287a7a9
--- /dev/null
+++ b/network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.conf
@@ -0,0 +1,12 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow own="org.freedesktop.login1"/>
+ </policy>
+ <policy context="default">
+ <allow send_destination="org.freedesktop.login1"/>
+ <allow send_interface="org.freedesktop.login1.Manager"/>
+ </policy>
+</busconfig>
diff --git a/network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.py b/network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.py
new file mode 100644
index 0000000000..cc220844b4
--- /dev/null
+++ b/network/skypeforlinux/skype-dbus-mock/skype-dbus-mock.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+import os
+from gi.repository import GLib
+import dbus
+import dbus.service
+import dbus.types
+import dbus.mainloop.glib
+
+
+class FakeLoginManager(dbus.service.Object):
+
+ @dbus.service.method("org.freedesktop.login1.Manager",
+ in_signature='ssss', out_signature='h')
+ def Inhibit(self, what, who, why, mode):
+ r, w = os.pipe()
+ return dbus.types.UnixFd(w)
+
+
+if __name__ == '__main__':
+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
+
+ system_bus = dbus.SystemBus()
+ bus_name = dbus.service.BusName("org.freedesktop.login1", system_bus)
+ obj = FakeLoginManager(system_bus, '/org/freedesktop/login1')
+
+ mainloop = GLib.MainLoop()
+ mainloop.run()
diff --git a/network/skypeforlinux/skypeforlinux.SlackBuild b/network/skypeforlinux/skypeforlinux.SlackBuild
index 36178f9b3d..df820962e1 100644
--- a/network/skypeforlinux/skypeforlinux.SlackBuild
+++ b/network/skypeforlinux/skypeforlinux.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=skypeforlinux
-VERSION=${VERSION:-8.29.0.50}
+VERSION=${VERSION:-8.33.0.41}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,6 +67,14 @@ find -L . \
rm -rf $PKG/opt
+# https://github.com/maelnor/skype-dbus-mock
+install -Dm 644 $CWD/skype-dbus-mock/skype-dbus-mock.conf \
+ $PKG/usr/share/dbus-1/system.d/skype-dbus-mock.conf
+install -Dm 644 $CWD/skype-dbus-mock/org.freedesktop.login1.service \
+ $PKG/usr/share/dbus-1/system-services/org.freedesktop.login1.service
+install -Dm 755 $CWD/skype-dbus-mock/skype-dbus-mock.py \
+ $PKG/usr/bin/skype-dbus-mock
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/skypeforlinux/LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/skypeforlinux/* $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/network/skypeforlinux/skypeforlinux.info b/network/skypeforlinux/skypeforlinux.info
index 9865a04dc8..f867f99ecf 100644
--- a/network/skypeforlinux/skypeforlinux.info
+++ b/network/skypeforlinux/skypeforlinux.info
@@ -1,10 +1,10 @@
PRGNAM="skypeforlinux"
-VERSION="8.29.0.50"
+VERSION="8.33.0.41"
HOMEPAGE="https://www.skype.com/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_8.29.0.50_amd64.deb"
-MD5SUM_x86_64="1a1b1c532efcaa35d3cb901c6fc7c2d0"
+DOWNLOAD_x86_64="https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_8.33.0.41_amd64.deb"
+MD5SUM_x86_64="9698b1b2f2ff054b9a8047eef4e309d3"
REQUIRES="%README%"
MAINTAINER="Mario Preksavec"
EMAIL="mario at slackware dot hr"