[grass] 01/01: Use dpkg-maintscript-helper to replace directories with symlinks.
Bas Couwenberg
sebastic at xs4all.nl
Tue Jan 27 22:18:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch experimental
in repository grass.
commit bbb2bb0127c19e8b291f93bc0bfe42d2e1bfb225
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Tue Jan 27 21:23:02 2015 +0100
Use dpkg-maintscript-helper to replace directories with symlinks.
Cherry-picked commit 4e3dcb8d9b7fac3261fd14a988844ac708249636 from jessie branch.
---
debian/changelog | 2 ++
debian/grass-gui.postinst | 16 ++++++++++++++++
debian/grass-gui.postrm | 16 ++++++++++++++++
debian/grass-gui.preinst | 16 ++++++++++++++++
4 files changed, 50 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6723a0d..e68607f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,8 @@ grass (7.0.0~rc1-1) UNRELEASED; urgency=medium
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
+ * Use dpkg-maintscript-helper to replace directories with symlinks.
+ (closes: #776349)
-- Bas Couwenberg <sebastic at xs4all.nl> Thu, 15 Jan 2015 01:15:41 +0100
diff --git a/debian/grass-gui.postinst b/debian/grass-gui.postinst
new file mode 100644
index 0000000..f6318cd
--- /dev/null
+++ b/debian/grass-gui.postinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directories to symlinks (#776349)
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/etc/gui/icons /usr/share/grass64/etc/gui/icons 7.0.0~rc1-1~exp1~ -- "$@"
+
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/etc/gui/images /usr/share/grass64/etc/gui/images 7.0.0~rc1-1~exp1~ -- "$@"
+
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/bwidget/images /usr/share/grass64/bwidget/images 7.0.0~rc1-1~exp1~ -- "$@"
+fi
diff --git a/debian/grass-gui.postrm b/debian/grass-gui.postrm
new file mode 100644
index 0000000..f6318cd
--- /dev/null
+++ b/debian/grass-gui.postrm
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directories to symlinks (#776349)
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/etc/gui/icons /usr/share/grass64/etc/gui/icons 7.0.0~rc1-1~exp1~ -- "$@"
+
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/etc/gui/images /usr/share/grass64/etc/gui/images 7.0.0~rc1-1~exp1~ -- "$@"
+
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/bwidget/images /usr/share/grass64/bwidget/images 7.0.0~rc1-1~exp1~ -- "$@"
+fi
diff --git a/debian/grass-gui.preinst b/debian/grass-gui.preinst
new file mode 100644
index 0000000..f6318cd
--- /dev/null
+++ b/debian/grass-gui.preinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directories to symlinks (#776349)
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/etc/gui/icons /usr/share/grass64/etc/gui/icons 7.0.0~rc1-1~exp1~ -- "$@"
+
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/etc/gui/images /usr/share/grass64/etc/gui/images 7.0.0~rc1-1~exp1~ -- "$@"
+
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/grass64/bwidget/images /usr/share/grass64/bwidget/images 7.0.0~rc1-1~exp1~ -- "$@"
+fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/grass.git
More information about the Pkg-grass-devel
mailing list