1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--enable-werror \
--with-state-file-path=/var/lib/logrotate/status \
--with-default-mail-command=/usr/bin/mail
# Add Ubuntu customization to line 6
# because that's where Ubuntu had been adding these lines
execute_after_dh_install:
ifeq ($(shell dpkg-vendor --query vendor),Ubuntu)
sed -i -e "6r debian/ubuntu-logrotate.conf" \
debian/logrotate/etc/logrotate.conf
endif
|