r74726 - in /trunk/libdevel-dprof-perl/debian: postrm preinst

dom at users.alioth.debian.org dom at users.alioth.debian.org
Wed May 18 21:55:12 UTC 2011


Author: dom
Date: Wed May 18 21:54:51 2011
New Revision: 74726

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=74726
Log:
divert dprofpp and its manpage from the core

Added:
    trunk/libdevel-dprof-perl/debian/postrm
    trunk/libdevel-dprof-perl/debian/preinst

Added: trunk/libdevel-dprof-perl/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdevel-dprof-perl/debian/postrm?rev=74726&op=file
==============================================================================
--- trunk/libdevel-dprof-perl/debian/postrm (added)
+++ trunk/libdevel-dprof-perl/debian/postrm Wed May 18 21:54:51 2011
@@ -1,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = remove ]
+then
+    dpkg-divert --remove --package libdevel-dprof-perl --rename \
+        --divert /usr/bin/dprofpp.bundled /usr/bin/dprofpp
+
+    dpkg-divert --remove --package libdevel-dprof-perl --rename \
+        --divert /usr/share/man/man1/dprofpp.bundled.1.gz /usr/share/man/man1/dprofpp.1.gz
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: trunk/libdevel-dprof-perl/debian/preinst
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdevel-dprof-perl/debian/preinst?rev=74726&op=file
==============================================================================
--- trunk/libdevel-dprof-perl/debian/preinst (added)
+++ trunk/libdevel-dprof-perl/debian/preinst Wed May 18 21:54:51 2011
@@ -1,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = install ] || [ "$1" = upgrade ]
+then
+    dpkg-divert --add --package libdevel-dprof-perl --rename \
+        --divert /usr/bin/dprofpp.bundled /usr/bin/dprofpp
+
+    # this diversion is needed even if we don't actually ship dprofpp.1.gz,
+    # because otherwise it takes precedence over dprofpp.1p.gz (which we do
+    # ship)
+    dpkg-divert --add --package libdevel-dprof-perl --rename \
+        --divert /usr/share/man/man1/dprofpp.bundled.1.gz /usr/share/man/man1/dprofpp.1.gz
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0




More information about the Pkg-perl-cvs-commits mailing list