File: rules

package info (click to toggle)
logrotate 3.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,984 kB
  • sloc: sh: 6,447; ansic: 5,102; makefile: 156
file content (20 lines) | stat: -rwxr-xr-x 526 bytes parent folder | download | duplicates (2)
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