From ae0612370d229b886c212d390b47ea79dd65c67d Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Sat, 22 Aug 2009 22:47:27 +0300 Subject: [PATCH] Packaging fixes * It seems that fpdb gets installed into /usr/share/python-support/ while many other packages end up in .../pyshared; fixed the symlink target * Fixed mail address in changelog, which now is the correct one * Added postinst script to make fpdb.py executable again. This hack is needed because dh_fixperms didn't allow to ignore the script's permissions and the file is located in .../fpdb/ along with all the other fpdb modules * Told package manager to create /usr/bin/fpdb symlink pointing to fpdb.py so we now have an application named "fpdb" in the system --- packaging/debian/changelog | 2 +- packaging/debian/links | 2 +- packaging/debian/python-fpdb.postinst | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 packaging/debian/python-fpdb.postinst diff --git a/packaging/debian/changelog b/packaging/debian/changelog index 994884c6..84ecbce5 100644 --- a/packaging/debian/changelog +++ b/packaging/debian/changelog @@ -2,4 +2,4 @@ free-poker-tools (0.10.99) unstable; urgency=low * Initial packaging release. - -- Mika Bostrom Thu, 20 Aug 2009 06:30:53 +0300 + -- Mika Bostrom Thu, 20 Aug 2009 06:30:53 +0300 diff --git a/packaging/debian/links b/packaging/debian/links index 5a4601a7..01d1c490 100644 --- a/packaging/debian/links +++ b/packaging/debian/links @@ -1 +1 @@ -/usr/share/pyshared/fpdb/fpdb.py /usr/bin/fpdb +/usr/share/python-support/python-fpdb/fpdb/fpdb.py /usr/bin/fpdb diff --git a/packaging/debian/python-fpdb.postinst b/packaging/debian/python-fpdb.postinst new file mode 100644 index 00000000..1f618958 --- /dev/null +++ b/packaging/debian/python-fpdb.postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +# When installed into .../fpdb/ the script gets mode 644 +# Note: "dh_fixperms -Xfpdb.py" did not work, hence this hack +chmod 755 /usr/bin/fpdb