- Do not depend on deprecated www/tomcat41 and clean up other tomcat

dependency detections [1]
- Uppdate to 4.5 [2]

PR:		ports/159776 [1]
PR:		ports/159781 [2]
Submitted by:	Jason Helfman [jhelfman experts-exchange.com] [1]
Submitted by:	maintainer [2]
Approved by:	maintainer [1]
This commit is contained in:
Rene Ladan 2011-08-18 18:35:56 +00:00
parent ce5e11049c
commit 08e4118191
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279981
4 changed files with 12 additions and 17 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= subsonic
PORTVERSION= 4.4
PORTVERSION= 4.5
CATEGORIES= www java
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-war
@ -30,23 +30,18 @@ RUN_DEPENDS+= ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
SUB_FILES= pkg-message
.if exists(${LOCALBASE}/apache-tomcat-6.0/webapps)
WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
SUB_LIST= TOMCATOPTS="tomcat60_java_opts"
.elif exists(${LOCALBASE}/tomcat5.5/webapps)
WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
SUB_LIST= TOMCATOPTS="tomcat55_java_opts"
.elif exists(${LOCALBASE}/apache-tomcat4.1/webapps)
WEBAPPDIR= ${PREFIX}/apache-tomcat4.1/webapps
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat4.1:${PORTSDIR}/www/tomcat41
SUB_LIST= TOMCATOPTS="tomcat41_java_opts"
.else
WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0:${PORTSDIR}/www/tomcat6
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
SUB_LIST= TOMCATOPTS="tomcat60_java_opts"
.endif

View File

@ -1,2 +1,2 @@
SHA256 (subsonic-4.4-war.zip) = 6ad572f6e94620f03d2a39d84d56e790884c5100aa92b3ec7c7310e23ab684ca
SIZE (subsonic-4.4-war.zip) = 18254238
SHA256 (subsonic-4.5-war.zip) = ff5ee8011c174ac5531f8751875dfe2cdd99ebb447c643726c2bce8b522f11bb
SIZE (subsonic-4.5-war.zip) = 18311536

View File

@ -1,7 +1,7 @@
========================================================================
Access Subsonic at http://localhost:8180/subsonic/ (if using the default
Access Subsonic at http://127.0.0.1:8180/subsonic/ (if using the default
Tomcat HTTP port).
If you encounter problems with thumbnails, start tomcat with

View File

@ -1,8 +1,8 @@
%%WEBAPPS%%/subsonic.war
@unexec if [ ! -d %%WEBAPPS%%/subsonic ]; then rm -f %%WEBAPPS%%/subsonic; fi
@unexec if [ -d %%WEBAPPS%%/subsonic ]; then rm -Rf %%WEBAPPS%%/subsonic; fi
@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.")
@exec mkdir -p %%SUBSONIC_HOME%%
%%TRANSCODING%%@exec ln -sf %%PREFIX/bin/ffmpeg %%SUBSONIC_HOME%%/transcode/ffmpeg
%%TRANSCODING%%@exec ln -sf %%PREFIX%%/bin/ffmpeg %%SUBSONIC_HOME%%/transcode/ffmpeg
%%TRANSCODING%%@exec ln -sf %%PREFIX%%/bin/lame %%SUBSONIC_HOME%%/transcode/lame
%%TRANSCODING%%@unexec rm -f %%SUBSONIC_HOME%%/transcode/ffmpeg
%%TRANSCODING%%@unexec rm -f %%SUBSONIC_HOME%%/transcode/lame