multimedia/emby-server: Update to 3.5.3.0
- Change license details, as emby is no longer open source - No longer compiles from source, instead downloads pre-built binaries - Change maintainer to submitter PR: 231669 Submitted by: Maxime Gauduin <alucryd@archlinux.org>
This commit is contained in:
parent
3f8c9bbbb0
commit
0898545317
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483303
@ -2,46 +2,55 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= emby-server
|
||||
PORTVERSION= 3.5.2.0
|
||||
PORTVERSION= 3.5.3.0
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/
|
||||
DISTNAME= emby-server-freebsd_${PORTVERSION}_amd64
|
||||
|
||||
MAINTAINER= woodsb02@FreeBSD.org
|
||||
COMMENT= Home media server built using mono and other open source technologies
|
||||
MAINTAINER= apps@emby.media
|
||||
COMMENT= Media server to organize, play & stream audio/video to various devices
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
||||
LICENSE= UNKNOWN
|
||||
LICENSE_NAME= custom
|
||||
LICENSE_FILE= ${WRKSRC}/license.docx
|
||||
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
|
||||
|
||||
BUILD_DEPENDS= msbuild:devel/msbuild
|
||||
LIB_DEPENDS= libavformat.so:multimedia/ffmpeg
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
|
||||
CONFLICTS_INSTALL= mediabrowser
|
||||
RUN_DEPENDS= mono:lang/mono
|
||||
LIB_DEPENDS= libass.so:multimedia/libass \
|
||||
libfontconfig.so:x11-fonts/fontconfig \
|
||||
libfreetype.so:print/freetype2 \
|
||||
libfribidi.so:converters/fribidi \
|
||||
libgnutls.so:security/gnutls \
|
||||
libopus.so:audio/opus \
|
||||
libsmbclient.so:net/samba48 \
|
||||
libsqlite3.so:databases/sqlite3 \
|
||||
libtheora.so:multimedia/libtheora \
|
||||
libva.so:multimedia/libva \
|
||||
libvorbis.so:audio/libvorbis \
|
||||
libwebp.so:graphics/webp \
|
||||
libx264.so:multimedia/libx264 \
|
||||
libzvbi.so:devel/libzvbi
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= MediaBrowser
|
||||
GH_PROJECT= Emby
|
||||
USES= iconv:wchar_t tar:xz
|
||||
USE_XORG= x11 xcb
|
||||
|
||||
USES= mono pkgconfig sqlite
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= true
|
||||
WRKSRC= ${WRKDIR}/emby-server-${PORTVERSION}
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
RC_NAME= emby_server
|
||||
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=${RC_NAME}
|
||||
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=emby_server
|
||||
USERS= emby
|
||||
GROUPS= emby
|
||||
|
||||
OPTIONS_DEFINE= X11
|
||||
OPTIONS_DEFAULT= X11
|
||||
X11_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick
|
||||
X11_LIB_DEPENDS_OFF= libMagickWand-6.so:graphics/ImageMagick-nox11
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} && \
|
||||
${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/msbuild /t:build /p:Configuration="Release Mono" \
|
||||
/p:Platform="Any CPU" MediaBrowser.sln)
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server
|
||||
(cd ${WRKSRC}/MediaBrowser.Server.Mono/bin/Release && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server)
|
||||
(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/lib/emby-server/bin)
|
||||
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/lib)
|
||||
(cd ${WRKSRC}/system && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/system)
|
||||
(cd ${STAGEDIR}${PREFIX}/lib/emby-server/system && \
|
||||
ln -s ../../libsqlite3.so ./libsqlite3.so && \
|
||||
ln -s ../lib/libSkiaSharp.so ./libSkiaSharp.so)
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1533359743
|
||||
SHA256 (MediaBrowser-Emby-3.5.2.0_GH0.tar.gz) = c1e5c44d63fda7d1cc120e48ac200e88c1d3b9f349bb868409a69019c656cfa6
|
||||
SIZE (MediaBrowser-Emby-3.5.2.0_GH0.tar.gz) = 178761469
|
||||
TIMESTAMP = 1537705721
|
||||
SHA256 (emby-server-freebsd_3.5.3.0_amd64.tar.xz) = 522497d0539f1ad5176ab3a3406d6d9dfaa9e292bdee5ccf17286b55a487df5d
|
||||
SIZE (emby-server-freebsd_3.5.3.0_amd64.tar.xz) = 14279500
|
||||
|
@ -9,60 +9,66 @@
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# %%RC_NAME%%_enable: Set to YES to enable the %%PORTNAME%% service.
|
||||
# Default: NO
|
||||
# %%RC_NAME%%_user: The user account used to run the %%PORTNAME%% daemon.
|
||||
# %%RC_NAME%%_enable: Set to yes to enable the %%PORTNAME%% service.
|
||||
# Default: no
|
||||
# %%RC_NAME%%_user: The user account used to run the %%PORTNAME%% daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run as root.
|
||||
# Default: %%USER%% (or mediabrowser with UID 989 if it exists)
|
||||
# %%RC_NAME%%_group: The group account used to run the %%PORTNAME%% daemon.
|
||||
# Default: %%USER%%
|
||||
# %%RC_NAME%%_group: The group account used to run the %%PORTNAME%% daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run with group wheel.
|
||||
# Default: %%GROUP%% (or mediabrowser with GID 989 if it exists)
|
||||
# %%RC_NAME%%_data_dir: Directory where %%PORTNAME%% configuration
|
||||
# Default: %%GROUP%%
|
||||
# %%RC_NAME%%_data_dir: Directory where %%PORTNAME%% configuration
|
||||
# data is stored.
|
||||
# Default: /var/db/%%PORTNAME%% (or /var/db/mediabrowser if it exists)
|
||||
# Default: /var/db/%%PORTNAME%%
|
||||
# %%RC_NAME%%_ffmpeg: Path of the ffmpeg binary.
|
||||
# Default: %%PEFIX%%/lib/emby-server/bin/ffmpeg
|
||||
# %%RC_NAME%%_ffprobe: Path of the ffprobe binary.
|
||||
# Default: %%PEFIX%%/lib/emby-server/bin/ffprobe
|
||||
|
||||
. /etc/rc.subr
|
||||
name=%%RC_NAME%%
|
||||
rcvar=${name}_enable
|
||||
load_rc_config $name
|
||||
load_rc_config ${name}
|
||||
|
||||
if [ "$(id -u mediabrowser 2>&1)" = "989" ] && ! [ -n "${emby_server_user}" ]; then
|
||||
%%RC_NAME%%_user=mediabrowser;
|
||||
%%RC_NAME%%_group=mediabrowser;
|
||||
fi
|
||||
[ -z "${emby_server_user}" ] && %%RC_NAME%%_user=%%USER%%
|
||||
[ -z "${emby_server_group}" ] && %%RC_NAME%%_group=%%GROUP%%
|
||||
[ -z "${emby_server_data_dir}" ] && %%RC_NAME%%_data_dir=/var/db/%%PORTNAME%%
|
||||
[ -z "${emby_server_ffmpeg}" ] && %%RC_NAME%%_ffmpeg=%%PREFIX%%/lib/emby-server/bin/ffmpeg
|
||||
[ -z "${emby_server_ffprobe}" ] && %%RC_NAME%%_ffprobe=%%PREFIX%%/lib/emby-server/bin/ffprobe
|
||||
|
||||
if [ -d "/var/db/mediabrowser" ] && ! [ -n "${emby_server_data_dir}" ]; then
|
||||
%%RC_NAME%%_data_dir="/var/db/mediabrowser";
|
||||
fi
|
||||
|
||||
: ${%%RC_NAME%%_enable:="NO"}
|
||||
: ${%%RC_NAME%%_enable:="no"}
|
||||
: ${%%RC_NAME%%_user:="%%USER%%"}
|
||||
: ${%%RC_NAME%%_group:="%%GROUP%%"}
|
||||
: ${%%RC_NAME%%_data_dir:="/var/db/%%PORTNAME%%"}
|
||||
: ${%%RC_NAME%%_ffmpeg:="%%PREFIX%%/lib/emby-server/bin/ffmpeg"}
|
||||
: ${%%RC_NAME%%_ffprobe:="%%PREFIX%%/lib/emby-server/bin/ffprobe"}
|
||||
|
||||
export LD_LIBRARY_PATH=%%PREFIX%%/lib/emby-server/lib
|
||||
|
||||
pidfile="/var/run/%%PORTNAME%%.pid"
|
||||
command="/usr/sbin/daemon"
|
||||
procname="%%LOCALBASE%%/bin/mono"
|
||||
command_args="-f -p ${pidfile} ${procname} %%PREFIX%%/lib/emby-server/MediaBrowser.Server.Mono.exe -os freebsd -ffmpeg %%LOCALBASE%%/bin/ffmpeg -ffprobe %%LOCALBASE%%/bin/ffprobe -programdata ${%%RC_NAME%%_data_dir}"
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-f -p ${pidfile} ${procname} %%PREFIX%%/lib/emby-server/system/EmbyServer.exe \
|
||||
-os freebsd \
|
||||
-ffmpeg ${%%RC_NAME%%_ffmpeg} \
|
||||
-ffprobe ${%%RC_NAME%%_ffprobe} \
|
||||
-programdata ${%%RC_NAME%%_data_dir} \
|
||||
-updatepackage emby-server-freebsd_{version}_amd64.txz"
|
||||
|
||||
start_precmd=%%RC_NAME%%_precmd
|
||||
%%RC_NAME%%_precmd()
|
||||
{
|
||||
if [ ! -e "${pidfile}" ]; then
|
||||
install -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} -- /dev/null "${pidfile}";
|
||||
fi
|
||||
|
||||
if [ ! -d "${%%RC_NAME%%_data_dir}" ]; then
|
||||
install -d -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} -- "${%%RC_NAME%%_data_dir}";
|
||||
fi
|
||||
[ -f ${pidfile} ] || install -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} -- /dev/null ${pidfile}
|
||||
[ -d ${%%RC_NAME%%_data_dir} ] || install -d -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} -- ${%%RC_NAME%%_data_dir}
|
||||
}
|
||||
|
||||
stop_postcmd=%%RC_NAME%%_postcmd
|
||||
%%RC_NAME%%_postcmd()
|
||||
{
|
||||
rm -f -- "${pidfile}"
|
||||
rm -f ${pidfile}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
Emby Server is a home media server built on top of other popular
|
||||
open source technologies such as Service Stack, jQuery, jQuery mobile,
|
||||
and Mono.
|
||||
Emby Server is a home media server built on top of other popular open source
|
||||
technologies such as Service Stack, jQuery, jQuery mobile, and .NET Core.
|
||||
|
||||
It features a REST-based api with built-in documention to facilitate
|
||||
client development. We also have client libraries for our api to enable
|
||||
rapid development.
|
||||
It features a REST-based api with built-in documention to facilitate client
|
||||
development. It also offers client libraries for its api to enable rapid
|
||||
development.
|
||||
|
||||
WWW: https://emby.media/
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user