aboutsummaryrefslogtreecommitdiff
path: root/audio/squeezeboxserver/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/squeezeboxserver/files')
-rw-r--r--audio/squeezeboxserver/files/Custom.pm.in83
-rw-r--r--audio/squeezeboxserver/files/patch-Slim_Formats_XML.pm11
-rw-r--r--audio/squeezeboxserver/files/patch-Slim_Networking_mDNS.pm20
-rw-r--r--audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm11
-rw-r--r--audio/squeezeboxserver/files/patch-Slim_Plugin_Sirius_ProtocolHandler.pm11
-rw-r--r--audio/squeezeboxserver/files/patch-Slim_Web_Pages_Home.pm10
-rw-r--r--audio/squeezeboxserver/files/patch-convert.conf48
-rw-r--r--audio/squeezeboxserver/files/pkg-install.in64
-rw-r--r--audio/squeezeboxserver/files/softsqueeze.sh.in10
-rw-r--r--audio/squeezeboxserver/files/squeezecenter.sh.in77
10 files changed, 0 insertions, 345 deletions
diff --git a/audio/squeezeboxserver/files/Custom.pm.in b/audio/squeezeboxserver/files/Custom.pm.in
deleted file mode 100644
index ebc245b152bd..000000000000
--- a/audio/squeezeboxserver/files/Custom.pm.in
+++ /dev/null
@@ -1,83 +0,0 @@
-package Slim::Utils::OS::Custom;
-#package Slim::Utils::OS::FreeBSD;
-
-use strict;
-use base qw(Slim::Utils::OS::Unix);
-
-use Config;
-
-sub initDetails {
- my $class = shift;
-
- $class->{osDetails} = $class->SUPER::initDetails();
- $class->{osDetails}->{'os'} = 'FreeBSD';
- $class->{osDetails}->{osName} = 'FreeBSD';
-
- return $class->{osDetails};
-}
-
-sub initSearchPath {
- my $class = shift;
-
- $class->SUPER::initSearchPath();
-
- my @extra_paths = qw(/usr/local/libexec);
-
- Slim::Utils::Misc::addFindBinPaths(@extra_paths);
-}
-
-sub dirsFor {
- my ($class, $dir) = @_;
-
- my @dirs;
-
- if ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL|lib|Bin)$/) {
-
- push @dirs, "%%PREFIX%%/squeezecenter/$dir";
-
- } elsif ($dir eq 'Plugins') {
-
- push @dirs, "%%SITE_PERL%%", "%%PREFIX%%/%%SLIMDIR%%/Plugins", "%%PREFIX%%/%%SLIMDIR%%/Slim/Plugin", "%%SLIMDBDIR%%/cache/InstalledPlugins/Plugins";
-
- } elsif ($dir eq 'strings' || $dir eq 'revision') {
-
- push @dirs, "%%PREFIX%%/squeezecenter";
-
- } elsif ($dir eq 'types' || $dir eq 'convert') {
-
- push @dirs, "%%PREFIX%%/squeezecenter";
-
- } elsif ($dir eq 'prefs') {
-
- push @dirs, "%%SLIMDBDIR%%/prefs";
-
- } elsif ($dir eq 'log') {
-
- push @dirs, "/var/log/squeezecenter";
-
- } elsif ($dir eq 'cache') {
-
- push @dirs, "%%SLIMDBDIR%%/cache";
-
- } elsif ($dir =~ /^(?:libpath|mysql-language)$/) {
-
- # Do nothing - use the depended upon MySQL install.
-
- } elsif ($dir eq 'oldprefs') {
-
- if (-r '/var/db/slimserver/slimserver.conf') {
-
- push @dirs, '/var/db/slimserver/slimserver.conf';
-
- }
-
- } else {
-
- warn "dirsFor: Didn't find a match request: [$dir]\n";
-
- }
-
- return wantarray() ? @dirs : $dirs[0];
-}
-
-1;
diff --git a/audio/squeezeboxserver/files/patch-Slim_Formats_XML.pm b/audio/squeezeboxserver/files/patch-Slim_Formats_XML.pm
deleted file mode 100644
index 19e9cc080855..000000000000
--- a/audio/squeezeboxserver/files/patch-Slim_Formats_XML.pm
+++ /dev/null
@@ -1,11 +0,0 @@
---- Slim/Formats/XML.pm.orig 2008-12-22 14:26:28.000000000 -0800
-+++ Slim/Formats/XML.pm 2008-12-22 14:32:10.000000000 -0800
-@@ -13,7 +13,7 @@
- use strict;
- use File::Slurp;
- use HTML::Entities;
--use JSON::XS qw(from_json);
-+use JSON::XS::VersionOneAndTwo;
- use Scalar::Util qw(weaken);
- use URI::Escape qw(uri_escape);
- use XML::Simple;
diff --git a/audio/squeezeboxserver/files/patch-Slim_Networking_mDNS.pm b/audio/squeezeboxserver/files/patch-Slim_Networking_mDNS.pm
deleted file mode 100644
index 431fecf8fbd9..000000000000
--- a/audio/squeezeboxserver/files/patch-Slim_Networking_mDNS.pm
+++ /dev/null
@@ -1,20 +0,0 @@
-
-$FreeBSD$
-
---- Slim/Networking/mDNS.pm.orig
-+++ Slim/Networking/mDNS.pm
-@@ -131,11 +131,12 @@
-
- my ($name, $port) = @$data;
-
-+ # mDNSResponderPosix can handle an extra space at the front,
-+ # but prints an error if on occurs at the end.
-+ print CONF "\n";
- print CONF "$name\n";
- print CONF "$service\n";
-- print CONF "TXT\n";
- print CONF "$port\n";
-- print CONF "\n";
- }
-
- close(CONF);
diff --git a/audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm b/audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm
deleted file mode 100644
index 4544e7a9a693..000000000000
--- a/audio/squeezeboxserver/files/patch-Slim_Plugin_LastFM_ProtocolHandler.pm
+++ /dev/null
@@ -1,11 +0,0 @@
---- Slim/Plugin/LastFM/ProtocolHandler.pm.orig 2008-12-22 14:26:28.000000000 -0800
-+++ Slim/Plugin/LastFM/ProtocolHandler.pm 2008-12-22 14:32:41.000000000 -0800
-@@ -7,7 +7,7 @@
- use strict;
- use base qw(Slim::Player::Protocols::HTTP);
-
--use JSON::XS qw(from_json);
-+use JSON::XS::VersionOneAndTwo;
- use URI::Escape qw(uri_escape_utf8);
-
- use Slim::Player::Playlist;
diff --git a/audio/squeezeboxserver/files/patch-Slim_Plugin_Sirius_ProtocolHandler.pm b/audio/squeezeboxserver/files/patch-Slim_Plugin_Sirius_ProtocolHandler.pm
deleted file mode 100644
index 0589e98abac4..000000000000
--- a/audio/squeezeboxserver/files/patch-Slim_Plugin_Sirius_ProtocolHandler.pm
+++ /dev/null
@@ -1,11 +0,0 @@
---- Slim/Plugin/Sirius/ProtocolHandler.pm.orig 2008-12-22 14:26:28.000000000 -0800
-+++ Slim/Plugin/Sirius/ProtocolHandler.pm 2008-12-22 14:32:33.000000000 -0800
-@@ -19,7 +19,7 @@
- use Slim::Utils::Timers;
-
- use HTTP::Request;
--use JSON::XS qw(from_json);
-+use JSON::XS::VersionOneAndTwo;
- use URI::Escape qw(uri_escape);
-
- my $log = Slim::Utils::Log->addLogCategory( {
diff --git a/audio/squeezeboxserver/files/patch-Slim_Web_Pages_Home.pm b/audio/squeezeboxserver/files/patch-Slim_Web_Pages_Home.pm
deleted file mode 100644
index f7ad2efb1834..000000000000
--- a/audio/squeezeboxserver/files/patch-Slim_Web_Pages_Home.pm
+++ /dev/null
@@ -1,10 +0,0 @@
---- Slim/Web/Pages/Home.pm.orig 2008-12-11 14:13:33.000000000 -0800
-+++ Slim/Web/Pages/Home.pm 2008-12-22 13:11:18.000000000 -0800
-@@ -14,6 +14,7 @@
-
- use base qw(Slim::Web::Pages);
-
-+use Slim::Plugin::Base;
- use Slim::Utils::Prefs;
- use Slim::Utils::Strings;
- use Slim::Networking::Discovery::Server;
diff --git a/audio/squeezeboxserver/files/patch-convert.conf b/audio/squeezeboxserver/files/patch-convert.conf
deleted file mode 100644
index 8ff51e237c38..000000000000
--- a/audio/squeezeboxserver/files/patch-convert.conf
+++ /dev/null
@@ -1,48 +0,0 @@
-
-$FreeBSD$
-
---- convert.conf.orig
-+++ convert.conf
-@@ -82,8 +82,8 @@
- [faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE - -
-
- mov mp3 * *
-- # FRB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
-- [mov123] $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - -
-+ # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
-+ [faad] -q -w -f 2 $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --little-endian - -
-
- alc mp3 * *
- # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
-@@ -115,7 +115,7 @@
-
- ape mp3 * *
- # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
-- [mac] $FILE$ - -d | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -
-+ [faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -
-
- wvp mp3 * *
- # FB:{BITRATE=-B %B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
-@@ -173,9 +173,9 @@
- # IF
- [faad] -q -w -f 2 -b 1 -s 44100 $FILE$
-
--mov aif * *
-+mov wav * *
- # FR
-- [mov123] $FILE$
-+ [faad] -q -w -f 2 -b 1 -s 44100 $FILE$
-
- wma wma * *
- -
-@@ -221,8 +221,8 @@
- [faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -
-
- mov flc * *
-- # FR
-- [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -
-+ # F
-+ [faad] -w -q -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 -
-
- alc flc * *
- # F
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
diff --git a/audio/squeezeboxserver/files/softsqueeze.sh.in b/audio/squeezeboxserver/files/softsqueeze.sh.in
deleted file mode 100644
index c83c5564e0df..000000000000
--- a/audio/squeezeboxserver/files/softsqueeze.sh.in
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-# This script requires that that java/javavmwrapper port and a JDK
-# version 1.4 or greater be installed.
-#
-# The javavmwrapper port is not installed by default lest the JDK
-# requirement drag this port down into oblivion. Perhaps someday Sun
-# will release the JDK under a license that makes dependencies on the
-# JDK reasionable.
-#
-%%LOCALBASE%%/bin/java -jar %%PREFIX%%/%%SLIMDIR%%/HTML/EN/html/softsqueeze/SoftSqueeze.jar
diff --git a/audio/squeezeboxserver/files/squeezecenter.sh.in b/audio/squeezeboxserver/files/squeezecenter.sh.in
deleted file mode 100644
index bc06b8a348b8..000000000000
--- a/audio/squeezeboxserver/files/squeezecenter.sh.in
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: %%PORTNAME%%
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable %%PORTNAME%%:
-#
-# %%PORTNAME%%_enable="YES"
-# %%PORTNAME%%_flags="<set as needed>"
-#
-
-. %%RC_SUBR%%
-
-name=%%PORTNAME%%
-start_precmd="%%PORTNAME%%_start_precmd"
-stop_postcmd="%%PORTNAME%%_stop_postcmd"
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl
-command_interpreter=%%PERL%%
-pidfile=/var/run/${name}/${name}.pid
-logdir=/var/log/${name}
-statedir=%%SLIMDBDIR%%
-cachedir=${statedir}/cache
-prefsdir=${statedir}/prefs
-playlistdir=${statedir}/playlists
-conffile=${statedir}/${name}.conf
-u=%%SLIMUSER%%
-g=%%SLIMGROUP%%
-command_args="--daemon --prefsfile=${conffile} --pidfile=${pidfile}"
-%%PORTNAME%%_user=${u}
-%%PORTNAME%%_group=${g}
-
-%%PORTNAME%%_start_precmd()
-{
- mkdir -p /var/run/${name}
- chown -RH ${u}:${g} /var/run/${name}
-
- mkdir -p ${logdir}
- chown -RH ${u}:${g} ${logdir}
-
- mkdir -p ${statedir}
- mkdir -p ${cachedir}
- mkdir -p ${prefsdir}
- mkdir -p ${playlistdir}
- touch ${conffile}
- chown -RH ${u}:${g} ${statedir}
-
- if [ ! -f ${logfile} ]; then
- touch ${logfile}
- chown -H ${u}:${g} ${logfile}
- fi
-}
-
-%%PORTNAME%%_stop_postcmd()
-{
- pids=`pgrep -u $u`
- if [ -n "${pids}" ]; then
- sleep 1
- kill $pids > /dev/null 2>&1
- fi
- pids=`pgrep -u $u`
- if [ -n "${pids}" ]; then
- wait_for_pids $pids
- fi
-}
-
-load_rc_config ${name}
-
-%%PORTNAME%%_enable=${%%PORTNAME%%_enable:-"NO"}
-
-run_rc_command "$1"