Le Thursday 24 February 2011 13:12:13 Till Kamppeter, vous avez écrit :
OK. Then take the Apport hook into the Debian package and we keep
foo2zjs identical on Debian and Ubuntu.
Till
If this is done (and I think it's desirable for Ubuntu), please do it in a
Distribution-dependent way, see e.g. the foomatic-filters debian/rules:
derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu&& echo "yes") || echo "no")
(…)
override_dh_install:
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
This way you have one source package, but the binary package gets different
contents depending on the distribution.