| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 | |
| 5 | %: |
| 6 | dh $@ |
| 7 | |
| 8 | # Disable ASM optimizations (--disable-md5-asm). |
| 9 | # This is not needed because the ASM-optimized implementation |
| 10 | # available is the MD5 hash, which is actually a no-op because we link |
| 11 | # against OpenSSL and rsync ends up using that library's |
| 12 | # implementation of the hash. Even then, the final binary ends up |
| 13 | # with the ASM-optimized version included, which makes it become |
| 14 | # CET-incompatible. |
| 15 | # Don't use bundled zlib (with-included-zlib=no). |
| 16 | override_dh_auto_configure: |
| 17 | mkdir -p zlib popt |
| 18 | touch zlib/dummy.in |
| 19 | touch popt/dummy.in |
| 20 | dh_auto_configure -- --with-included-zlib=no --disable-md5-asm --with-rrsync |
| 21 | |
| 22 | execute_before_dh_auto_clean: |
| 23 | rm -rf zlib popt |
| 24 | |
| 25 | override_dh_installsystemd: |
| 26 | dh_installsystemd --no-enable |