aboutsummaryrefslogtreecommitdiff
path: root/audio/squeezecenter/pkg-install
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2004-05-03 22:59:03 +0000
committerBrooks Davis <brooks@FreeBSD.org>2004-05-03 22:59:03 +0000
commitb2ba59343eb7eb3dcd9da08d10936ab5ef1e35b6 (patch)
tree37b614748e175570eb96c787b197c0573a386c3d /audio/squeezecenter/pkg-install
parent27acaba0b3608e2b189a8d65cfd85053b7c0b529 (diff)
downloadports-b2ba59343eb7eb3dcd9da08d10936ab5ef1e35b6.tar.gz
ports-b2ba59343eb7eb3dcd9da08d10936ab5ef1e35b6.zip
Notes
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