1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/usr/bin/make -f
derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
is_debian := $(shell (dpkg-vendor --is Debian && echo "yes") || echo "no")
export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
override_dh_auto_configure:
# AC_PROG_GREP will look for binaries in PATH and thus find
# /usr/bin/foo before /bin/foo on merged-usr systems.
# Thus building binaries that won't work on non-merged systems.
# Explicitly set the path to avoid that.
CAT=/bin/cat CURL=/usr/bin/curl GREP=/bin/grep GZIP=/bin/gzip SH=/bin/bash WGET=/usr/bin/wget \
LIB_CUPS=/usr/lib/cups \
dh_auto_configure
override_dh_auto_build:
dh_auto_build -- PERL_INSTALLDIRS=vendor
override_dh_bugfiles:
# Only install the bug presubj on Debian
ifeq ($(is_debian),yes)
dh_bugfiles
endif
override_dh_install:
dh_install
install -D -m 644 debian/foomatic-db-engine.ppd-updater $(CURDIR)/debian/foomatic-db-engine/usr/share/cups/ppd-updaters/foomatic-db-engine
# Install the apport hook on Ubuntu and derivatives
ifeq ($(derives_from_ubuntu),yes)
install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/foomatic-db-engine/usr/share/apport/package-hooks/source_foomatic-db-engine.py
endif
|