Add apport hook on Ubuntu and derivatives (reduces the package delta).
Signed-off-by: Luca Niccoli <lultimouomo@gmail.com>
Luca Niccoli
10 years ago
1 | 1 | |
2 | 2 | # Uncomment this to turn on verbose mode. |
3 | 3 | #export DH_VERBOSE=1 |
4 | ||
5 | derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no") | |
4 | 6 | |
5 | 7 | configure: configure-stamp |
6 | 8 | configure-stamp: |
31 | 33 | dh_installdirs |
32 | 34 | $(MAKE) DESTDIR=$(CURDIR)/debian/printer-driver-splix CUPSPPD=/usr/share/ppd/splix DRV_ONLY=1 install |
33 | 35 | install -D --mode=644 debian/splix.ppd-updater $(CURDIR)/debian/printer-driver-splix/usr/share/cups/ppd-updaters/splix.ppd-updater |
36 | ifeq ($(derives_from_ubuntu),yes) | |
37 | # Install Apport hook on Ubuntu and derivatives | |
38 | install -D -m 644 debian/local/apport-hook.py $(CURDIR)/debian/printer-driver-splix/usr/share/apport/package-hooks/source_splix.py | |
39 | endif | |
34 | 40 | |
35 | 41 | # Build architecture-dependent files here. |
36 | 42 | binary-arch: install |