Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2004 00:40:10 -0800 (PST)
From:      "Meno Abels" <abels@adviser.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/64077: New port: audio/mt-daapd
Message-ID:  <200403150840.i2F8eAJn086280@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/64077; it has been noted by GNATS.

From: "Meno Abels" <abels@adviser.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/64077: New port: audio/mt-daapd
Date: Mon, 15 Mar 2004 09:37:55 +0100

 Hello I found an 4.9 machine now the mt-daapd runs on
 5.2.1 and 4.9. 
 I cannot reproduce the error with setpgrp to figure out the 
 problem i need the exact version of the OS where this problem 
 happens. I will not send an patch.
 Here is the new shar: 
 
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	mt-daapd
 #	mt-daapd/pkg-plist
 #	mt-daapd/pkg-descr
 #	mt-daapd/Makefile
 #	mt-daapd/distinfo
 #	mt-daapd/files
 #	mt-daapd/files/mt-daapd.sh
 #	mt-daapd/files/mt-daapd.conf
 #	mt-daapd/files/patch-gcc2954
 #
 echo c - mt-daapd
 mkdir -p mt-daapd > /dev/null 2>&1
 echo x - mt-daapd/pkg-plist
 sed 's/^X//' >mt-daapd/pkg-plist << 'END-of-mt-daapd/pkg-plist'
 X@comment $FreeBSD$
 Xetc/mt-daapd.conf.sample
 Xetc/rc.d/mt-daapd.sh
 Xsbin/mt-daapd
 Xshare/mt-daapd/admin-root/aspl-license.html
 Xshare/mt-daapd/admin-root/aspl-license.txt
 Xshare/mt-daapd/admin-root/config-update.html
 Xshare/mt-daapd/admin-root/config.html
 Xshare/mt-daapd/admin-root/ftr.html
 Xshare/mt-daapd/admin-root/gpl-license.html
 Xshare/mt-daapd/admin-root/gpl-license.txt
 Xshare/mt-daapd/admin-root/hdr.html
 Xshare/mt-daapd/admin-root/index.html
 Xshare/mt-daapd/admin-root/linkOpaque.gif
 Xshare/mt-daapd/admin-root/linkTransparent.gif
 Xshare/mt-daapd/admin-root/mt-daapd.css
 Xshare/mt-daapd/admin-root/mt-daapd.png
 Xshare/mt-daapd/admin-root/required.gif
 Xshare/mt-daapd/admin-root/status.html
 Xshare/mt-daapd/admin-root/thanks.html
 X%%PORTDOCS%%@dirrm share/mt-daapd/admin-root
 X%%PORTDOCS%%@dirrm share/mt-daapd
 X%%PORTDOCS%%%%DOCSDIR%%/README
 X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 X%%PORTDOCS%%%%DOCSDIR%%/COPYING
 X%%PORTDOCS%%%%DOCSDIR%%/CREDITS
 X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
 X%%PORTDOCS%%%%DOCSDIR%%/NEWS
 X%%PORTDOCS%%%%DOCSDIR%%/TODO
 X%%PORTDOCS%%@dirrm %%DOCSDIR%%
 END-of-mt-daapd/pkg-plist
 echo x - mt-daapd/pkg-descr
 sed 's/^X//' >mt-daapd/pkg-descr << 'END-of-mt-daapd/pkg-descr'
 Xdaapd scans a directory for music files and makes them available via
 Xthe Apple proprietary protocol DAAP. DAAP clients can browse the
 Xdirectory and retrieve individual files, either by streaming or by
 Xdownloading them. 
 X
 XWWW: http://mt-daapd.sourceforge.net/
 END-of-mt-daapd/pkg-descr
 echo x - mt-daapd/Makefile
 sed 's/^X//' >mt-daapd/Makefile << 'END-of-mt-daapd/Makefile'
 X# New ports collection makefile for:	mt-daapd
 X# Date created:				10 March 2004
 X# Whom:					Meno Abels <meno.abels@adviser.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	mt-daapd
 XPORTVERSION=	0.1.1
 XPORTREVISION=	1
 XCATEGORIES=	audio
 XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 XMASTER_SITE_SUBDIR=	mt-daapd
 X#ISTNAME=	${PORTNAME}-${PORTVERSION}
 X#DISTFILES=	${DISTNAME}.tar.gz
 X
 XMAINTAINER=	Meno.Abels@Adviser.com
 XCOMMENT=	Multithread daapd yet another Server for Apple iTunes
 X
 XLIB_DEPENDS=    id3tag.2:${PORTSDIR}/audio/libid3tag
 X
 XMAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" \
 X		LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
 X		INSTALL_PROGRAM="${INSTALL_PROGRAM}"
 X
 XGNU_CONFIGURE=     yes
 XCONFIGURE_ENV= AUTOCONF=autoconf257 AUTOHEADER=autoheader257 CC="${CC} -pthread"
 XCONFIGURE_ARGS=    --with-id3tag=${PREFIX}
 X
 XUSE_AUTOCONF=	yes
 XUSE_AUTOHEADER=	yes
 XWANT_AUTOCONF_VER=	257
 X
 XDAAPD_USER=	daapd
 XDAAPD_GROUP=	daapd
 X
 XFILES_SUB=	USER=${DAAPD_USER} GROUP=${DAAPD_GROUP} \
 X		PREFIX=${PREFIX} LOGDIR=${LOGDIR} DOCSDIR=${DOCSDIR} \
 X		LOCALBASE=${LOCALBASE}
 X
 Xpost-install:
 X.if !defined(NOPORTDOCS)
 X	${MKDIR} ${DOCSDIR}
 X.for i in README AUTHORS COPYING CREDITS \
 X	ChangeLog INSTALL NEWS TODO
 X	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
 X.endfor
 X.endif
 X	${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
 X		${FILESDIR}/mt-daapd.sh > ${WRKDIR}/mt-daapd.sh
 X	${INSTALL_SCRIPT} ${WRKDIR}/mt-daapd.sh ${PREFIX}/etc/rc.d/mt-daapd.sh
 X	${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
 X		${FILESDIR}/mt-daapd.conf > ${WRKDIR}/mt-daapd.conf
 X	${INSTALL_DATA} ${WRKDIR}/mt-daapd.conf ${PREFIX}/etc/mt-daapd.conf.sample
 X
 X.include <bsd.port.mk>
 END-of-mt-daapd/Makefile
 echo x - mt-daapd/distinfo
 sed 's/^X//' >mt-daapd/distinfo << 'END-of-mt-daapd/distinfo'
 XMD5 (mt-daapd-0.1.1.tar.gz) = 8d2cbc30d73610aa974ca22a18c47b50
 XSIZE (mt-daapd-0.1.1.tar.gz) = 284805
 END-of-mt-daapd/distinfo
 echo c - mt-daapd/files
 mkdir -p mt-daapd/files > /dev/null 2>&1
 echo x - mt-daapd/files/mt-daapd.sh
 sed 's/^X//' >mt-daapd/files/mt-daapd.sh << 'END-of-mt-daapd/files/mt-daapd.sh'
 X#!/bin/sh
 X# $FreeBSD$
 X
 XMT_DAAPD=/usr/local/sbin/mt-daapd
 XMT_DAAPD_CONF=/usr/local/etc/mt-daapd.conf
 X
 X
 Xcase "$1" in
 X	start)
 X		if [ -r "${MT_DAAPD_CONF}" ]; then
 X			${MT_DAAPD} -c ${MT_DAAPD_CONF} 
 X			echo -n ' mt-daapd'
 X		fi
 X		;;
 X	stop)
 X		killall -TERM mt-daapd
 X		;;
 X	*)
 X		echo ""
 X		echo "Usage: `basename $0` { start | stop }"
 X		echo ""
 X		exit 64
 X		;;
 Xesac
 END-of-mt-daapd/files/mt-daapd.sh
 echo x - mt-daapd/files/mt-daapd.conf
 sed 's/^X//' >mt-daapd/files/mt-daapd.conf << 'END-of-mt-daapd/files/mt-daapd.conf'
 X# $Id: mt-daapd.conf,v 1.3 2004/01/04 20:13:19 rpedde Exp $
 X#
 X# This is the mt-daapd config file.
 X#
 X
 X#
 X# web_root (required)
 X#
 X# Location of the admin web pages.  This should be correct
 X#
 X
 Xweb_root	%%PREFIX%%/share/mt-daapd/admin-root
 X
 X#
 X# port (required)
 X#
 X# What port to listen on.  It is possible to use a different
 X# port, but this is the default iTunes port
 X#
 X
 Xport		3689
 X
 X#
 X# admin_pw (required)
 X#
 X# This is the password to the administrative pages
 X#
 X
 Xadmin_pw	mt-daapd
 X
 X#
 X# mp3_dir (required)
 X#
 X# Location of the mp3 files to share
 X#
 X
 Xmp3_dir		%%PREFIX%%/share/mt-daapd/mp3
 X
 X#
 X# servername (required)
 X#
 X# This is both the name of the server as advertised
 X# via rendezvous, and the name of the database
 X# exported via DAAP
 X#
 X
 Xservername	mt-daapd
 X
 X#
 X# runas (required)
 X#
 X# This is the user to drop privs to if running as
 X# root.  If mt-daapd is not started as root, this
 X# configuration option is ignored.  Notice that this
 X# must be specified whether the server is running
 X# as root or not.
 X#
 X
 Xrunas	%%USER%%
 X
 X#
 X# playlist (optional)
 X#
 X# This is the location of a playlist file.
 X# This is for Apple-style "Smart Playlists"
 X# See the mt-daapd.playlist file in the 
 X# contrib directory for syntax and examples
 X#
 X# Note that static playlists will still
 X# show up, even if this directive is not
 X# specified
 X#
 X
 Xplaylist	%%PREFIX%%/etc/mt-daapd.playlist
 X
 X#
 X# password (optional)
 X#
 X# This is the password required to listen to MP3 files
 X# i.e. the password that iTunes prompts for
 X#
 X
 X#password	mp3
 X
 X
 X
 END-of-mt-daapd/files/mt-daapd.conf
 echo x - mt-daapd/files/patch-gcc2954
 sed 's/^X//' >mt-daapd/files/patch-gcc2954 << 'END-of-mt-daapd/files/patch-gcc2954'
 Xdiff -nur ../../mt-daapd-0.1.1/src/configfile.c ./src/configfile.c
 X--- ../../mt-daapd-0.1.1/src/configfile.c	Tue Jan 20 05:41:20 2004
 X+++ ./src/configfile.c	Mon Mar 15 09:21:00 2004
 X@@ -122,11 +122,10 @@
 X int config_read(char *file) {
 X     FILE *fin;
 X     char *buffer;
 X-    int err;
 X+    int err=0;
 X     char *value;
 X     char *comment;
 X     char path_buffer[PATH_MAX];
 X-    err=0;
 X     CONFIGELEMENT *pce;
 X     int handled;
 X 
 XOnly in ./src: configfile.o
 XOnly in ./src: daap-proto.o
 XOnly in ./src: daap.o
 XOnly in ./src: db-memory.o
 XOnly in ./src: err.o
 XOnly in ./src: lexer.o
 XOnly in ./src: mDNS.o
 XOnly in ./src: mDNSPosix.o
 XOnly in ./src: mDNSUNP.o
 Xdiff -nur ../../mt-daapd-0.1.1/src/main.c ./src/main.c
 X--- ../../mt-daapd-0.1.1/src/main.c	Tue Jan 27 06:30:25 2004
 X+++ ./src/main.c	Mon Mar 15 09:19:38 2004
 X@@ -417,13 +417,13 @@
 X     int status;
 X     int parseonly=0;
 X     int foreground=0;
 X-    config.use_mdns=1;
 X 
 X #ifdef DEBUG
 X     char *optval="d:c:mpf";
 X #else
 X     char *optval="c:mpf";
 X #endif /* DEBUG */
 X+    config.use_mdns=1;
 X 
 X     fprintf(stderr,"mt-daapd: version %s\n",VERSION);
 X     fprintf(stderr,"Copyright (c) 2003 Ron Pedde.  All rights reserved\n");
 XOnly in ./src: main.o
 Xdiff -nur ../../mt-daapd-0.1.1/src/mdns/mDNSUNP.h ./src/mdns/mDNSUNP.h
 X--- ../../mt-daapd-0.1.1/src/mdns/mDNSUNP.h	Thu Oct 23 23:43:01 2003
 X+++ ./src/mdns/mDNSUNP.h	Mon Mar 15 09:23:00 2004
 X@@ -93,7 +93,9 @@
 X #endif
 X 
 X #if !defined(HAVE_SOCKLEN_T)
 X+#ifndef __FreeBSD__
 X     typedef unsigned int socklen_t;
 X+#endif
 X #endif
 X 
 X #define IFI_NAME    16          /* same as IFNAMSIZ in <net/if.h> */
 XOnly in ./src: mp3-scanner.o
 XOnly in ./src: mt-daapd
 XOnly in ./src: parser.o
 XOnly in ./src: playlist.o
 XOnly in ./src: rend-posix.o
 XOnly in ./src: rend-unix.o
 XOnly in ./src: restart.o
 XOnly in ./src: uici.o
 Xdiff -nur ../../mt-daapd-0.1.1/src/webserver.c ./src/webserver.c
 X--- ../../mt-daapd-0.1.1/src/webserver.c	Sun Jan  4 06:27:43 2004
 X+++ ./src/webserver.c	Mon Mar 15 09:20:21 2004
 X@@ -919,9 +919,9 @@
 X  *
 X  */
 X int ws_testarg(ARGLIST *root, char *key, char *value) {
 X+    char *retval=ws_getarg(root,key);
 X     DPRINTF(ERR_DEBUG,"Checking to see if %s matches %s\n",key,value);
 X 
 X-    char *retval=ws_getarg(root,key);
 X     if(!retval)
 X 	return 0;
 X 
 XOnly in ./src: webserver.o
 XOnly in .: stamp-h1
 END-of-mt-daapd/files/patch-gcc2954
 exit
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403150840.i2F8eAJn086280>