From d2c44ff684504b8ae7115e2005e4ce04b7c74d6c Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 25 Aug 2008 19:06:22 +0000 Subject: [PATCH] first-cut ubuntu packaging from graphviz_2.16-3ubuntu2.diff.gz --- debian/libgraphviz4.postinst | 17 +++++++++++++++++ debian/libgraphviz4.postrm | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 debian/libgraphviz4.postinst create mode 100644 debian/libgraphviz4.postrm diff --git a/debian/libgraphviz4.postinst b/debian/libgraphviz4.postinst new file mode 100644 index 000000000..ebb91720f --- /dev/null +++ b/debian/libgraphviz4.postinst @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +# Update the configuration file (/usr/lib/graphviz/config3) +# Needed for the plugins too +if [ -x /usr/sbin/libgraphviz4-config-update ]; then + /usr/sbin/libgraphviz4-config-update -c +fi + +# Remove the old configuration file if present, see README.Debian-packaging +# Needed only in libgraphivzN +if [ -f /usr/lib/graphviz/config ]; then + rm -f /usr/lib/graphviz/config +fi + +#DEBHELPER# diff --git a/debian/libgraphviz4.postrm b/debian/libgraphviz4.postrm new file mode 100644 index 000000000..2bba22889 --- /dev/null +++ b/debian/libgraphviz4.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +# Remove the configuration file if present, see README.Debian-packaging +# Needed only in libgraphivzN +if [ -f /usr/lib/graphviz/config4 ]; then + rm -f /usr/lib/graphviz/config4 +fi + + +#DEBHELPER# -- 2.40.0