aboutsummaryrefslogtreecommitdiff
path: root/audio/squeezecenter/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'audio/squeezecenter/pkg-install')
-rw-r--r--audio/squeezecenter/pkg-install12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/squeezecenter/pkg-install b/audio/squeezecenter/pkg-install
index 7feb30ff6a04..3f1bc6d469ca 100644
--- a/audio/squeezecenter/pkg-install
+++ b/audio/squeezecenter/pkg-install
@@ -1,6 +1,7 @@
#!/bin/sh
# $FreeBSD$
+name=slimserver
u=slimserv
g=slimserv
ugid=104
@@ -8,6 +9,10 @@ homedir=/nonexistent
shell=/sbin/nologin
comment="Slim Devices SlimServer pseudo-user"
statedir=/var/db/slimserver
+pidfile=/var/run/${name}.pid
+logfile=/var/log/slimserver.log
+logcomment="# added by audio/slimserver port"
+logline="${logfile} ${u}:${g} 644 3 100 * Z ${pidfile}"
case $2 in
PRE-INSTALL)
@@ -38,5 +43,12 @@ POST-INSTALL)
mkdir -p ${statedir}
chown -R ${u}:${g} ${statedir}
fi
+ if egrep -q "^${logfile}\>" /etc/newsyslog.conf; then
+ echo "Using existing /etc/newsyslog.conf entry."
+ else
+ echo "Adding slimserver log entry to /etc/newsyslog.conf."
+ echo "$logcomment" >> /etc/newsyslog.conf
+ echo "$logline" >> /etc/newsyslog.conf
+ fi
;;
esac