audio/ampache: Update to 5.0.0

Huge numbers of features added and several changes-- please refer to
UPDATING for required actions.

Release notes: https://github.com/ampache/ampache/releases/tag/5.0.0
This commit is contained in:
Chris Rees 2021-09-01 15:37:37 +01:00
parent af854d2032
commit f8b16d75a0
5 changed files with 9587 additions and 7254 deletions

View file

@ -5,6 +5,28 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades. you update your ports collection, before attempting any port upgrades.
20210901:
AFFECTS: users of audio/ampache
AUTHOR: crees@FreeBSD.org
With the upgrade to Ampache 5.0.0, the root Ampache folder has changed
to %%WWWDIR%%/ampache/public. Please update your web server aliases,
for example if you use Apache, then in httpd.conf make sure the lines
look like this:
Alias /ampache /usr/local/www/ampache/public
<Directory "/usr/local/www/ampache/public">
If you have customised your .htaccess files to allow for a different
alias, you'll need to move them to the new location after upgrading:
# sh -c 'cd /usr/local/www/ampache && for f in */.htaccess; do mv $f public/$f; done'
More upgrade notes can be found on Github:
https://github.com/ampache/ampache/releases/tag/5.0.0
20210823: 20210823:
AFFECTS: users of mail/mu AFFECTS: users of mail/mu
AUTHOR: hrs@FreeBSD.org AUTHOR: hrs@FreeBSD.org

View file

@ -1,7 +1,7 @@
# Created by: Philippe Audeoud <jadawin@tuxaco.net> # Created by: Philippe Audeoud <jadawin@tuxaco.net>
PORTNAME= ampache PORTNAME= ampache
PORTVERSION= 4.3.0 PORTVERSION= 5.0.0
DISTVERSIONSUFFIX= _all DISTVERSIONSUFFIX= _all
CATEGORIES= audio www CATEGORIES= audio www
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/ MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/
@ -14,10 +14,12 @@ LICENSE= AGPLv3+
USES= cpe zip gettext php:flavors mysql USES= cpe zip gettext php:flavors mysql
USE_PHP= pdo pdo_mysql hash session json intl simplexml curl dom xml USE_PHP= pdo pdo_mysql hash session json intl simplexml curl dom xml
IGNORE_WITH_PHP=73 80
NO_WRKSUBDIR= yes NO_WRKSUBDIR= yes
NO_BUILD= yes NO_BUILD= yes
SUB_FILES= 500.ampache-cron SUB_FILES= 500.ampache-cron
SUB_LIST= WWWOWN="${WWWOWN}"
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
OPTIONS_DEFINE= DOCS OPTIONS_DEFINE= DOCS
@ -25,7 +27,7 @@ OPTIONS_DEFINE= DOCS
post-patch: post-patch:
.for h in channel play rest .for h in channel play rest
${REINPLACE_CMD} 's,[[:space:]]*RewriteRule [^[:space:]]*[[:space:]],&/ampache,' \ ${REINPLACE_CMD} 's,[[:space:]]*RewriteRule [^[:space:]]*[[:space:]],&/ampache,' \
${WRKSRC}/$h/.htaccess.dist ${WRKSRC}/public/$h/.htaccess.dist
.endfor .endfor
${REINPLACE_CMD} 's,^;web_path = "",web_path = "/${PORTNAME}",' \ ${REINPLACE_CMD} 's,^;web_path = "",web_path = "/${PORTNAME}",' \
${WRKSRC}/config/ampache.cfg.php.dist ${WRKSRC}/config/ampache.cfg.php.dist

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1612622345 TIMESTAMP = 1630503927
SHA256 (ampache-4.3.0_all.zip) = 51cee899a93c8bfe8a1b495a6fadce2f4e1973969e434452ab04221f5eebd0e8 SHA256 (ampache-5.0.0_all.zip) = c8e7c797c6219726060264414b3149c2b1b825a18695d111cf417a084a7350bb
SIZE (ampache-4.3.0_all.zip) = 62752685 SIZE (ampache-5.0.0_all.zip) = 65176889

View file

@ -12,10 +12,11 @@ case "${daily_ampache_gc_enable:-no}" in
;; ;;
*) *)
phpcmd=%%LOCALBASE%%/bin/php phpcmd=%%LOCALBASE%%/bin/php
cronscript=%%WWWDIR%%/bin/cron.inc cronscript="%%WWWDIR%%/bin/cli run:cronProcess"
if ! $phpcmd $cronscript >/dev/null 2>&1 ; then if ! su -m %%WWWOWN%% -c "$phpcmd $cronscript" >/dev/null 2>&1 ; then
echo 'ampache cron script failed- try running it manually' echo 'ampache cron script failed- try running it manually'
echo "# $phpcmd $cronscript"
rc=2 rc=2
fi fi
;; ;;

File diff suppressed because it is too large Load diff