ports/65799: Port update: audio/slimserver
Dan Pelleg
daniel+gnats at pelleg.org
Wed Apr 21 22:10:22 UTC 2004
The following reply was made to PR ports/65799; it has been noted by GNATS.
From: Dan Pelleg <daniel+gnats at pelleg.org>
To: freebsd-gnats-submit at FreeBSD.org, brooks at freebsd.org
Cc:
Subject: Re: ports/65799: Port update: audio/slimserver
Date: Wed, 21 Apr 2004 18:03:34 -0400
[repost, not as an attachment]
Additional fixes:
- add a log rotation entry
- add a warning about the default settings
This patch has been reviewed by the maintainer.
diff -ruN 5.1.4/Makefile 5.1.4_1/Makefile
--- 5.1.4/Makefile Mon Apr 19 21:25:05 2004
+++ 5.1.4_1/Makefile Wed Apr 21 17:12:13 2004
@@ -92,6 +92,7 @@
post-install:
@${SH} ${.CURDIR}/pkg-install ${PKGNAME} POST-INSTALL
+ @${CAT} ${PKGMESSAGE}
########################################################################
# The following targets are for the port maintainer. Use are your own #
diff -ruN 5.1.4/pkg-install 5.1.4_1/pkg-install
--- 5.1.4/pkg-install Mon Apr 19 21:24:41 2004
+++ 5.1.4_1/pkg-install Wed Apr 21 17:26:16 2004
@@ -1,6 +1,7 @@
#!/bin/sh
# $FreeBSD: ports/audio/slimserver/pkg-install,v 1.1 2004/04/16 13:13:30 krion Exp $
+name=slimserver
u=slimserv
g=slimserv
ugid=104
@@ -8,6 +9,10 @@
shell=/sbin/nologin
comment="Slim Devices SlimServer pseudo-user"
statedir=/var/db/slimserver
+pidfile=/var/run/${name}.pid
+logfile=/var/log/slimserver.log
+logline="${logfile} ${u}:${g} 644 3 100 * Z ${pidfile}"
+log_comment_line="# added by audio/slimserver port"
case $2 in
PRE-INSTALL)
@@ -37,6 +42,15 @@
if [ ! -d ${statedir} ]; then
mkdir -p ${statedir}
chown -R ${u}:${g} ${statedir}
+ fi
+ if grep -q "^[^#]*${logfile}" /etc/newsyslog.conf; then
+ echo -n "It looks like you already have some logging set up, so I "
+ echo "will use it."
+ else
+ echo "Adding slimserver log entry to \"/etc/newsyslog.conf\"."
+ echo "$log_comment_line" >>/etc/newsyslog.conf
+ echo "$logline" >>/etc/newsyslog.conf
+ echo "Done."
fi
;;
esac
diff -ruN 5.1.4/pkg-message 5.1.4_1/pkg-message
--- 5.1.4/pkg-message Wed Dec 31 19:00:00 1969
+++ 5.1.4_1/pkg-message Wed Apr 21 12:31:06 2004
@@ -0,0 +1,7 @@
+Note on security settings:
+
+The slimserver service is wide open, and by default there is no password.
+You can control access to your music collection by pointing your web
+browser to http://localhost:9000/, and then choosing:
+
+Server Settings/Additional Server Settings/Security
More information about the freebsd-ports-bugs
mailing list