mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
audio/ampache: Resurrect and update to 4.3.0
Delighted that this has a new upstream maintainer! Huge numbers of changes since it was taken over last year, so definitely worth another look. http://ampache.org/
This commit is contained in:
parent
614dd8eda5
commit
bf25be766d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=564645
46
audio/ampache/Makefile
Normal file
46
audio/ampache/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# Created by: Philippe Audeoud <jadawin@tuxaco.net>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= ampache
|
||||
PORTVERSION= 4.3.0
|
||||
DISTVERSIONSUFFIX= _all
|
||||
CATEGORIES= audio www
|
||||
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/
|
||||
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
|
||||
|
||||
MAINTAINER= crees@FreeBSD.org
|
||||
COMMENT= Web-based Audio file manager
|
||||
|
||||
LICENSE= AGPLv3+
|
||||
|
||||
USES= zip gettext php:flavors mysql
|
||||
USE_PHP= pdo pdo_mysql hash session json intl simplexml curl dom xml
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_BUILD= yes
|
||||
SUB_FILES= 500.ampache-cron
|
||||
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
|
||||
.endfor
|
||||
${REINPLACE_CMD} 's,^;web_path = "",web_path = "/${PORTNAME}",' \
|
||||
${WRKSRC}/config/ampache.cfg.php.dist
|
||||
|
||||
do-build:
|
||||
${MKDIR} ${WRKSRC}/src
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '-not -regex ^./man.*')
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} '-not -regex ^./docs.* -a -not -name *.bak')
|
||||
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/500.ampache-cron ${STAGEDIR}${PREFIX}/etc/periodic/daily/
|
||||
|
||||
.include <bsd.port.mk>
|
3
audio/ampache/distinfo
Normal file
3
audio/ampache/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1612622345
|
||||
SHA256 (ampache-4.3.0_all.zip) = 51cee899a93c8bfe8a1b495a6fadce2f4e1973969e434452ab04221f5eebd0e8
|
||||
SIZE (ampache-4.3.0_all.zip) = 62752685
|
27
audio/ampache/files/500.ampache-cron.in
Normal file
27
audio/ampache/files/500.ampache-cron.in
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if [ -r /etc/defaults/periodic.conf ]; then
|
||||
. /etc/defaults/periodic.conf
|
||||
source_periodic_confs
|
||||
fi
|
||||
|
||||
rc=0
|
||||
|
||||
case "${daily_ampache_gc_enable:-no}" in
|
||||
[Nn][Oo])
|
||||
;;
|
||||
*)
|
||||
phpcmd=%%LOCALBASE%%/bin/php
|
||||
cronscript=%%WWWDIR%%/bin/cron.inc
|
||||
|
||||
if ! $phpcmd $cronscript >/dev/null 2>&1 ; then
|
||||
echo 'ampache cron script failed- try running it manually'
|
||||
rc=2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $rc
|
8
audio/ampache/pkg-descr
Normal file
8
audio/ampache/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
Ampache is a Web-based Audio file manager. It is implemented with MySQL,
|
||||
and PHP. It allows you to view, edit, and play your audio files via the
|
||||
web. It has support for playlists, artist and album views, album art,
|
||||
random play, playback via Http/On the Fly Transcoding and Downsampling,
|
||||
Vote based playback, Mpd and Icecast, Integrated Flash Player, as well
|
||||
as per user themes and song play tracking.
|
||||
|
||||
WWW: http://ampache.org/
|
9
audio/ampache/pkg-message
Normal file
9
audio/ampache/pkg-message
Normal file
@ -0,0 +1,9 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
It is recommended to run the garbage collection daily:
|
||||
|
||||
# echo daily_ampache_gc_enable=yes >> /etc/periodic.conf
|
||||
EOM
|
||||
}
|
||||
]
|
7333
audio/ampache/pkg-plist
Normal file
7333
audio/ampache/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user