ports/159367: [New port] www/subsonic: subsonic media streamer

Nicole Reid root at cooltrainer.org
Mon Aug 1 22:00:19 UTC 2011


>Number:         159367
>Category:       ports
>Synopsis:       [New port] www/subsonic: subsonic media streamer
>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:   Mon Aug 01 22:00:17 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Nicole Reid
>Release:        
>Organization:
>Environment:
>Description:
Subsonic is a free, web-based media streamer, providing ubiquitous 
access to your music. Use it to share your music with friends, 
or to listen to your own music while at work. 
You can stream to multiple players simultaneously, 
for instance to one player in your kitchen and another in your living 
room. 
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	subsonic
#	subsonic/files
#	subsonic/files/pkg-message.in
#	subsonic/pkg-plist
#	subsonic/distinfo
#	subsonic/Makefile
#	subsonic/pkg-descr
#
echo c - subsonic
mkdir -p subsonic > /dev/null 2>&1
echo c - subsonic/files
mkdir -p subsonic/files > /dev/null 2>&1
echo x - subsonic/files/pkg-message.in
sed 's/^X//' >subsonic/files/pkg-message.in << '08dc66e836f606e526832f1a0a774a4a'
X
X========================================================================
X
XAccess Subsonic at http://localhost:8180/subsonic/ (if using the default
XTomcat HTTP port).
X
XIf you encounter problems with thumbnails, start tomcat with 
X%%TOMCATOPTS%%="-Djava.awt.headless=true"
X
X========================================================================
08dc66e836f606e526832f1a0a774a4a
echo x - subsonic/pkg-plist
sed 's/^X//' >subsonic/pkg-plist << '4b055beae1009b461c428e9a292d0666'
X%%WEBAPPS%%/subsonic.war
X at unexec if [ ! -d %%WEBAPPS%%/subsonic ]; then rm -f %%WEBAPPS%%/subsonic; fi
X at unexec test -d %%SUBSONIC_HOME%% && (echo "Configuration information saved.  If you will *NOT* use this package anymore," && echo "please remove %%SUBSONIC_HOME%% and its contents manually.")
X at exec mkdir -p %%SUBSONIC_HOME%%
X%%TRANSCODING%%@exec ln -sf %%PREFIX/bin/ffmpeg %%SUBSONIC_HOME%%/transcode/ffmpeg
X%%TRANSCODING%%@exec ln -sf %%PREFIX%%/bin/lame %%SUBSONIC_HOME%%/transcode/lame
X%%TRANSCODING%%@unexec rm -f %%SUBSONIC_HOME%%/transcode/ffmpeg
X%%TRANSCODING%%@unexec rm -f %%SUBSONIC_HOME%%/transcode/lame
4b055beae1009b461c428e9a292d0666
echo x - subsonic/distinfo
sed 's/^X//' >subsonic/distinfo << 'efd5a0d6f4d16daebf8bd6c21433850c'
XSHA256 (subsonic-4.4-war.zip) = 6ad572f6e94620f03d2a39d84d56e790884c5100aa92b3ec7c7310e23ab684ca
XSIZE (subsonic-4.4-war.zip) = 18254238
efd5a0d6f4d16daebf8bd6c21433850c
echo x - subsonic/Makefile
sed 's/^X//' >subsonic/Makefile << 'c5b585539e0c0f8be5f5a7d936efb35c'
X# New ports collection makefile for:	subsonic
X# Date created:		2011-02-01
X# Whom:			Nicole Reid <root at cooltrainer.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	subsonic
XPORTVERSION=	4.4
XCATEGORIES=	www java
XMASTER_SITES=	SF
XDISTNAME=	${PORTNAME}-${PORTVERSION}-war
X
XMAINTAINER=	root at cooltrainer.org
XCOMMENT=	Subsonic streaming media server
X
XBUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
XRUN_DEPENDS+=	${JAVAJARDIR}/servlet-api.jar:${PORTSDIR}/www/servlet-api
X
XOPTIONS=	TRANSCODING "Enable transcoding with FFmpeg and LAME"	On
X
X.include <bsd.port.options.mk>
X
X.if defined(WITH_TRANSCODING)
XRUN_DEPENDS+=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
X	lame:${PORTSDIR}/audio/lame
X.endif
X
X#Subsonic does not currently run on Tomcat 7
XSUB_FILES=	pkg-message
X.if exists(${LOCALBASE}/apache-tomcat-6.0/webapps)
XWEBAPPDIR=	${PREFIX}/apache-tomcat-6.0/webapps
XBUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
XRUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
XSUB_LIST=	TOMCATOPTS="tomcat60_java_opts"
X.elif exists(${LOCALBASE}/tomcat5.5/webapps)
XWEBAPPDIR=	${PREFIX}/tomcat5.5/webapps
XBUILD_DEPENDS+=	${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
XRUN_DEPENDS+=	${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
XSUB_LIST=	TOMCATOPTS="tomcat55_java_opts"
X.elif exists(${LOCALBASE}/apache-tomcat4.1/webapps)
XWEBAPPDIR=	${PREFIX}/apache-tomcat4.1/webapps
XBUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
XRUN_DEPENDS+=	${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
XSUB_LIST=	TOMCATOPTS="tomcat41_java_opts"
X.else
XWEBAPPDIR=	${PREFIX}/apache-tomcat-6.0/webapps
XBUILD_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
XRUN_DEPENDS+=	${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
XSUB_LIST=	TOMCATOPTS="tomcat60_java_opts"
X.endif
X
XNO_BUILD=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.5+
XUSE_ZIP=	yes
XUSER=		www
XGROUP=		www
XSUBSONIC_HOME=	/var/subsonic
XPLIST_SUB+=	SUBSONIC_HOME="${SUBSONIC_HOME}"
X
X.if defined(WITH_TRANSCODING)
XPLIST_SUB+=	TRANSCODING=""
X.else
XPLIST_SUB+=	TRANSCODING="@comment "
X.endif
X
XPLIST_SUB+=	WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||}
X
Xdo-install:
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.war ${WEBAPPDIR}
X	@${MKDIR} ${SUBSONIC_HOME}
X	@${CHOWN} ${USER}:${GROUP} ${SUBSONIC_HOME}
X
Xpost-install:
X.if defined(WITH_TRANSCODING)
X	@${MKDIR} ${SUBSONIC_HOME}/transcode
X	@${LN} -sf ${PREFIX}/bin/ffmpeg ${SUBSONIC_HOME}/transcode/ffmpeg
X	@${LN} -sf ${PREFIX}/bin/lame ${SUBSONIC_HOME}/transcode/lame
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
c5b585539e0c0f8be5f5a7d936efb35c
echo x - subsonic/pkg-descr
sed 's/^X//' >subsonic/pkg-descr << '5b9eba57a533ae1fbe8bd0976b2dff89'
XSubsonic is a free, web-based media streamer, providing ubiquitous 
Xaccess to your music. Use it to share your music with friends, 
Xor to listen to your own music while at work. 
XYou can stream to multiple players simultaneously, 
Xfor instance to one player in your kitchen and another in your living 
Xroom. 
5b9eba57a533ae1fbe8bd0976b2dff89
exit



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



More information about the freebsd-ports-bugs mailing list