freeradius: Add a logrotate configuration file
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
config/freeradius/logrotate | 11 +++++++++++
lfs/freeradius | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 config/freeradius/logrotate
new file mode 100644
@@ -0,0 +1,11 @@
+/var/log/radius/*.log /var/log/radius/radacct/*/* {
+ weekly
+ rotate 4
+ copytruncate
+ compress
+ notifempty
+ missingok
+ postrotate
+ /etc/init.d/freeradius reload &>/dev/null || true
+ endscript
+}
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = freeradius
-PAK_VER = 7
+PAK_VER = 8
DEPS = "samba"
@@ -141,6 +141,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
install -v -m 644 $(DIR_SRC)/config/backup/includes/freeradius \
/var/ipfire/backup/addons/includes/freeradius
+ # Logrotate
+ -mkdir -pv /etc/logrotate.d
+ install -v -m 644 $(DIR_SRC)/config/freeradius/logrotate \
+ /etc/logrotate.d/freeradius
+
#install initscripts
$(call INSTALL_INITSCRIPT,freeradius)