diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-10-19 15:59:16 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-10-19 15:59:16 +0000 |
commit | d19fd1a9a0dedd00ae0ddab42b32e13da11ba8b2 (patch) | |
tree | 05463fb132470c9c160b8bdbf33a2abd417d5514 /audio/firefly | |
parent | 37037781eee835f079f56e272a1543479836a2de (diff) | |
download | ports-d19fd1a9a0dedd00ae0ddab42b32e13da11ba8b2.tar.gz ports-d19fd1a9a0dedd00ae0ddab42b32e13da11ba8b2.zip |
Notes
Diffstat (limited to 'audio/firefly')
-rw-r--r-- | audio/firefly/Makefile | 87 | ||||
-rw-r--r-- | audio/firefly/distinfo | 3 | ||||
-rw-r--r-- | audio/firefly/files/mt-daapd.in | 19 | ||||
-rw-r--r-- | audio/firefly/files/patch-mt-daapd.conf.templ | 40 | ||||
-rw-r--r-- | audio/firefly/files/pkg-deinstall.in | 28 | ||||
-rw-r--r-- | audio/firefly/files/pkg-install.in | 33 | ||||
-rw-r--r-- | audio/firefly/pkg-descr | 5 | ||||
-rw-r--r-- | audio/firefly/pkg-plist | 80 | ||||
-rw-r--r-- | audio/firefly/pl | 74 |
9 files changed, 369 insertions, 0 deletions
diff --git a/audio/firefly/Makefile b/audio/firefly/Makefile new file mode 100644 index 000000000000..d433707a7374 --- /dev/null +++ b/audio/firefly/Makefile @@ -0,0 +1,87 @@ +# New ports collection makefile for: mt-daapd-devel +# Date created: 26 Nov 2007 +# Whom: Mark Foster <mark@foster.cc> +# $FreeBSD$ +# + +PORTNAME= firefly +PORTVERSION= 1696 +CATEGORIES= audio +MASTER_SITES= http://nightlies.fireflymediaserver.org/nightlies/svn-${PORTVERSION}/ \ + http://www.magnesium.net/~mdf/distfiles/ +DISTNAME= mt-daapd-svn-${PORTVERSION} + +MAINTAINER= mark@foster.cc +COMMENT= Open-source media server for the Roku SoundBridge and iTunes + +BUILD_DEPENDS= ${LOCALBASE}/include/vorbis/codec.h:${PORTSDIR}/audio/libvorbis \ + ${LOCALBASE}/include/FLAC/metadata.h:${PORTSDIR}/audio/flac +RUN_DEPENDS= oggdec:${PORTSDIR}/audio/vorbis-tools \ + flac:${PORTSDIR}/audio/flac +LIB_DEPENDS= ogg:${PORTSDIR}/audio/libogg \ + sqlite:${PORTSDIR}/databases/sqlite2 \ + id3tag.0:${PORTSDIR}/audio/libid3tag + +CONFLICTS= mt-daapd-0.2.* + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ + CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ARGS= --prefix=${LOCALBASE} --with-id3tag=${PREFIX} --enable-sqlite --enable-oggvorbis --enable-flac + +#USE_AUTOTOOLS= autoheader:261 autoconf:261:env + +DAAPD_USER?= daapd +DAAPD_GROUP?= daapd +DAAPD_DBDIR?= ${PREFIX}/var/db/${PORTNAME} +USE_RC_SUBR= mt-daapd + +PLIST_SUB+= DAAPD_DBDIR=${DAAPD_DBDIR} +SUB_LIST+= USER=${DAAPD_USER} GROUP=${DAAPD_GROUP} DAAPD_DBDIR=${DAAPD_DBDIR} +SUB_FILES+= pkg-install pkg-deinstall + +USE_LDCONFIG= yes + +pre-everything:: + @${ECHO_CMD} "Define vars bellow if you need:" + @${ECHO_CMD} "DAAPD_USER=${DAAPD_USER} (default: daapd)" + @${ECHO_CMD} "DAAPD_GROUP=${DAAPD_GROUP} (default: daapd)" + @${ECHO_CMD} "DAAPD_DBDIR=${DAAPD_DBDIR} (default: ${PREFIX}/var/db/${PORTNAME})" + +post-patch: + @${REINPLACE_CMD} -e 's|echo aout|echo elf|' \ + ${WRKSRC}/configure + +pre-install: + @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in README AUTHORS COPYING CREDITS \ + ChangeLog INSTALL NEWS TODO + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + @[ -f ${PREFIX}/etc/mt-daapd.conf.sample ] || \ + ${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf \ + ${PREFIX}/etc/mt-daapd.conf.sample + @${MKDIR} ${DAAPD_DBDIR} + @${MKDIR} ${DATADIR} + @${CHMOD} 0755 ${DAAPD_DBDIR} + @${CHMOD} 0755 ${DATADIR} + @${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DAAPD_DBDIR} + @${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DATADIR} + ${LN} -sf ${PREFIX}/lib/mt-daapd/plugins/libout-daap.so.0.0 ${PREFIX}/lib/mt-daapd/plugins/libout-daap.so + ${LN} -sf ${PREFIX}/lib/mt-daapd/plugins/librsp.so.0.0 ${PREFIX}/lib/mt-daapd/plugins/librsp.so + ${LN} -sf ${PREFIX}/lib/mt-daapd/plugins/libssc-script.so.0.0 ${PREFIX}/lib/mt-daapd/plugins/libssc-script.so + + @${ECHO_MSG} "This port installs a sample configuration file in" + @${ECHO_MSG} "${LOCALBASE}/etc/mt-daapd.conf.sample" + @${ECHO_MSG} "You probably should move/copy this file to mt-daapd.conf" + @${ECHO_MSG} "and customize to fit your needs." + +.include <bsd.port.mk> diff --git a/audio/firefly/distinfo b/audio/firefly/distinfo new file mode 100644 index 000000000000..3c7ba4ba3a19 --- /dev/null +++ b/audio/firefly/distinfo @@ -0,0 +1,3 @@ +MD5 (mt-daapd-svn-1696.tar.gz) = 42ba1f432bb88e18a8cb4ce0fc52eb64 +SHA256 (mt-daapd-svn-1696.tar.gz) = 9c3f1fc4d46391286ec8572c3080bb28d681ea6b1afe3ba51ffadf2eb7cfa344 +SIZE (mt-daapd-svn-1696.tar.gz) = 1371458 diff --git a/audio/firefly/files/mt-daapd.in b/audio/firefly/files/mt-daapd.in new file mode 100644 index 000000000000..d11ec7d8e6dc --- /dev/null +++ b/audio/firefly/files/mt-daapd.in @@ -0,0 +1,19 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: firefly +# REQUIRE: LOGIN + +. %%RC_SUBR%% + +name="firefly" +rcvar="firefly_enable" + +command="%%PREFIX%%/sbin/mt-daapd" +command_args="-c %%PREFIX%%/etc/mt-daapd.conf" +pidfile="/var/run/mt-daapd.pid" +required_dirs="%%PREFIX%%/var/db/firefly" +required_files="%%PREFIX%%/etc/mt-daapd.conf" + +load_rc_config "$name" +run_rc_command "$1" diff --git a/audio/firefly/files/patch-mt-daapd.conf.templ b/audio/firefly/files/patch-mt-daapd.conf.templ new file mode 100644 index 000000000000..29988b267538 --- /dev/null +++ b/audio/firefly/files/patch-mt-daapd.conf.templ @@ -0,0 +1,40 @@ +--- contrib/mt-daapd.conf.templ 2008-09-23 23:16:46.000000000 -0700 ++++ contrib/mt-daapd.conf.templ 2008-09-23 23:40:43.000000000 -0700 +@@ -105,7 +105,7 @@ + # This is also ignored on Windows. + # + +-runas = nobody ++runas = daapd + + # + # password (optional) +@@ -136,7 +136,7 @@ + # --enable-musepack. + # + +-extensions = .mp3,.m4a,.m4p ++extensions = .mp3,.m4a,.m4p,.ogg,.flac + + # + # ssc_codectypes (optional) +@@ -194,8 +194,8 @@ + # will vary the amount of logging you get. + # + +-#logfile = /var/log/mt-daapd.log +- ++logfile = /var/log/mt-daapd.log ++debuglevel = 5 + # + # rescan_interval + # +@@ -252,7 +252,7 @@ + # the file is indexed. + # + +-scan_type = 2 ++scan_type = 0 + + # + # compress diff --git a/audio/firefly/files/pkg-deinstall.in b/audio/firefly/files/pkg-deinstall.in new file mode 100644 index 000000000000..7b5b7d2bf6e6 --- /dev/null +++ b/audio/firefly/files/pkg-deinstall.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# formerly $ FreeBSD: ports/audio/mt-daapd/pkg-deinstall,v 1.1 2004/08/05 23:00:09 edwin Exp $ +# + +PATH=/bin:/usr/bin:/usr/sbin + +case $2 in + +POST-DEINSTALL) + echo '---> Starting post-deinstall script:' + + if [ -f /usr/local/etc/mt-daapd.conf ]; then + echo '---> You seem to have made some custom daapd configuration.' + echo '---> The "daapd" user and "daapd" group were therefore not deleted.' + echo '---> You may delete them with "pw groupdel daapd; pw userdel daapd".' + + else + echo '---> Removing group "daapd"' + /usr/sbin/pw groupdel -n daapd + echo '---> Removing user "daapd"' + echo 'y' | /usr/sbin/pw userdel -n daapd + fi + + ;; + +esac diff --git a/audio/firefly/files/pkg-install.in b/audio/firefly/files/pkg-install.in new file mode 100644 index 000000000000..7ac013bbc043 --- /dev/null +++ b/audio/firefly/files/pkg-install.in @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/audio/firefly/files/Attic/pkg-install.in,v 1.1 2008-10-19 15:59:16 miwi Exp $ +# formerly $ FreeBSD: ports/audio/mt-daapd/pkg-install,v 1.1 2004/08/05 23:00:09 edwin Exp $ +# + +PATH=/bin:/usr/bin:/usr/sbin + +case $2 in + +PRE-INSTALL) + echo "---> Starting pre-install script:" + + if pw showgroup "daapd" 2>/dev/null; then + echo "---> Using existing group \"daapd\"" + else + echo "---> Adding group \"daapd\"" + pw addgroup daapd -h - || exit 1 + fi + + + # Create user if required + if pw showuser "daapd" 2>/dev/null; then + echo "---> Using existing user \"daapd\"" + else + echo "---> Adding user \"daapd\"" + pw adduser daapd -g daapd -h - \ + -d "/nonexistent" -s "/sbin/nologin" -c "daapd User" || exit 1 + fi + + ;; + +esac diff --git a/audio/firefly/pkg-descr b/audio/firefly/pkg-descr new file mode 100644 index 000000000000..ef7a166198f3 --- /dev/null +++ b/audio/firefly/pkg-descr @@ -0,0 +1,5 @@ +Firefly (mt-daapd) is an open-source media server for the Roku SoundBridge +and Apple iTunes. It runs on POSIX platforms as well as Win32. It supports +server-side transcoding and other advanced features. + +WWW: http://www.fireflymediaserver.org/ diff --git a/audio/firefly/pkg-plist b/audio/firefly/pkg-plist new file mode 100644 index 000000000000..3b0e38c12738 --- /dev/null +++ b/audio/firefly/pkg-plist @@ -0,0 +1,80 @@ +@unexec if cmp -s %D/etc/mt-daapd.conf.sample %D/etc/mt-daapd.conf; then rm -f %D/etc/mt-daapd.conf; fi +bin/mt-daapd-ssc.sh +bin/wavstreamer +etc/mt-daapd.conf.sample +lib/mt-daapd/plugins/libout-daap.so +lib/mt-daapd/plugins/librsp.so +lib/mt-daapd/plugins/libssc-script.so +lib/mt-daapd/plugins/out-daap.a +lib/mt-daapd/plugins/out-daap.la +lib/mt-daapd/plugins/out-daap.so +lib/mt-daapd/plugins/rsp.a +lib/mt-daapd/plugins/rsp.la +lib/mt-daapd/plugins/rsp.so +lib/mt-daapd/plugins/ssc-script.a +lib/mt-daapd/plugins/ssc-script.la +lib/mt-daapd/plugins/ssc-script.so +sbin/mt-daapd +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +share/mt-daapd/admin-root/CREDITS +share/mt-daapd/admin-root/DAAPApplet-0.1.jar +share/mt-daapd/admin-root/about.html +share/mt-daapd/admin-root/applet.html +share/mt-daapd/admin-root/config-update.html +share/mt-daapd/admin-root/config.css +share/mt-daapd/admin-root/config.html +share/mt-daapd/admin-root/config.js +share/mt-daapd/admin-root/config.xml +share/mt-daapd/admin-root/feedback.html +share/mt-daapd/admin-root/ff_logo_sm.gif +share/mt-daapd/admin-root/firefly.css +share/mt-daapd/admin-root/firefly.js +share/mt-daapd/admin-root/ftr.html +share/mt-daapd/admin-root/gpl-license.html +share/mt-daapd/admin-root/gpl-license.txt +share/mt-daapd/admin-root/hdr.html +share/mt-daapd/admin-root/index.css +share/mt-daapd/admin-root/index.html +share/mt-daapd/admin-root/lib-js/prototype.js +share/mt-daapd/admin-root/lib-js/rico.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/builder.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/controls.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/dragdrop.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/effects.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/scriptaculous.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/slider.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/unittest.js +share/mt-daapd/admin-root/linkOpaque.gif +share/mt-daapd/admin-root/linkTransparent.gif +share/mt-daapd/admin-root/no_access.html +share/mt-daapd/admin-root/playlist.html +share/mt-daapd/admin-root/playlist.js +share/mt-daapd/admin-root/pngfix.js +share/mt-daapd/admin-root/required.gif +share/mt-daapd/admin-root/smart.html +share/mt-daapd/admin-root/smart.js +share/mt-daapd/admin-root/smartpopup.html +share/mt-daapd/admin-root/spinner.gif +share/mt-daapd/admin-root/spinner_stopped.gif +share/mt-daapd/admin-root/status.js +share/mt-daapd/admin-root/thanks.html +share/mt-daapd/admin-root/util.js +share/mt-daapd/admin-root/xiph-license.html +share/mt-daapd/admin-root/xiph-license.txt +share/mt-daapd/admin-root/zlib-license.html +share/mt-daapd/admin-root/zlib-license.txt +@dirrmtry share/mt-daapd/admin-root/lib-js/script.aculo.us +@dirrmtry share/mt-daapd/admin-root/lib-js +@dirrmtry share/mt-daapd/admin-root +@dirrmtry share/mt-daapd +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrmtry lib/mt-daapd/plugins +@dirrmtry lib/mt-daapd diff --git a/audio/firefly/pl b/audio/firefly/pl new file mode 100644 index 000000000000..3c0f7e0b6eb6 --- /dev/null +++ b/audio/firefly/pl @@ -0,0 +1,74 @@ +@unexec if cmp -s %D/etc/mt-daapd.conf.sample %D/etc/mt-daapd.conf; then rm -f %D/etc/mt-daapd.conf; fi +bin/mt-daapd-ssc.sh +bin/wavstreamer +etc/mt-daapd.conf.sample +lib/mt-daapd/plugins/libout-daap.so +lib/mt-daapd/plugins/librsp.so +lib/mt-daapd/plugins/libssc-script.so +lib/mt-daapd/plugins/out-daap.la +lib/mt-daapd/plugins/rsp.la +lib/mt-daapd/plugins/ssc-script.la +sbin/mt-daapd +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +share/mt-daapd/admin-root/CREDITS +share/mt-daapd/admin-root/DAAPApplet-0.1.jar +share/mt-daapd/admin-root/about.html +share/mt-daapd/admin-root/applet.html +share/mt-daapd/admin-root/config-update.html +share/mt-daapd/admin-root/config.css +share/mt-daapd/admin-root/config.html +share/mt-daapd/admin-root/config.js +share/mt-daapd/admin-root/config.xml +share/mt-daapd/admin-root/feedback.html +share/mt-daapd/admin-root/ff_logo_sm.gif +share/mt-daapd/admin-root/firefly.css +share/mt-daapd/admin-root/firefly.js +share/mt-daapd/admin-root/ftr.html +share/mt-daapd/admin-root/gpl-license.html +share/mt-daapd/admin-root/gpl-license.txt +share/mt-daapd/admin-root/hdr.html +share/mt-daapd/admin-root/index.css +share/mt-daapd/admin-root/index.html +share/mt-daapd/admin-root/lib-js/prototype.js +share/mt-daapd/admin-root/lib-js/rico.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/builder.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/controls.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/dragdrop.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/effects.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/scriptaculous.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/slider.js +share/mt-daapd/admin-root/lib-js/script.aculo.us/unittest.js +share/mt-daapd/admin-root/linkOpaque.gif +share/mt-daapd/admin-root/linkTransparent.gif +share/mt-daapd/admin-root/no_access.html +share/mt-daapd/admin-root/playlist.html +share/mt-daapd/admin-root/playlist.js +share/mt-daapd/admin-root/pngfix.js +share/mt-daapd/admin-root/required.gif +share/mt-daapd/admin-root/smart.html +share/mt-daapd/admin-root/smart.js +share/mt-daapd/admin-root/smartpopup.html +share/mt-daapd/admin-root/spinner.gif +share/mt-daapd/admin-root/spinner_stopped.gif +share/mt-daapd/admin-root/status.js +share/mt-daapd/admin-root/thanks.html +share/mt-daapd/admin-root/util.js +share/mt-daapd/admin-root/xiph-license.html +share/mt-daapd/admin-root/xiph-license.txt +share/mt-daapd/admin-root/zlib-license.html +share/mt-daapd/admin-root/zlib-license.txt +@dirrmtry share/mt-daapd/admin-root/lib-js/script.aculo.us +@dirrmtry share/mt-daapd/admin-root/lib-js +@dirrmtry share/mt-daapd/admin-root +@dirrmtry share/mt-daapd +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrmtry lib/mt-daapd/plugins +@dirrmtry lib/mt-daapd |