summaryrefslogtreecommitdiffstats
path: root/package/tvheadend/tvheadend-no-auto-download-dvbscans.patch
blob: 50bc4b69d28381d7450461dea6cdac5134dd855f (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Do not download transponder data as part of the build

If dvb-scan is enabled, tvheadend will download the transponders data
from the dvb-apps package. This does not play well with buildroot.

Instead, we rely on the dvb-apps package to install those files, so
it is no longer needed to install those as part of tvheadend.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

diff -durN tvheadend-v3.3.orig//configure tvheadend-v3.3/configure
--- tvheadend-v3.3.orig//configure	2012-09-25 15:32:31.000000000 +0200
+++ tvheadend-v3.3/configure	2012-12-28 17:17:23.580253413 +0100
@@ -96,13 +96,14 @@
 #
 # DVB scan
 #
-if enabled linuxdvb && enabled dvbscan; then
-  if [ ! -d ${ROOTDIR}/data/dvb-scan ]; then
-    echo -n "Fetching dvb-scan files... "
-    ${ROOTDIR}/support/getmuxlist &> /dev/null || die "Failed to fetch dvb-scan files (use --disable-dvbscan to skip)"
-    echo "done"
-  fi
-fi
+# For buildroot, we already installed those files via the dvb-apps package
+#if enabled linuxdvb && enabled dvbscan; then
+#  if [ ! -d ${ROOTDIR}/data/dvb-scan ]; then
+#    echo -n "Fetching dvb-scan files... "
+#    ${ROOTDIR}/support/getmuxlist &> /dev/null || die "Failed to fetch dvb-scan files (use --disable-dvbscan to skip)"
+#    echo "done"
+#  fi
+#fi
 
 # ###########################################################################
 # Write config
diff -durN tvheadend-v3.3.orig//Makefile tvheadend-v3.3/Makefile
--- tvheadend-v3.3.orig//Makefile	2012-09-25 15:32:31.000000000 +0200
+++ tvheadend-v3.3/Makefile	2012-12-28 17:17:47.573497346 +0100
@@ -180,7 +180,7 @@
 SRCS-${CONFIG_BUNDLE}     += bundle.c
 BUNDLES-yes               += docs/html docs/docresources src/webui/static
 BUNDLES-yes               += data/conf
-BUNDLES-${CONFIG_DVBSCAN} += data/dvb-scan
+#BUNDLES-${CONFIG_DVBSCAN} += data/dvb-scan
 BUNDLES                    = $(BUNDLES-yes)
 
 #
diff -durN tvheadend-v3.3.orig//support/posix.mk tvheadend-v3.3/support/posix.mk
--- tvheadend-v3.3.orig//support/posix.mk	2012-09-25 15:32:31.000000000 +0200
+++ tvheadend-v3.3/support/posix.mk	2012-12-28 17:19:28.903121722 +0100
@@ -12,7 +12,8 @@
 		mkdir -p ${DESTDIR}${datadir}/tvheadend/$$bundle ;\
 		cp -r $$bundle/*  ${DESTDIR}${datadir}/tvheadend/$$bundle ;\
 	done
-
+	mkdir -p ${DESTDIR}${datadir}/tvheadend/data
+	ln -s /usr/share/dvb-apps/scan ${DESTDIR}${datadir}/tvheadend/data/dvb-scan
 
 uninstall:
 	rm -f ${DESTDIR}${bindir)/tvheadend