summaryrefslogtreecommitdiffstats
path: root/ham
diff options
context:
space:
mode:
Diffstat (limited to 'ham')
-rw-r--r--ham/svxlink/svxlink12
-rw-r--r--ham/svxlink/svxlink.SlackBuild3
2 files changed, 15 insertions, 0 deletions
diff --git a/ham/svxlink/svxlink b/ham/svxlink/svxlink
new file mode 100644
index 0000000000..606dccced6
--- /dev/null
+++ b/ham/svxlink/svxlink
@@ -0,0 +1,12 @@
+/var/log/svxlink
+/var/log/svxreflector
+{
+ missingok
+ notifempty
+ weekly
+ rotate 12
+ create 0644 svxlink daemon
+ postrotate
+ killall -HUP svxlink
+ endscript
+}
diff --git a/ham/svxlink/svxlink.SlackBuild b/ham/svxlink/svxlink.SlackBuild
index 407b9ad629..8d043635c1 100644
--- a/ham/svxlink/svxlink.SlackBuild
+++ b/ham/svxlink/svxlink.SlackBuild
@@ -140,6 +140,9 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.svxlink > $PKG/etc/rc.d/rc.svxlink.new
+mkdir -p $PKG/etc/logrotate.d
+cat $CWD/svxlink > $PKG/etc/logrotate.d/svxlink
+
# Rename .conf to .new to be processed by doinst.sh
rename .conf .conf.new $PKG/etc/svxlink/*
rename .conf .conf.new $PKG/etc/svxlink/svxlink.d/*.conf