summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2005-04-12 12:32:06 +0200
committerAndreas Mair <amair.sob@googlemail.com>2005-04-12 12:32:06 +0200
commit022c4f162d7b83cb287b7d16749899d9e7c4242a (patch)
treeecc7dcf65b3e43713d9ecd36a7982dade2197f8a /debian
parent0d6ba991052f971564296c537887e030d13ee730 (diff)
downloadvdradmin-am-0.97-am3.1.tar.gz
vdradmin-am-0.97-am3.1.tar.bz2
2005-04-12: 0.97-am3.1v0.97-am3.1
- Updated Spanish i18n (Thanks to Ruediger Jung). - Added VDR Admin man-page (Thanks to Thomas Schmidt). - Improved detection of another running vdradmind.pl at startup (if vdradmind.pid is found but pid is not a vdradmind.pl vdradmin will start anyway). - Added IMDb lookup button in prog_detail (Suggested by Marcus). - Use configured Streamdev port for live streaming. - Added warning when using EPG_DIRECT. - Updated INSTALL file. - Renamed i18n Español to Spanish (Requested by Ruediger Jung). - Fixed ":" & "|" handling in timer's title and summary (Thanks to Der_Pit for pointing me to that). - Added "Select all" to timer/autotimer/recordings list. - Exchanged priority and lifetime textfields in config.html to match order used at other places (Requested by Ruediger Jung). - Added vdradmin-0.95-0.9pre5-email.diff (Author: blafasel) patch: send email on timers added by AutoTimer (needs sendEmail available here: http://caspian.dotconf.net/menu/Software/SendEmail/). - Fixed timer add/edit where date got set wrong in case it has been entered as "yyyy-mm-dd". - Fixed problems when using MOD_GZIP (Thanks Ville Skyttä). - Fixed Makefile once again (Thanks Zzam for pointing me to this). - Added patches submitted by stefan.h (Thanks!): -> New config option EPG_PRUNE. You can set a channel number up to which VDRAdmin will read EPG. Might reduce memory usage and read-in time. Set to "0" to read all channels. -> Optimizations and bug fixes. - Added install files for Debian (Thanks to Steffen Oberle for requesting and troubleshooting).
Diffstat (limited to 'debian')
-rw-r--r--debian/NEWS2
-rw-r--r--debian/README.Debian23
-rw-r--r--debian/changelog135
-rw-r--r--debian/compat1
-rw-r--r--debian/control18
-rw-r--r--debian/copyright26
-rw-r--r--debian/patches/00list2
-rw-r--r--debian/patches/01_dist-var.dpatch21
-rw-r--r--debian/patches/03_cfgfiles-fhs.dpatch28
-rw-r--r--debian/postinst66
-rw-r--r--debian/postrm24
-rw-r--r--debian/prerm6
-rw-r--r--debian/rules52
-rw-r--r--debian/vdradmin.default20
-rw-r--r--debian/vdradmin.dirs2
-rw-r--r--debian/vdradmin.init91
-rw-r--r--debian/vdradmin.install9
-rw-r--r--debian/vdradmind.conf39
-rw-r--r--debian/watch2
19 files changed, 567 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..d3976f3
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,2 @@
+vdradmin (0.97-am3.0) unstable; urgency=low
+
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..9119fb4
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,23 @@
+vdradmin for Debian
+-------------------
+
+This package provides a working config-file under /var/lib/vdradmin/vdradmind.conf,
+this files uses a standard-username and standard-password (linvdr/linvdr), you
+should change this before you enable the vdradmin-service in
+/etc/default/vdradmin, alternatively you can generate a new config with:
+
+vdradmin.pl --config
+
+ -- Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>, Fri, 6 Aug 2004 22:57:28 +0200
+
+
+To hide vdradmin behind apache:
+
+ you will need apache with mod_proxy and these lines in httpd.conf:
+
+ <IfModule mod_proxy.c>
+ ProxyRequests Off
+ ProxyPass /vdradmin/ http://127.0.0.1:8001/
+ </IfModule>
+
+ -- Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>, Wed, 1 Oct 2003 21:07:47 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d0cfcb2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,135 @@
+vdradmin (0.97-am3.1) unstable; urgency=low
+
+vdradmin (0.97-am3.0) unstable; urgency=low
+
+ * vdr-1.3.23
+
+vdradmin (0.96-5.ctvdr.3) unstable; urgency=low
+
+ * Added fix for new date format in vdr > 1.2.6 (thx to Andreas Mair,
+ Torsten Lang)
+
+ -- Tobias Grimm <tg@e-tobi.net> Sun, 3 Apr 2005 19:11:39 +0200
+
+vdradmin (0.96-5.ctvdr.2) unstable; urgency=low
+
+ * Made vdradmind.conf readable by group "vdr" (may be needed by
+ autotimer plugin)
+
+ -- Tobias Grimm <tg@e-tobi.net> Sun, 3 Apr 2005 13:45:13 +0200
+
+vdradmin (0.96-5.ctvdr.1) unstable; urgency=low
+
+ * Tobias Grimm <tg@e-tobi.net>
+ - Made package more compatible to official Debian version
+ * Thomas Schmidt <tschmidt@debian.org>
+ - From now on vdradmin will run under the user vdradmin,
+ the owner of the cfg-file will be changed in postinst
+ - Changed path of vdradmind.{conf,at} from /etc/vdradmin/ to
+ /var/lib/vdradmin to comply with the FHS (existing files
+ will be moved in postinst)
+
+ -- Tobias Grimm <tg@e-tobi.net> Sun, 27 Mar 2005 14:33:27 +0200
+
+vdradmin (0.96-3.ctvdr.1) unstable; urgency=low
+
+ * New upstream release
+ * changed version numbering to "backports.org"-style to reflect relationship
+ to official debian package
+ * Modified streaming patch to allow streaming of recordings with
+ dot, slash, double underscore and parenthesis in filename
+ * Converted all patches to shorter format for new dpatch
+ * Added dist-var patch, that change vdradmin.pl to search for it's
+ files in system-directories, instead of local, relative paths
+ (taken from official debian version 0.96-3)
+ * Added 02_sectmpfiles.dpatch: use File::Temp to create temporary
+ files, to prevent possible symlink-attacks (Closes: #287601)
+ (taken from official debian version 0.96-3)
+ * Set permissions of /etc/vdradmin/vdradmind.conf to 600 on new
+ installations (users with an existing installation should
+ ensure that the cfg-file has a permission of 600)
+ (taken from official debian version 0.96-3)
+ * using dh_install now
+ * Added manpage for vdradmin.pl (taken from official debian version 0.96-2)
+ * Set section to "web" and architecture to "all", set standards version to
+ 3.6.1
+ * Fixed depends (no longer depends on vdr, but suggests it)
+ * Added watch file
+ * The vdradmin daemon can now be enabled/disabled in /etc/default/vdradmin
+ (taken from official debian version 0.96-3)
+ * Do not install Base64.pm, Template.pm and RescDescent.pm
+ from upstream anymore, depend on libhtml-template-perl and
+ libparse-rescdescent-perl (Base64.pm is allready provided by
+ perl) (taken from official debian version 0.96-2)
+ * Link /usr/share/vdradmin/template/{English,French}/bilder to
+ /usr/share/vdradmin/template/Deutsch/bilder, this reduces the
+ size of the deb by about 50% (taken from official debian version 0.96-2)
+ * Took over README.Debian from official debian version 0.96-3
+ * added debian/compat
+
+ -- Tobias Grimm <tg@e-tobi.net> Thu, 30 Dec 2004 22:20:00 +0100
+
+vdradmin (0.95-ct-10) unstable; urgency=low
+
+ * Fix rec streaming patch: slashes in dir names and order
+
+ -- Peter Siering <ps@ctmagazin.de> Fri, 29 Oct 2004 11:00:00 +0100
+
+vdradmin (0.95-ct-9) unstable; urgency=low
+
+ * extracted Peter Sierings modifications as 05_streaming.dpatch
+
+ -- Tobias Grimm <tg@e-tobi.net> Sat, 21 Mar 2004 16:00:00 +0100
+
+vdradmin (0.95-ct-8) unstable; urgency=low
+
+ * added fix to rec_stream to skip "new"-char at time
+
+ -- Tobias Grimm <tg@e-tobi.net> Wed, 17 Feb 2003 21:30:00 +0100
+
+vdradmin (0.95-ct-7) unstable; urgency=low
+
+ * changed additional_images -patch to work within CVS source-dirs too
+ * added patch to fix problem with vdr's Wareagle Icon Patch
+ (Thanks to HFlor from vdrportal.de)
+
+ -- Tobias Grimm <tg@e-tobi.net> Sat, 08 Feb 2003 23:50:00 +0100
+
+vdradmin (0.95-ct-6) unstable; urgency=low
+
+ * vdradmin is distributed as non-native package from now on
+
+ -- Tobias Grimm <tg@e-tobi.net> Sat, 08 Feb 2003 23:50:00 +0100
+
+vdradmin (0.95-ct-5) unstable; urgency=low
+
+ * new upstream release
+ * includes fix for using through apache
+
+ -- Peter Siering <ps@ctmagazin.de> Tue, 22 Dec 2003 00:30:00 +0100
+
+vdradmin (0.94-ct-4) unstable; urgency=low
+
+ * minor streaming fixes, repair init
+
+ -- Peter Siering <ps@ctmagazin.de> Tue, 28 Nov 2003 10:00:00 +0100
+
+vdradmin (0.94-ct-3) unstable; urgency=low
+
+ * incorporated (live) streaming functions
+
+ -- Peter Siering <ps@ctmagazin.de> Tue, 25 Nov 2003 12:00:00 +0100
+
+vdradmin (0.94-2) unstable; urgency=low
+
+ * fixed vdradmind.pl location in init skript
+
+ -- Peter Siering <ps@ctmagazin.de> Sun, 16 Nov 2003 12:00:00 +0100
+
+vdradmin (0.94-1) unstable; urgency=low
+
+ * Initial Release.
+ * includes daylight saving fix
+
+ -- Peter Siering <ps@ctmagazin.de> Thu, 30 Oct 2003 00:13:40 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..223ca65
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: vdradmin
+Section: web
+Priority: optional
+Maintainer: Peter Siering <ps@ctmagazin.de>
+Origin: ctvdr
+Bugs: mailto:pkg-vdr-dvb-devel@lists.alioth.debian.org
+Build-Depends-Indep: debhelper (>= 4.0.0), dpatch (>= 2.0.9)
+Standards-Version: 3.6.1
+
+Package: vdradmin
+Architecture: all
+Depends: perl, libcompress-zlib-perl, libhtml-template-perl, libparse-recdescent-perl
+Suggests: vdr
+Description: VDRadmin is a web frontend to VDR
+ VDRadmin is a web frontend to Klaus Schmidingers
+ Video Disk Recorder. Beside that it adds some extras
+ to VDR like auto timers; that are some kind of
+ search lists to the electronic program guide (EPG).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d005dd8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+This package was debianized by Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de> on
+Wed, 1 Oct 2003 20:36:52 +0200.
+It was modified for VDRAdmin-AM by Andreas Mair <mail@andreas.vdr-developer.org>.
+
+It was downloaded from http://andreas.vdr-developer.org
+
+Upstream Author: Thomas Koch <tom@linvdr.org>, Andreas Mair <mail@andreas.vdr-developer.org>
+
+Copyright: 2001-2004, Thomas Koch <tom@linvdr.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ see /usr/share/common-licenses/GPL-2
+
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 || {};
+
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..735d586
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,66 @@
+#!/bin/sh -e
+set -e
+
+TEMPLATE_DIR=/usr/share/vdradmin/template
+
+# Check if there are still cfgfiles in /etc/vdradmin/ and move them
+# to /var/lib/vdradmin
+if [ ! -f /var/lib/vdradmin/vdradmind.conf ]; then
+ if [ -f /etc/vdradmin/vdradmind.conf ]; then
+ mv /etc/vdradmin/vdradmind.conf /var/lib/vdradmin/
+ else
+ cp /usr/share/doc/vdradmin/examples/vdradmind.conf /var/lib/vdradmin/
+ fi
+fi
+
+[ -e /etc/vdradmin/vdradmind.conf ] || ln -s /var/lib/vdradmin/vdradmind.conf \
+/etc/vdradmin/vdradmind.conf
+
+if [ ! -f /var/lib/vdradmin/vdradmind.at ]; then
+ [ ! -f /etc/vdradmin/vdradmind.at ] || mv /etc/vdradmin/vdradmind.at /var/lib/vdradmin/
+fi
+
+# ensure that user and group 'vdradmin' exist
+USER=vdradmin
+GROUP=vdradmin
+if ! getent group | grep -q "^$GROUP:" ; then
+ echo -n "Adding group $GROUP.."
+ addgroup --quiet --system $GROUP
+ echo "..done"
+fi
+if ! getent passwd | grep -q "^$USER:"; then
+ echo -n "Adding user $USER.."
+ adduser --system --home /var/lib/vdradmin --shell /bin/false \
+ --gecos "VDRAdmin user" --no-create-home \
+ --disabled-login --disabled-password \
+ --ingroup $GROUP \
+ $USER
+ echo "...done"
+fi
+
+# ensure vdradmind.at (auto timers) exists
+ATFILE=/var/lib/vdradmin/vdradmind.at
+[ -e $ATFILE ] || touch $ATFILE
+
+# ensure that vdradmin's config files have the correct owner
+[ ! -d /var/lib/vdradmin ] || chown -R $USER:$GROUP /var/lib/vdradmin/
+
+# change the permissions of the cfg-file to 0600
+[ ! -e /var/lib/vdradmin/vdradmind.conf ] || chmod 0600 /var/lib/vdradmin/vdradmind.conf
+
+# change the owner and group of the logfile to vdradmin
+[ ! -e /var/log/vdradmind.log ] || chown $USER:$GROUP /var/log/vdradmind.log
+
+# make auto timer file "read/writeable" by group vdr and config file readable
+# by group "vdr",so that vdr plugins (Autotimeredit plugin) get access
+if getent group | grep -q "^vdr:" ; then
+ if [ -d /var/lib/vdradmin ] ; then
+ chgrp -R vdr /var/lib/vdradmin
+ chmod a=,ug=rwx /var/lib/vdradmin
+ chmod a=,ug=rw $ATFILE
+ CFGFILE=/var/lib/vdradmin/vdradmind.conf
+ [ -e $CFGFILE ] && chmod a=,u=rw,g=r $CFGFILE
+ fi
+fi
+
+##DEBHELPER##
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..e2e719a
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+set -e
+
+case "$1" in
+ purge)
+ rm -f /var/lib/vdradmin/vdradmind.conf > /dev/null 2>&1 || true
+ rm -f /var/lib/vdradmin/vdradmind.at > /dev/null 2>&1 || true
+ rm -f /var/lib/vdradmin/vdradmind.done > /dev/null 2>&1 || true
+ rm -f /var/lib/vdradmin/vdradmind.bl > /dev/null 2>&1 || true
+ rm -f /etc/vdradmin/vdradmind.conf > /dev/null 2>&1 || true
+
+ chown root:root /var/log/vdradmind.log > /dev/null 2>&1 || true
+
+ deluser vdradmin > /dev/null || true
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+##DEBHELPER##
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..87380fc
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+set -e
+
+TEMPLATE_DIR=/usr/share/vdradmin/template
+
+##DEBHELPER##
diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..2923e6c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# include dpatch stuff
+include /usr/share/dpatch/dpatch.make
+
+clean: clean-patched unpatch
+
+clean-patched:
+ dh_testdir
+ dh_testroot
+ dh_clean
+
+build: patch-stamp
+ # Nothing to build here
+ #
+ # Note: all files are installed using dh_install
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ dh_installdirs
+
+# Build architecture-independent files here.
+binary-indep: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs HISTORY.am
+ dh_installdocs
+ dh_installexamples debian/vdradmind.conf
+ dh_install
+ dh_installinit
+ dh_installman
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_perl
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep
+.PHONY: build clean binary-indep install patch unpatch
diff --git a/debian/vdradmin.default b/debian/vdradmin.default
new file mode 100644
index 0000000..cbf4813
--- /dev/null
+++ b/debian/vdradmin.default
@@ -0,0 +1,20 @@
+# Defaults for vdradmin initscript
+# sourced by /etc/init.d/vdradmin
+# installed at /etc/default/vdradmin by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Should vdradmin's init-script be enabled?
+
+#################################################################
+# ATTENTION! YOU SHOULD MODIFY /var/lib/vdradmin/vdradmind.conf #
+# before enabling this, because the default config uses a #
+# really simple default username/password (linvdr/linvdr) #
+#################################################################
+
+ENABLED="1"
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/debian/vdradmin.dirs b/debian/vdradmin.dirs
new file mode 100644
index 0000000..0e9961e
--- /dev/null
+++ b/debian/vdradmin.dirs
@@ -0,0 +1,2 @@
+var/lib/vdradmin
+etc/vdradmin
diff --git a/debian/vdradmin.init b/debian/vdradmin.init
new file mode 100644
index 0000000..24f7a99
--- /dev/null
+++ b/debian/vdradmin.init
@@ -0,0 +1,91 @@
+#! /bin/sh
+#
+#
+# Init-script for vdradmin, created by Thomas Schmidt <thomas.schmidt@in.stud.tu-ilmenau.de>
+#
+#
+
+# Default Settings:
+
+# Username vdradmin should run as:
+USER=vdradmin
+
+# Group under which vdradmin should run:
+GROUP=vdradmin
+
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/vdradmind.pl
+NAME=vdradmin
+DESC="VDR Webadministration interface"
+
+test -x $DAEMON || exit 0
+
+# Include vdradmin defaults if available
+if [ -f /etc/default/vdradmin ] ; then
+ . /etc/default/vdradmin
+fi
+
+test "$ENABLED" != "0" || exit 0
+
+set -e
+
+# Create Temporary Directory
+create_temp ()
+{
+ TEMPDIR=`mktemp -d -p /tmp vdradmin-XXXXXX`
+
+ # Check if the group vdr exists and make vdr
+ # the owner of the temporary directory
+ if getent group | grep -q "^vdr:" ; then
+ chown vdr $TEMPDIR
+ fi
+
+ chgrp vdradmin $TEMPDIR
+ chmod 2770 $TEMPDIR
+}
+
+# Check if the logfile exists allready, if not, create it and set
+# group and owner to $USER:$GROUP
+create_logfile ()
+{
+ LOGFILE="/var/log/vdradmind.log"
+ if [ ! -e $LOGFILE ] ; then
+ touch $LOGFILE
+ chown $USER:$GROUP $LOGFILE
+ fi
+}
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ create_temp
+ create_logfile
+ TEMPDIR=$TEMPDIR start-stop-daemon --start \
+ -c $USER:$GROUP -b -m --pidfile /var/run/vdradmin.pid \
+ --exec /usr/bin/vdradmind.pl -- -nf
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop -q -o --pidfile /var/run/vdradmin.pid
+ echo "$NAME."
+ ;;
+ restart|force-reload)
+ echo -n "Restarting $DESC: "
+ create_temp
+ create_logfile
+ start-stop-daemon --stop -q -o --pidfile /var/run/vdradmin.pid
+ TEMPDIR=$TEMPDIR start-stop-daemon --start \
+ -c $USER:$GROUP -b -m --pidfile /var/run/vdradmin.pid \
+ --exec /usr/bin/vdradmind.pl -- -nf
+ echo "$NAME."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/vdradmin.install b/debian/vdradmin.install
new file mode 100644
index 0000000..cfb76f1
--- /dev/null
+++ b/debian/vdradmin.install
@@ -0,0 +1,9 @@
+lib/ usr/share/vdradmin/
+
+template/ usr/share/vdradmin/
+
+i18n/ usr/share/vdradmin/
+
+vdradmind.pl usr/bin/
+
+vdradmind.pl.1 usr/share/man/man1/
diff --git a/debian/vdradmind.conf b/debian/vdradmind.conf
new file mode 100644
index 0000000..dbac378
--- /dev/null
+++ b/debian/vdradmind.conf
@@ -0,0 +1,39 @@
+AT_FUNC = 1
+AT_LIFETIME = 99
+AT_PRIORITY = 99
+AT_TIMEOUT = 120
+CACHE_LASTUPDATE = 1112088214
+CACHE_TIMEOUT = 60
+CHANNELS_WANTED_AUTOTIMER = 0
+CHANNELS_WANTED_PRG = 0
+CHANNELS_WANTED_SUMMARY = 0
+EPG_DIRECT = 0
+EPG_FILENAME = /var/cache/vdr/epg.data
+GUEST_ACCOUNT = 0
+LANGUAGE = Deutsch
+LOCAL_NET = 0.0.0.0/32
+LOGFILE = vdradmind.log
+LOGGING = 1
+LOGINPAGE = 1
+LOGLEVEL = 81
+MOD_GZIP = 0
+PASSWORD = linvdr
+PASSWORD_GUEST =
+RECORDINGS = 2
+SERVERHOST = 0.0.0.0
+SERVERPORT = 8001
+SKIN = copper
+ST_FUNC = 1
+ST_STREAMDEV_PORT = 3000
+ST_URL =
+TIMES = 18:00, 20:00, 21:00, 22:00
+TM_LIFETIME = 99
+TM_MARGIN_BEGIN = 3
+TM_MARGIN_END = 3
+TM_PRIORITY = 99
+USERNAME = linvdr
+USERNAME_GUEST =
+VDR_HOST = localhost
+VDR_PORT = 2001
+VIDEODIR = /video
+ZEITRAHMEN = 1
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8497e1d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://linvdr.org/download/vdradmin/ vdradmin.*-([\d+\.]+|\d+)\.tar(\.gz|\.bz2) debian uupdate