From 9bc88e820e60b6ecbce4113afc14fa56907048e2 Mon Sep 17 00:00:00 2001 From: svntobi Date: Sat, 11 Aug 2007 15:40:59 +0000 Subject: Added debian installation of menuorg.xml/xsd git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5678 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- debian/postinst | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 debian/postinst (limited to 'debian/postinst') diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..7464457 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,44 @@ +#!/bin/sh +# postinst script for vdr-plugin-menuorg +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +MENUORG_XML=/var/lib/vdr/plugins/menuorg.xml + +case "$1" in + configure) + [ -e "$MENUORG_XML" ] || \ + cp /usr/share/vdr-plugin-menuorg/menuorg.xml "$MENUORG_XML" + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + -- cgit v1.2.3