diff --git a/Makefile b/Makefile index ef21f46..8f07d22 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ install-dirs: @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/cron.hourly @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/cron.daily @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/sysconfig + @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/logrotate.d @$(INSTALL_DIR) $(DESTDIR)$(bindir) @$(INSTALL_DIR) $(DESTDIR)$(sbindir) @$(INSTALL_DIR) $(DESTDIR)$(cgidir) @@ -108,6 +109,7 @@ install-data: @$(INSTALL_SCRIPT) etc/cron.hourly/66-autoport-chroot $(DESTDIR)$(sysconfdir)/cron.hourly/ @$(INSTALL_SCRIPT) etc/cron.daily/40-autodist-cleanold $(DESTDIR)$(sysconfdir)/cron.daily/ @$(INSTALL_SCRIPT) etc/cron.daily/40-autodist-upstream-updates $(DESTDIR)$(sysconfdir)/cron.daily/ + @$(INSTALL_SCRIPT) etc/logrotate.d/webbuild $(DESTDIR)$(sysconfdir)/logrotate.d/webbuild @$(INSTALL_DATA) autospec-conf $(DESTDIR)$(pck_statedir)/.autospec @touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.success @touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.skip diff --git a/etc/logrotate.d/webbuild b/etc/logrotate.d/webbuild new file mode 100644 index 0000000..d841c07 --- /dev/null +++ b/etc/logrotate.d/webbuild @@ -0,0 +1,8 @@ +/var/webbuild/access_log { + monthly + rotate 12 + copytruncate + compress + notifempty + missingok +}