Codebase list pnm2ppa / 58e7153
Install Ubuntu's apport-hook in Ubuntu and derivatives (LP: #338442). Didier Raboud 12 years ago
2 changed file(s) with 17 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/make -f
1 #export DH_VERBOSE=1
1
2 derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
23
34 CFLAGS=-DLANG_EN -O2 -Wall
45
1415 dh_install
1516 # Make sure update-magicfilters is executable
1617 chmod +x debian/pnm2ppa/usr/share/pnm2ppa/update-magicfilter
18 ifeq ($(derives_from_ubuntu),yes)
19 # Install the apport hook on Ubuntu and derivatives
20 install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/pnm2ppa/usr/share/apport/package-hooks/source_pnm2ppa.py
21 endif
1722
1823 override_dh_installdocs:
1924 dh_installdocs
0 '''apport package hook for pnm2ppa
1
2 (c) 2009 Canonical Ltd.
3 Author: Brian Murray <brian@ubuntu.com>
4 '''
5
6 from apport.hookutils import *
7
8 def add_info(report):
9 attach_hardware(report)
10 attach_printing(report)