diff options
Diffstat (limited to 'audio/squeezeboxserver/files/pkg-install.in')
-rw-r--r-- | audio/squeezeboxserver/files/pkg-install.in | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/audio/squeezeboxserver/files/pkg-install.in b/audio/squeezeboxserver/files/pkg-install.in deleted file mode 100644 index d90d597b573a..000000000000 --- a/audio/squeezeboxserver/files/pkg-install.in +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/audio/squeezeboxserver/files/pkg-install.in,v 1.8 2008-09-02 19:51:04 brooks Exp $ - -name=%%PORTNAME%% -u=%%SLIMUSER%% -g=%%SLIMGROUP%% -ugid=104 -homedir=/nonexistent -shell=/sbin/nologin -comment="Slim Devices SlimServer/SqueezeCenter pseudo-user" -slimdir="%%PREFIX%%/%%SLIMDIR%%" -statedir=%%SLIMDBDIR%% -conffile=${statedir}/${name}.conf -playlistdir=${statedir}/playlists -pidfile=/var/run/${name}/${name}.pid -newsyslogfile=/etc/newsyslog.conf -logcomment="# added by audio/${name} port" -serverlogfile=/var/log/${name}/server.log -scannerlogfile=/var/log/${name}/scanner.log -serverlogline="${serverlogfile} ${u}:${g} 644 3 100 * J ${pidfile}" -scannerlogline="${scannerlogfile} ${u}:${g} 644 3 100 * J ${pidfile}" - -case $2 in -PRE-INSTALL) - if pw group show "${g}" >/dev/null 2>&1; then - echo "Using existing group \"${g}\"." - else - echo "Creating group \"${g}\", (gid: ${ugid})." - pw groupadd ${g} -g ${ugid} - if [ $? != 0 ]; then - echo "Failed to add group \"${g}\"." - exit 1 - fi - fi - if pw user show "${u}" >/dev/null 2>&1; then - echo "Using existing user \"${u}\"." - else - echo "Creating user \"${u}\", (uid: ${ugid})." - pw useradd ${u} -u ${ugid} -g ${ugid} -h - \ - -d ${homedir} -s ${shell} -c "${comment}" - if [ $? != 0 ]; then - echo "Failed to add user \"${u}\"." - exit 1 - fi - fi - ;; -POST-INSTALL) - if egrep -q "^${serverlogfile}\>" ${newsyslogfile}; then - echo "Using existing ${newsyslogfile} entry." - else - echo "Adding ${name} log entry to ${newsyslogfile}." - echo "$logcomment" >> ${newsyslogfile} - echo "$serverlogline" >> ${newsyslogfile} - echo "$scannerlogline" >> ${newsyslogfile} - fi - for file in %%CONFFILES%%; do - path="${slimdir}/${file}" - if [ ! -e ${path} ]; then - cp ${path}.sample ${path} - chmod 644 ${path} - fi - done - ;; -esac |