diff options
author | Didier Raboud <didier@raboud.com> | 2010-08-18 13:38:43 +0200 |
---|---|---|
committer | Didier Raboud <didier@raboud.com> | 2010-08-18 13:38:43 +0200 |
commit | a6cf6a4b2c668370cc038405aed2b8e7e3811fe7 (patch) | |
tree | 43785a88460ebbe840339dfa55a572c2dc7f72d2 /debian/rules | |
parent | 16a0fdbe930bae0222d080df1ebd325d76a8a99b (diff) |
Substitute the fallacious use of dpkg-vendor in the postinst by build-time distro detection.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 81e1f00..5a2eaf6 100755 --- a/debian/rules +++ b/debian/rules @@ -22,3 +22,15 @@ override_dh_install: ifeq ($(derives_from_ubuntu),yes) install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/foomatic-filters/usr/share/apport/package-hooks/source_foomatic-filters.py endif + + # Prepare the postinst with distro-specific versions + cp debian/foomatic-filters.postinst.in debian/foomatic-filters.postinst +ifeq ($(derives_from_ubuntu),yes) + # We derive from Ubuntu, the ps_accounting default change was made in version 3.0.2-20070719-0ubuntu1 + sed -i -e "s/#MOTHER_DISTRO#/Ubuntu/g" debian/foomatic-filters.postinst + sed -i -e "s/#FF_PS_DEFAULT_CHANGE_VERSION#/3.0.2-20070719-0ubuntu1/g" debian/foomatic-filters.postinst +else + # We derive from Debian, the ps_accounting default change was made in version 4.0.5-1 + sed -i -e "s/#MOTHER_DISTRO#/Debian/g" debian/foomatic-filters.postinst + sed -i -e "s/#FF_PS_DEFAULT_CHANGE_VERSION#/4.0.5-1/g" debian/foomatic-filters.postinst +endif |