diff options
Diffstat (limited to 'audio/mt-daapd/files')
-rw-r--r-- | audio/mt-daapd/files/mt-daapd.conf | 86 | ||||
-rw-r--r-- | audio/mt-daapd/files/mt-daapd.sh | 24 | ||||
-rw-r--r-- | audio/mt-daapd/files/patch-gcc2954 | 81 |
3 files changed, 191 insertions, 0 deletions
diff --git a/audio/mt-daapd/files/mt-daapd.conf b/audio/mt-daapd/files/mt-daapd.conf new file mode 100644 index 0000000..547f677 --- /dev/null +++ b/audio/mt-daapd/files/mt-daapd.conf @@ -0,0 +1,86 @@ +# $Id: mt-daapd.conf,v 1.3 2004/01/04 20:13:19 rpedde Exp $ +# +# This is the mt-daapd config file. +# + +# +# web_root (required) +# +# Location of the admin web pages. This should be correct +# + +web_root %%PREFIX%%/share/mt-daapd/admin-root + +# +# port (required) +# +# What port to listen on. It is possible to use a different +# port, but this is the default iTunes port +# + +port 3689 + +# +# admin_pw (required) +# +# This is the password to the administrative pages +# + +admin_pw mt-daapd + +# +# mp3_dir (required) +# +# Location of the mp3 files to share +# + +mp3_dir %%PREFIX%%/share/mt-daapd/mp3 + +# +# servername (required) +# +# This is both the name of the server as advertised +# via rendezvous, and the name of the database +# exported via DAAP +# + +servername mt-daapd + +# +# runas (required) +# +# This is the user to drop privs to if running as +# root. If mt-daapd is not started as root, this +# configuration option is ignored. Notice that this +# must be specified whether the server is running +# as root or not. +# + +runas %%USER%% + +# +# playlist (optional) +# +# This is the location of a playlist file. +# This is for Apple-style "Smart Playlists" +# See the mt-daapd.playlist file in the +# contrib directory for syntax and examples +# +# Note that static playlists will still +# show up, even if this directive is not +# specified +# + +playlist %%PREFIX%%/etc/mt-daapd.playlist + +# +# password (optional) +# +# This is the password required to listen to MP3 files +# i.e. the password that iTunes prompts for +# + +#password mp3 + + + diff --git a/audio/mt-daapd/files/mt-daapd.sh b/audio/mt-daapd/files/mt-daapd.sh new file mode 100644 index 0000000..c3d7428 --- /dev/null +++ b/audio/mt-daapd/files/mt-daapd.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# $FreeBSD$ + +MT_DAAPD=/usr/local/sbin/mt-daapd +MT_DAAPD_CONF=/usr/local/etc/mt-daapd.conf + + +case "$1" in + start) + if [ -r "${MT_DAAPD_CONF}" ]; then + ${MT_DAAPD} -c ${MT_DAAPD_CONF} + echo -n ' mt-daapd' + fi + ;; + stop) + killall -TERM mt-daapd + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac diff --git a/audio/mt-daapd/files/patch-gcc2954 b/audio/mt-daapd/files/patch-gcc2954 new file mode 100644 index 0000000..a9e6fdf --- /dev/null +++ b/audio/mt-daapd/files/patch-gcc2954 @@ -0,0 +1,81 @@ +diff -nur ../../mt-daapd-0.1.1/src/configfile.c ./src/configfile.c +--- ../../mt-daapd-0.1.1/src/configfile.c Tue Jan 20 05:41:20 2004 ++++ ./src/configfile.c Mon Mar 15 09:21:00 2004 +@@ -122,11 +122,10 @@ + int config_read(char *file) { + FILE *fin; + char *buffer; +- int err; ++ int err=0; + char *value; + char *comment; + char path_buffer[PATH_MAX]; +- err=0; + CONFIGELEMENT *pce; + int handled; + +Only in ./src: configfile.o +Only in ./src: daap-proto.o +Only in ./src: daap.o +Only in ./src: db-memory.o +Only in ./src: err.o +Only in ./src: lexer.o +Only in ./src: mDNS.o +Only in ./src: mDNSPosix.o +Only in ./src: mDNSUNP.o +diff -nur ../../mt-daapd-0.1.1/src/main.c ./src/main.c +--- ../../mt-daapd-0.1.1/src/main.c Tue Jan 27 06:30:25 2004 ++++ ./src/main.c Mon Mar 15 09:19:38 2004 +@@ -417,13 +417,13 @@ + int status; + int parseonly=0; + int foreground=0; +- config.use_mdns=1; + + #ifdef DEBUG + char *optval="d:c:mpf"; + #else + char *optval="c:mpf"; + #endif /* DEBUG */ ++ config.use_mdns=1; + + fprintf(stderr,"mt-daapd: version %s\n",VERSION); + fprintf(stderr,"Copyright (c) 2003 Ron Pedde. All rights reserved\n"); +Only in ./src: main.o +diff -nur ../../mt-daapd-0.1.1/src/mdns/mDNSUNP.h ./src/mdns/mDNSUNP.h +--- ../../mt-daapd-0.1.1/src/mdns/mDNSUNP.h Thu Oct 23 23:43:01 2003 ++++ ./src/mdns/mDNSUNP.h Mon Mar 15 09:23:00 2004 +@@ -93,7 +93,9 @@ + #endif + + #if !defined(HAVE_SOCKLEN_T) ++#ifndef __FreeBSD__ + typedef unsigned int socklen_t; ++#endif + #endif + + #define IFI_NAME 16 /* same as IFNAMSIZ in <net/if.h> */ +Only in ./src: mp3-scanner.o +Only in ./src: mt-daapd +Only in ./src: parser.o +Only in ./src: playlist.o +Only in ./src: rend-posix.o +Only in ./src: rend-unix.o +Only in ./src: restart.o +Only in ./src: uici.o +diff -nur ../../mt-daapd-0.1.1/src/webserver.c ./src/webserver.c +--- ../../mt-daapd-0.1.1/src/webserver.c Sun Jan 4 06:27:43 2004 ++++ ./src/webserver.c Mon Mar 15 09:20:21 2004 +@@ -919,9 +919,9 @@ + * + */ + int ws_testarg(ARGLIST *root, char *key, char *value) { ++ char *retval=ws_getarg(root,key); + DPRINTF(ERR_DEBUG,"Checking to see if %s matches %s\n",key,value); + +- char *retval=ws_getarg(root,key); + if(!retval) + return 0; + +Only in ./src: webserver.o +Only in .: stamp-h1 |