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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
confflags = \
-Dsession_example=false \
-Ddaemon_user=colord \
-Dvapi=true \
-Ddocs=false \
-Dinstalled_tests=true \
-Dargyllcms_sensor=true \
export deb_systemd_tmpfiles_dir = $(shell pkgconf --variable=tmpfiles_dir systemd | sed s,^/,,)
export deb_systemd_sysusers_dir = $(shell pkgconf --variable=sysusers_dir systemd | sed s,^/,,)
ifeq ($(DEB_HOST_ARCH_OS),linux)
confflags += -Dsane=true
indep_flags = -Dprint_profiles=true
export deb_systemd_system_unit_dir = $(shell pkgconf --variable=systemd_system_unit_dir systemd | sed s,^/,,)
export deb_systemd_user_unit_dir = $(shell pkgconf --variable=systemd_user_unit_dir systemd | sed s,^/,,)
export deb_udev_dir = $(shell pkgconf --variable=udev_dir udev | sed s,^/,,)
else
confflags += -Dsane=false -Dsystemd=false -Dudev_rules=false
indep_flags = -Dprint_profiles=false
endif
override_dh_auto_configure-arch:
dh_auto_configure -- $(confflags)
override_dh_auto_configure-indep:
dh_auto_configure -- $(confflags) $(indep_flags)
execute_after_dh_fixperms-arch:
chmod 644 debian/colord/usr/share/bash-completion/completions/colormgr
execute_before_dh_install:
# Exclude systemd and udev related files
grep -E -v 'deb_systemd_system_unit_dir|deb_systemd_user_unit_dir|deb_udev_dir' debian/colord.install > debian/colord.install.kfreebsd
grep -E -v 'deb_systemd_system_unit_dir|deb_systemd_user_unit_dir|deb_udev_dir' debian/colord.install > debian/colord.install.hurd
execute_before_dh_clean:
rm -f debian/colord.install.kfreebsd
rm -f debian/colord.install.hurd
override_dh_makeshlibs:
dh_makeshlibs -Xcolord-sensors -Xcolord-plugins
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
# quite right for installed-tests
override_dh_fixperms:
dh_fixperms -Xusr/libexec/installed-tests
ifneq ($(filter %-tests,$(binaries)),)
chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests
endif
override_dh_auto_test:
ifeq ($(DEB_HOST_ARCH_ENDIAN),little)
dh_auto_test -- --timeout-multiplier 3
else
echo "Skipping tests; known broken on big endian systems"
endif
%:
dh $@
|