Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Patch for vdr to be able to specify the default-cfgdir at build-time



Hi

For the Debian-packaging of vdr it was requested that the
default-cfgdir of vdr will be set at build-time, so that a user would
get a working vdr without having to specify a cfgdir at the
commandline. Therefor i made this small, attached patch.
It was written for vdr 1.2.6, but seems to apply well at 1.3.6 also.
I hope that this can be included in the official vdr.


Greetings
Thomas

-- 
Thomas Schmidt
:wq
diff -urNad /home/chelli/vdr/test/vdr/Makefile vdr/Makefile
--- /home/chelli/vdr/test/vdr/Makefile	2003-08-09 13:09:45.000000000 +0200
+++ vdr/Makefile	2004-05-01 13:35:27.000000000 +0200
@@ -23,6 +23,7 @@
 PLUGINLIBDIR= $(PLUGINDIR)/lib
 
 VIDEODIR = /video
+CFGDIR ?= $(VIDEODIR)
 
 DOXYGEN  = /usr/bin/doxygen
 DOXYFILE = Doxyfile
@@ -51,6 +52,7 @@
 DEFINES += -D_GNU_SOURCE
 
 DEFINES += -DVIDEODIR=\"$(VIDEODIR)\"
+DEFINES += -DCFGDIR=\"$(CFGDIR)\"
 DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
 
 ifdef DEBUG_OSD
diff -urNad /home/chelli/vdr/test/vdr/vdr.c vdr/vdr.c
--- /home/chelli/vdr/test/vdr/vdr.c	2004-04-22 12:48:59.000000000 +0200
+++ vdr/vdr.c	2004-05-01 13:36:20.000000000 +0200
@@ -340,7 +340,7 @@
   // Configuration data:
 
   if (!ConfigDirectory)
-     ConfigDirectory = VideoDirectory;
+     ConfigDirectory = CFGDIR;
 
   cPlugin::SetConfigDirectory(ConfigDirectory);
 

Attachment: signature.asc
Description: Digital signature


Home | Main Index | Thread Index