aboutsummaryrefslogtreecommitdiff
path: root/audio/squeezecenter/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/squeezecenter/files')
-rw-r--r--audio/squeezecenter/files/patch-Bin_build-perl-modules.pl164
-rw-r--r--audio/squeezecenter/files/patch-Slim_Utils_Prefs.pm34
-rw-r--r--audio/squeezecenter/files/pkg-install.in80
-rw-r--r--audio/squeezecenter/files/slimserver.sh.in86
-rw-r--r--audio/squeezecenter/files/softsqueeze.sh.in10
-rw-r--r--audio/squeezecenter/files/squeezecenter.sh.in86
6 files changed, 0 insertions, 460 deletions
diff --git a/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl b/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl
deleted file mode 100644
index 4e2fab43e13f..000000000000
--- a/audio/squeezecenter/files/patch-Bin_build-perl-modules.pl
+++ /dev/null
@@ -1,164 +0,0 @@
-
-$FreeBSD$
-
---- Bin/build-perl-modules.pl.orig
-+++ Bin/build-perl-modules.pl
-@@ -74,28 +74,30 @@
-
- print "*** Ignore any warnings about AppConfig. ***\n\n";
-
-- print "Please enter a perl binary to use (defaults to /usr/bin/perl)\n";
-- print "This must be the same perl binary that you ran this program with --> ";
-- chomp($perlBinary = <STDIN>);
--
-- $perlBinary ||= '/usr/bin/perl';
-+# print "Please enter a perl binary to use (defaults to /usr/bin/perl)\n";
-+# print "This must be the same perl binary that you ran this program with --> ";
-+# chomp($perlBinary = <STDIN>);
-+#
-+# $perlBinary ||= '/usr/bin/perl';
-+ $perlBinary = '%%PERL%%';
-
- unless (-x $perlBinary) {
- die "Couldn't find a perl binary. Exiting.\n";
- }
-
-- # Where does their slimserver live? Try to guess.
-- if (-f 'slimserver.pl' && -d 'CPAN/arch') {
--
-- $slimServerPath = cwd();
--
-- } else {
--
-- print "Please enter the path to your SlimServer directory (ex: /usr/local/slimserver) --> ";
-- chomp($slimServerPath = <STDIN>);
-- }
--
-- $slimServerPath ||= '/usr/local/slimserver';
-+# # Where does their slimserver live? Try to guess.
-+# if (-f 'slimserver.pl' && -d 'CPAN/arch') {
-+#
-+# $slimServerPath = cwd();
-+#
-+# } else {
-+#
-+# print "Please enter the path to your SlimServer directory (ex: /usr/local/slimserver) --> ";
-+# chomp($slimServerPath = <STDIN>);
-+# }
-+#
-+# $slimServerPath ||= '/usr/local/slimserver';
-+ $slimServerPath = '%%TMP_SLIMDIR%%';
-
- unless (-d $slimServerPath) {
- die "Couldn't find a valid SlimServer path. Exiting.\n";
-@@ -104,12 +106,13 @@
- # This is where the binaries will end up.
- my $cpanDest = "$slimServerPath/CPAN/arch/$version/$archname/auto";
-
-- # Where do they want the downloads to go?
-- print "Please enter a directory to download files to --> ";
-- chomp($downloadPath = <STDIN>);
--
-- # Default to the current directory.
-- $downloadPath ||= '.';
-+# # Where do they want the downloads to go?
-+# print "Please enter a directory to download files to --> ";
-+# chomp($downloadPath = <STDIN>);
-+#
-+# # Default to the current directory.
-+# $downloadPath ||= '.';
-+ $downloadPath = '%%CPANWRKDIR%%';
-
- # Remove trailing slash
- $downloadPath =~ s|^(.+?)/$|$1|;
-@@ -122,32 +125,32 @@
-
- my $pwd = cwd();
-
-- # What do we want to download with?
-- eval { require LWP::Simple };
--
-- # No LWP - try a command line program.
-- if ($@) {
--
-- for my $cmd (qw(curl wget)) {
--
-- system("which $cmd >/dev/null 2>&1");
--
-- unless ($? >> 8) {
-- $downloadUsing = $cmd;
-- last;
-- }
-- }
--
-- } else {
--
-- $downloadUsing = 'lwp';
-- }
--
-- unless ($downloadUsing) {
-- die "Couldn't find any valid downloaders - install LWP, wget or curl.\n";
-- } else {
-- print "Downloads will use $downloadUsing to fetch tarballs.\n";
-- }
-+# # What do we want to download with?
-+# eval { require LWP::Simple };
-+#
-+# # No LWP - try a command line program.
-+# if ($@) {
-+#
-+# for my $cmd (qw(curl wget)) {
-+#
-+# system("which $cmd >/dev/null 2>&1");
-+#
-+# unless ($? >> 8) {
-+# $downloadUsing = $cmd;
-+# last;
-+# }
-+# }
-+#
-+# } else {
-+#
-+# $downloadUsing = 'lwp';
-+# }
-+#
-+# unless ($downloadUsing) {
-+# die "Couldn't find any valid downloaders - install LWP, wget or curl.\n";
-+# } else {
-+# print "Downloads will use $downloadUsing to fetch tarballs.\n";
-+# }
-
- for my $package (@packages) {
-
-@@ -158,18 +161,19 @@
- # Remove any previous version.
- unlink $package;
-
-- if ($downloadUsing eq 'lwp') {
--
-- LWP::Simple::getstore("$SOURCE/$package?view=auto", $package);
--
-- } elsif ($downloadUsing eq 'curl') {
--
-- `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`;
--
-- } else {
--
-- `$downloadUsing -q -O $package $SOURCE/$package?view=auto`;
-- }
-+# if ($downloadUsing eq 'lwp') {
-+#
-+# LWP::Simple::getstore("$SOURCE/$package?view=auto", $package);
-+#
-+# } elsif ($downloadUsing eq 'curl') {
-+#
-+# `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`;
-+#
-+# } else {
-+#
-+# `$downloadUsing -q -O $package $SOURCE/$package?view=auto`;
-+# }
-+ `cp %%DISTDIR%%/$package .`;
-
- unless (-r $package) {
- print "Something looks wrong - I couldn't read $pwd/$package, which I just downloaded.\n";
diff --git a/audio/squeezecenter/files/patch-Slim_Utils_Prefs.pm b/audio/squeezecenter/files/patch-Slim_Utils_Prefs.pm
deleted file mode 100644
index 131a26b0b1b2..000000000000
--- a/audio/squeezecenter/files/patch-Slim_Utils_Prefs.pm
+++ /dev/null
@@ -1,34 +0,0 @@
-
-$FreeBSD$
-
---- Slim/Utils/Prefs.pm.orig
-+++ Slim/Utils/Prefs.pm
-@@ -99,6 +99,10 @@
-
- $path = $Bin . '/Playlists';
-
-+ } elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
-+
-+ $path = "/var/db/slimserver/playlists";
-+
- } else {
-
- $path = '';
-@@ -131,7 +135,7 @@
-
- } elsif ($os eq 'unix') {
-
-- $CacheDir = $ENV{'HOME'};
-+ $CacheDir = "/var/db/slimserver/cache";
- }
-
- my @CacheDirs = splitdir($CacheDir);
-@@ -714,7 +718,7 @@
- } elsif (Slim::Utils::OSDetect::OS() eq 'win') {
- $prefsPath = $Bin;
- } else {
-- $prefsPath = $ENV{'HOME'};
-+ $prefsPath = "/var/db/slimserver";
- }
-
- $::d_prefs && msg("The default prefs directory is $prefsPath\n");
diff --git a/audio/squeezecenter/files/pkg-install.in b/audio/squeezecenter/files/pkg-install.in
deleted file mode 100644
index 6281f6397078..000000000000
--- a/audio/squeezecenter/files/pkg-install.in
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/audio/squeezecenter/files/Attic/pkg-install.in,v 1.2 2005-04-21 20:05:53 brooks Exp $
-
-name=slimserver
-u=slimserv
-g=slimserv
-ugid=104
-homedir=/nonexistent
-shell=/sbin/nologin
-comment="Slim Devices SlimServer pseudo-user"
-slimdir="%%PREFIX%%/%%SLIMDIR%%"
-statedir=/var/db/slimserver
-cachedir=${statedir}/cache
-conffile=${statedir}/slimserver.conf
-playlistdir=${statedir}/playlists
-pidfile=/var/run/${name}.pid
-newsyslogfile=/etc/newsyslog.conf
-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)
- 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 [ -d ${statedir} ]; then
- chown -R ${u}:${g} ${statedir}
- fi
- if [ -d ${cachedir} ]; then
- chown -R ${u}:${g} ${cachedir}
- fi
- if [ -d ${playlistdir} ]; then
- chown -R ${u}:${g} ${playlistdir}
- fi
- if [ -d /var/run/slimserver ]; then
- chown -R ${u}:${g} /var/run/slimserver
- fi
- if [ -f ${conffile} ]; then
- chown ${u}:${g} ${conffile}
- fi
- if [ -f ${logfile} ]; then
- chown ${u}:${g} ${logfile}
- fi
- if egrep -q "^${logfile}\>" ${newsyslogfile}; then
- echo "Using existing ${newsyslogfile} entry."
- else
- echo "Adding slimserver log entry to ${newsyslogfile}."
- echo "$logcomment" >> ${newsyslogfile}
- echo "$logline" >> ${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/squeezecenter/files/slimserver.sh.in b/audio/squeezecenter/files/slimserver.sh.in
deleted file mode 100644
index d4617c1cc2a8..000000000000
--- a/audio/squeezecenter/files/slimserver.sh.in
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: slimserver
-# REQUIRE: LOGIN
-# KEYWORD: FreeBSD shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable slimserver:
-#
-#slimserver_enable="YES"
-#
-
-. %%RC_SUBR%%
-
-name=slimserver
-start_precmd="slimserver_start_precmd"
-stop_cmd="slimserver_stop"
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl
-pidfile=/var/run/${name}.pid
-logfile=/var/log/slimserver.log
-statedir=/var/db/slimserver
-cachedir=${statedir}/cache
-playlistdir=${statedir}/playlists
-conffile=${statedir}/slimserver.conf
-u=slimserv
-g=slimserv
-command_args="--daemon --prefsfile=${conffile} --logfile=${logfile} --user=${u} --group=${g} --pidfile=${pidfile}"
-
-PGREP=%%PGREPBASE%%/bin/pgrep
-
-slimserver_start_precmd()
-{
- if [ ! -d ${statedir} ]; then
- mkdir -p ${statedir}
- chown -R ${u}:${g} ${statedir}
- fi
- if [ ! -d ${cachedir} ]; then
- mkdir -p ${cachedir}
- chown -R ${u}:${g} ${cachedir}
- fi
- if [ ! -d ${playlistdir} ]; then
- mkdir -p ${playlistdir}
- chown -R ${u}:${g} ${playlistdir}
- fi
- if [ ! -f ${conffile} ]; then
- touch ${conffile}
- chown ${u}:${g} ${conffile}
- fi
- if [ ! -f ${logfile} ]; then
- touch ${logfile}
- chown ${u}:${g} ${logfile}
- fi
-}
-
-slimserver_stop()
-{
- if [ ! -f ${pidfile} ]; then
- exit
- fi
- echo 'Stopping SlimServer.'
- rc_pid=`cat ${pidfile}`
- rc_pid=`${PGREP} -u ${u} | grep ${rc_pid}`
- if [ -n "${rc_pid}" ]; then
- # Should be mDNSResponderPosix, but the port truncates
- rc_pids="${rc_pid} `${PGREP} -u ${u} mDNSResponderPos`"
-
- kill $sig_stop $rc_pids
- wait_for_pids $rc_pids
- else
- echo "${name} not running? (check ${pidfile})"
- fi
-
- rm -f ${pidfile}
-}
-
-load_rc_config ${name}
-
-slimserver_enable=${slimserver_enable:-"NO"}
-slimserver_flags=${slimserver_flags:-""}
-
-run_rc_command "$1"
diff --git a/audio/squeezecenter/files/softsqueeze.sh.in b/audio/squeezecenter/files/softsqueeze.sh.in
deleted file mode 100644
index c33b7161cc82..000000000000
--- a/audio/squeezecenter/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/javavm -jar /usr/local/slimserver/HTML/EN/html/softsqueeze/SoftSqueeze.jar
diff --git a/audio/squeezecenter/files/squeezecenter.sh.in b/audio/squeezecenter/files/squeezecenter.sh.in
deleted file mode 100644
index d4617c1cc2a8..000000000000
--- a/audio/squeezecenter/files/squeezecenter.sh.in
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: slimserver
-# REQUIRE: LOGIN
-# KEYWORD: FreeBSD shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable slimserver:
-#
-#slimserver_enable="YES"
-#
-
-. %%RC_SUBR%%
-
-name=slimserver
-start_precmd="slimserver_start_precmd"
-stop_cmd="slimserver_stop"
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl
-pidfile=/var/run/${name}.pid
-logfile=/var/log/slimserver.log
-statedir=/var/db/slimserver
-cachedir=${statedir}/cache
-playlistdir=${statedir}/playlists
-conffile=${statedir}/slimserver.conf
-u=slimserv
-g=slimserv
-command_args="--daemon --prefsfile=${conffile} --logfile=${logfile} --user=${u} --group=${g} --pidfile=${pidfile}"
-
-PGREP=%%PGREPBASE%%/bin/pgrep
-
-slimserver_start_precmd()
-{
- if [ ! -d ${statedir} ]; then
- mkdir -p ${statedir}
- chown -R ${u}:${g} ${statedir}
- fi
- if [ ! -d ${cachedir} ]; then
- mkdir -p ${cachedir}
- chown -R ${u}:${g} ${cachedir}
- fi
- if [ ! -d ${playlistdir} ]; then
- mkdir -p ${playlistdir}
- chown -R ${u}:${g} ${playlistdir}
- fi
- if [ ! -f ${conffile} ]; then
- touch ${conffile}
- chown ${u}:${g} ${conffile}
- fi
- if [ ! -f ${logfile} ]; then
- touch ${logfile}
- chown ${u}:${g} ${logfile}
- fi
-}
-
-slimserver_stop()
-{
- if [ ! -f ${pidfile} ]; then
- exit
- fi
- echo 'Stopping SlimServer.'
- rc_pid=`cat ${pidfile}`
- rc_pid=`${PGREP} -u ${u} | grep ${rc_pid}`
- if [ -n "${rc_pid}" ]; then
- # Should be mDNSResponderPosix, but the port truncates
- rc_pids="${rc_pid} `${PGREP} -u ${u} mDNSResponderPos`"
-
- kill $sig_stop $rc_pids
- wait_for_pids $rc_pids
- else
- echo "${name} not running? (check ${pidfile})"
- fi
-
- rm -f ${pidfile}
-}
-
-load_rc_config ${name}
-
-slimserver_enable=${slimserver_enable:-"NO"}
-slimserver_flags=${slimserver_flags:-""}
-
-run_rc_command "$1"