diff options
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/00list | 2 | ||||
-rw-r--r-- | debian/patches/01_dist-var.dpatch | 21 | ||||
-rw-r--r-- | debian/patches/03_cfgfiles-fhs.dpatch | 28 |
3 files changed, 51 insertions, 0 deletions
diff --git a/debian/patches/00list b/debian/patches/00list new file mode 100644 index 0000000..7b9e8ba --- /dev/null +++ b/debian/patches/00list @@ -0,0 +1,2 @@ +01_dist-var +03_cfgfiles-fhs.dpatch diff --git a/debian/patches/01_dist-var.dpatch b/debian/patches/01_dist-var.dpatch new file mode 100644 index 0000000..3bf465e --- /dev/null +++ b/debian/patches/01_dist-var.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +## 01_dist-var.dpatch by Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Change vdradmin.pl to search for it's files in system-directories, +## DP: instead of local, relative paths + +@DPATCH@ +diff -urNad /home/chelli/vdr/cvs/vdr/vdradmin/vdradmind.pl vdradmin/vdradmind.pl +--- /home/chelli/vdr/cvs/vdr/vdradmin/vdradmind.pl 2004-05-27 16:34:55.000000000 +0200 ++++ vdradmin/vdradmind.pl 2004-05-27 16:35:55.000000000 +0200 +@@ -42,7 +42,7 @@ + #use warnings; + + #my $SEARCH_FILES_IN_SYSTEM = (-d '/usr/share/vdradmin/lib' ? 1 : 0); # for distribution +-my $SEARCH_FILES_IN_SYSTEM = 0; ++my $SEARCH_FILES_IN_SYSTEM = 1; + + sub true () { 1 }; + sub false () { 0 }; diff --git a/debian/patches/03_cfgfiles-fhs.dpatch b/debian/patches/03_cfgfiles-fhs.dpatch new file mode 100644 index 0000000..50bb8e1 --- /dev/null +++ b/debian/patches/03_cfgfiles-fhs.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_cfgfiles-fhs.dpatch by Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Change the path to the cfgfile and autotime-file to comply +## DP: with the FHS (vdradmin changes these files at runtime) + +@DPATCH@ +diff -urNad vdradmin-0.96/vdradmind.pl /tmp/dpep.0DtdZt/vdradmin-0.96/vdradmind.pl +--- vdradmin-0.96/vdradmind.pl 2005-01-23 21:41:19.000000000 +0100 ++++ /tmp/dpep.0DtdZt/vdradmin-0.96/vdradmind.pl 2005-01-23 21:42:53.000000000 +0100 +@@ -94,10 +94,10 @@ + } else { + $TEMPLATEDIR = "/usr/share/vdradmin/template"; + $I18NDIR = "/usr/share/vdradmin/i18n"; +- $CONFFILE = "/etc/vdradmin/vdradmind.conf"; ++ $CONFFILE = "/var/lib/vdradmin/vdradmind.conf"; + $LOGFILE = "/var/log/$CONFIG{LOGFILE}"; + $PIDFILE = "/var/run/vdradmind.pid"; +- $AT_FILENAME = "/etc/vdradmin/vdradmind.at"; ++ $AT_FILENAME = "/var/lib/vdradmin/vdradmind.at"; +- $DONE_FILENAME = "/etc/vdradmin/vdradmind.done"; ++ $DONE_FILENAME = "/var/lib/vdradmin/vdradmind.done"; +- $BL_FILENAME = "/etc/vdradmin/vdradmind.bl"; ++ $BL_FILENAME = "/var/lib/vdradmin/vdradmind.bl"; + } + my $DONE = &DONE_Read || {}; + |