Skip to content

Commit

Permalink
audio/ampache: Update to 5.0.0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
crees committed Sep 1, 2021
1 parent af854d2 commit f8b16d7
Show file tree
Hide file tree
Showing 5 changed files with 9,587 additions and 7,254 deletions.
22 changes: 22 additions & 0 deletions UPDATING
Expand Up @@ -5,6 +5,28 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
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:
AFFECTS: users of mail/mu
AUTHOR: hrs@FreeBSD.org
Expand Down
6 changes: 4 additions & 2 deletions audio/ampache/Makefile
@@ -1,7 +1,7 @@
# Created by: Philippe Audeoud <jadawin@tuxaco.net>

PORTNAME= ampache
PORTVERSION= 4.3.0
PORTVERSION= 5.0.0
DISTVERSIONSUFFIX= _all
CATEGORIES= audio www
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/
Expand All @@ -14,18 +14,20 @@ LICENSE= AGPLv3+

USES= cpe zip gettext php:flavors mysql
USE_PHP= pdo pdo_mysql hash session json intl simplexml curl dom xml
IGNORE_WITH_PHP=73 80

NO_WRKSUBDIR= yes
NO_BUILD= yes
SUB_FILES= 500.ampache-cron
SUB_LIST= WWWOWN="${WWWOWN}"
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"

OPTIONS_DEFINE= DOCS

post-patch:
.for h in channel play rest
${REINPLACE_CMD} 's,[[:space:]]*RewriteRule [^[:space:]]*[[:space:]],&/ampache,' \
${WRKSRC}/$h/.htaccess.dist
${WRKSRC}/public/$h/.htaccess.dist
.endfor
${REINPLACE_CMD} 's,^;web_path = "",web_path = "/${PORTNAME}",' \
${WRKSRC}/config/ampache.cfg.php.dist
Expand Down
6 changes: 3 additions & 3 deletions audio/ampache/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1612622345
SHA256 (ampache-4.3.0_all.zip) = 51cee899a93c8bfe8a1b495a6fadce2f4e1973969e434452ab04221f5eebd0e8
SIZE (ampache-4.3.0_all.zip) = 62752685
TIMESTAMP = 1630503927
SHA256 (ampache-5.0.0_all.zip) = c8e7c797c6219726060264414b3149c2b1b825a18695d111cf417a084a7350bb
SIZE (ampache-5.0.0_all.zip) = 65176889
5 changes: 3 additions & 2 deletions audio/ampache/files/500.ampache-cron.in
Expand Up @@ -12,10 +12,11 @@ case "${daily_ampache_gc_enable:-no}" in
;;
*)
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 "# $phpcmd $cronscript"
rc=2
fi
;;
Expand Down

0 comments on commit f8b16d7

Please sign in to comment.