ports/64077: New port: audio/mt-daapd

Meno Abels abels at adviser.com
Thu Mar 11 01:00:42 UTC 2004


>Number:         64077
>Category:       ports
>Synopsis:       New port: audio/mt-daapd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 10 17:00:40 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Meno Abels
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
Adviser.com
>Environment:
System: FreeBSD race 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #6: Mon Feb 23 18:41:05 CET 2004 root at neo.abels.adviser.com:/usr/obj/usr/src/sys/GENERIC i386

>Description:
mt-daapd scans a directory for music files and makes them available via
the Apple proprietary protocol DAAP. DAAP clients can browse the
directory and retrieve individual files, either by streaming or by
downloading them. 

WWW: http://mt-daapd.sourceforge.net/
>How-To-Repeat:
	make deinstall
	make install
>Fix:
# 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
#
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 at 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'
Xmt-daapd 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 at 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 at 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=%%PREFIX%%/sbin/mt-daapd
XMT_DAAPD_CONF=%%PREFIX%%/etc/mt-daapd.conf
X
Xcase "$1" in
X	start)
X		if [ -r "${MT_DAAPD_CONF}" ]; then
X			${MT_DAAPD} -c ${MT_DAAPD_CONF}" 
X			echo $(($!+1)) > "${MT_DAAPD_PID}"
X			echo -n ' mt-daapd'
X		fi
X		;;
X	stop)
X		kill -TERM `cat "${MT_DAAPD_PID}"` && rm -f "${MT_DAAPD_PID}"
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
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list