[SCM] vdr-plugin-vnsiserver/master: Use links control file instead of postinst/postrm

rbalint at users.alioth.debian.org rbalint at users.alioth.debian.org
Sat Jan 3 09:02:25 UTC 2015


The following commit has been merged in the master branch:
commit fb59b01991d140c779bf84a247f173f5e5c582ca
Author: Balint Reczey <balint at balintreczey.hu>
Date:   Sat Jan 3 09:52:11 2015 +0100

    Use links control file instead of postinst/postrm

diff --git a/debian/vdr-plugin-vnsiserver.links b/debian/vdr-plugin-vnsiserver.links
new file mode 100644
index 0000000..3bad1c3
--- /dev/null
+++ b/debian/vdr-plugin-vnsiserver.links
@@ -0,0 +1 @@
+etc/vdr/plugins/vnsiserver/allowed_hosts.conf         var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
diff --git a/debian/vdr-plugin-vnsiserver.postinst b/debian/vdr-plugin-vnsiserver.postinst
deleted file mode 100644
index e910e5c..0000000
--- a/debian/vdr-plugin-vnsiserver.postinst
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-# postinst script for vdr-plugin-vnsiserver
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    configure)
-        chown -R vdr:vdr /var/lib/vdr/plugins/vnsiserver
-	[ -h /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf ] || ln -s /etc/vdr/plugins/vnsiserver/allowed_hosts.conf /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-	[ -h /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf ] && rm /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
-    ;;
-
-    *)
-        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
diff --git a/debian/vdr-plugin-vnsiserver.postrm b/debian/vdr-plugin-vnsiserver.postrm
deleted file mode 100644
index 3331b69..0000000
--- a/debian/vdr-plugin-vnsiserver.postrm
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-# postrm script for vdr-plugin-vnsiserver
-#
-# see: dh_installdeb(1)
-
-set -e
-
-case "$1" in
-    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-	[ -h /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf ] && rm /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
-    ;;
-
-    *)
-        echo "postrm 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

-- 
vdr-plugin-vnsiserver packaging



More information about the pkg-multimedia-commits mailing list