| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
# Ubuntu enables this by default, but it breaks module loading; https://launchpad.net/bugs/2040488 |
| 5 |
export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
override_dh_auto_configure: |
| 11 |
dh_auto_configure -- \ |
| 12 |
--enable-btrfs \ |
| 13 |
--enable-lvm2 \ |
| 14 |
--enable-gtk-doc=$(if $(filter nodoc,$(DEB_BUILD_PROFILES)),no,yes) \ |
| 15 |
--with-udevdir=/usr/lib/udev \ |
| 16 |
--with-systemdsystemunitdir=/usr/lib/systemd/system |
| 17 |
|
| 18 |
execute_after_dh_auto_install: |
| 19 |
# install Apport hook on Ubuntu |
| 20 |
if dpkg-vendor --is ubuntu; then \ |
| 21 |
install -m 644 -D debian/local/apport-hook.py debian/udisks2/usr/share/apport/package-hooks/udisks2.py; \ |
| 22 |
fi |
| 23 |
|
| 24 |
execute_before_dh_install: |
| 25 |
find debian/tmp -name '*.la' -print -delete |
| 26 |
find debian/tmp -name 'libudisks2_*.a' -print -delete |
| 27 |
|
| 28 |
override_dh_installudev: |
| 29 |
dh_installudev -pudisks2 --name=insecure-fs --priority=70 |