summaryrefslogtreecommitdiff
path: root/debian/patches/07-disable-chromecast.patch
blob: afef27d13346bee0a28a38e2ffb6482791292c73 (plain)
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
45
46
Description: Disable Chromecast support to workaround security issues in Mongoose Simple web server
Author: Reinhard Tartler <siretart@debian.org>
Bug-Debian: http://bugs.debian.org/898943
Last-Update: 2018-06-3

--- a/src/smplayer.pro
+++ b/src/smplayer.pro
@@ -38,7 +38,7 @@ DEFINES += MOUSE_GESTURES
 DEFINES += GLOBALSHORTCUTS
 DEFINES += ADD_BLACKBORDERS_FS
 DEFINES += INITIAL_BLACKBORDERS
-DEFINES += CHROMECAST_SUPPORT
+# DEFINES += CHROMECAST_SUPPORT
 
 DEFINES += MPV_SUPPORT
 DEFINES += MPLAYER_SUPPORT
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ DEFS=DATA_PATH=\\\"$(DATA_PATH)\\\" \
      DOC_PATH=\\\"$(DOC_PATH)\\\" THEMES_PATH=\\\"$(THEMES_PATH)\\\" \
      SHORTCUTS_PATH=\\\"$(SHORTCUTS_PATH)\\\"
 
-all: src/smplayer webserver/simple_web_server
+all: src/smplayer #webserver/simple_web_server
 
 src/smplayer:
 	./get_svn_revision.sh
@@ -29,7 +29,8 @@ src/smplayer:
 	cd src && $(LRELEASE) smplayer.pro
 
 webserver/simple_web_server:
-	cd webserver && make
+	#cd webserver && make
+	touch $@
 
 clean:
 	if [ -f src/Makefile ]; then cd src && make distclean; fi
@@ -46,7 +47,7 @@ install: all
 	-install -d $(DESTDIR)$(DOC_PATH)
 	install -m 644 Changelog *.txt $(DESTDIR)$(DOC_PATH)
 
-	install -m 755 webserver/simple_web_server $(DESTDIR)$(PREFIX)/bin/
+#	install -m 755 webserver/simple_web_server $(DESTDIR)$(PREFIX)/bin/
 
 	-install -d $(DESTDIR)$(DOC_PATH)
 	tar -C docs/ --exclude=.svn -c -f - . | tar -C $(DESTDIR)$(DOC_PATH) -x -f -