From nobody Wed Feb 16 12:23:54 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6CEC819BAFB9; Wed, 16 Feb 2022 12:23:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzHF62ZbMz3JM2; Wed, 16 Feb 2022 12:23:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645014234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MwhqvxcJuJqcHat8JFl5ptD20QDUs1DjriLcDbgqLPA=; b=c35tO3xbLKuW9DqqdvstjEqsN089kdAYnr6vtHnM9rOOYaZlKqsg+yQ3RCz0l7DPayt0T3 l1yK96+u97OTHB4FR+R4JVP3EiKBoy8MaKE1IY6s9VsUet8A7PUuVxfrC0HJkvFO29Lmbn 79QeGMqTOAom8yJOpWW0T81auUx+Rh7zqa21bgiyN6POx8u7ZpovhbEDsWfY5YWS2+jEqi 3erxn9aoDbixhYF/0CMmXxhXUzfAAaDrWSqp+3Vr9Wa7QOIp6blmvmb+EgKbZsVvhELK5b X5Ets95sLrBG/IWbguHw+rGUF96SsbLKqWFxf/nfSHdTEwMW92qEUOf6GanKCQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 37E81162AF; Wed, 16 Feb 2022 12:23:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21GCNsY1008019; Wed, 16 Feb 2022 12:23:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21GCNsiG008018; Wed, 16 Feb 2022 12:23:54 GMT (envelope-from git) Date: Wed, 16 Feb 2022 12:23:54 GMT Message-Id: <202202161223.21GCNsiG008018@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dries Michiels Subject: git: 1132f2bb1d88 - main - multimedia/emby-server-devel: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: driesm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1132f2bb1d8872fcd08775baa99d9466b9a9842d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645014234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MwhqvxcJuJqcHat8JFl5ptD20QDUs1DjriLcDbgqLPA=; b=BLbU/hZOiwtH65m+IakX+HU5xu0g03yEO1OOC8LgBNB1DLm+U+9tOas5dVMbLZrivH2dcX xyMB6NkRpG8uXuzc7h5eVZi7FCS+IFZ89GYxFDX/fRDH1+j+uCfKni+MXOKZzH4xmNFknY LW1hbIPeafK1seVW5dlH9CeEN8iT+1RZ5tDHJptUCUkHsDAIXISoZB7axFQRixHk8lc9l4 GFh+4UVNXgMgYgMgdwIm9OsA3UdNs5+7PnQxQZiOkLbgGmeR2J2YeoJ2WT2aAvcIpl1a8A 9Gv4vD0mCVV8S4PGm6lLtFoquGUhnZcH2VhLOwq3LlbZbBK3cSiF3+Ka1xwykg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645014234; a=rsa-sha256; cv=none; b=K60AeVCRHHs6z9dfuPKRKEUt4NxWGz4q/G6sO7OU0n9XSK+EZFvLCMYuLfnGHgCYWDyzwH yJ1DOKYFNlDiETMCR5rs7OAUx5S7nf5EcJtBq+B32UICZ2ts2bnWv3I2PyMe5xhsdeVgCN a2AFKel+yi2UAYlk08AtsslIVZ5DlRIhoXb8Qh+TCG1LB1kYCHGn5uTZPkd5EUQEWf+Vtr USKN1C0m2bItQ8KMyFfutA9hFTHYpd0QPj0DhgSmr3dY15Diq/nbT6hKp4F827Fxy91KbT PkPpH7Zxc1jgKAr6ok3CQcEu6Xgw6F+ntt/oka8KwIr0hwLFtvl+rjpPYb4+YQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by driesm: URL: https://cgit.FreeBSD.org/ports/commit/?id=1132f2bb1d8872fcd08775baa99d9466b9a9842d commit 1132f2bb1d8872fcd08775baa99d9466b9a9842d Author: Dries Michiels AuthorDate: 2021-12-22 15:26:26 +0000 Commit: Dries Michiels CommitDate: 2022-02-16 11:55:25 +0000 multimedia/emby-server-devel: New port This port will track the beta of emby server. --- multimedia/Makefile | 1 + multimedia/emby-server-devel/Makefile | 134 +++ multimedia/emby-server-devel/distinfo | 9 + .../files/ImageMagickSharp.dll.config.in | 3 + .../SQLitePCLRaw.provider.sqlite3.dll.config.in | 3 + multimedia/emby-server-devel/files/emby-server.in | 69 ++ multimedia/emby-server-devel/pkg-deinstall | 10 + multimedia/emby-server-devel/pkg-descr | 8 + multimedia/emby-server-devel/pkg-message | 14 + multimedia/emby-server-devel/pkg-plist | 1011 ++++++++++++++++++++ multimedia/emby-server/Makefile | 2 + 11 files changed, 1264 insertions(+) diff --git a/multimedia/Makefile b/multimedia/Makefile index d029970eedb9..89728c8aebd2 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -57,6 +57,7 @@ SUBDIR += dvdstyler SUBDIR += elementary-videos SUBDIR += emby-server + SUBDIR += emby-server-devel SUBDIR += emovix SUBDIR += ffaudioconverter SUBDIR += ffdec diff --git a/multimedia/emby-server-devel/Makefile b/multimedia/emby-server-devel/Makefile new file mode 100644 index 000000000000..75ed058cde7f --- /dev/null +++ b/multimedia/emby-server-devel/Makefile @@ -0,0 +1,134 @@ +PORTNAME= emby-server +DISTVERSION= 4.7.0.23 +CATEGORIES= multimedia +MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ \ + https://mediabrowser.github.io/embytools/ +PKGNAMESUFFIX= -devel +DISTNAME= embyserver-netframework_${PORTVERSION} +DISTFILES= ${DISTNAME}.zip \ + ffdetect-${FFVERSION}-x64_freebsd13.tar.xz \ + ffmpeg-${FFVERSION}.tar.gz \ + license.docx +DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} +EXTRACT_ONLY= ${DISTNAME}.zip \ + ffdetect-${FFVERSION}-x64_freebsd13.tar.xz \ + ffmpeg-${FFVERSION}.tar.gz + +MAINTAINER= driesm@FreeBSD.org +COMMENT= Media server to organize, play & stream audio/video to various devices + +LICENSE= UNKNOWN +LICENSE_NAME= custom +LICENSE_FILE= ${DISTDIR}/${DIST_SUBDIR}/license.docx +LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept + +ONLY_FOR_ARCHS= amd64 + +BUILD_DEPENDS= nasm:devel/nasm +LIB_DEPENDS= libaribb24.so:multimedia/aribb24 \ + libass.so:multimedia/libass \ + libchromaprint.so:audio/chromaprint \ + libdav1d.so:multimedia/dav1d \ + libdrm.so:graphics/libdrm \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libfribidi.so:converters/fribidi \ + libgnutls.so:security/gnutls \ + libmfx.so:multimedia/intel-media-sdk \ + libogg.so:audio/libogg \ + libopus.so:audio/opus \ + libpng.so:graphics/png \ + libraw.so:graphics/libraw \ + libtesseract.so:graphics/tesseract \ + libtheora.so:multimedia/libtheora \ + libva.so:multimedia/libva \ + libvorbis.so:audio/libvorbis \ + libvpx.so:multimedia/libvpx \ + libwebp.so:graphics/webp \ + libx264.so:multimedia/libx264 \ + libx265.so:multimedia/x265 \ + libzvbi.so:devel/libzvbi +RUN_DEPENDS= mono6.8>0:lang/mono6.8 + +USES= compiler:c11 gmake iconv localbase:ldflags pkgconfig sqlite +USE_RC_SUBR= ${PORTNAME} + +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --cc="${CC}" \ + --disable-alsa \ + --disable-doc \ + --disable-ffplay \ + --disable-libxcb \ + --disable-outdev=xv \ + --disable-sdl2 \ + --disable-shared \ + --disable-sndio \ + --disable-v4l2-m2m \ + --disable-vdpau \ + --disable-xlib \ + --enable-chromaprint \ + --enable-fontconfig \ + --enable-gnutls \ + --enable-gpl \ + --enable-iconv \ + --enable-libaribb24 \ + --enable-libass \ + --enable-libdav1d \ + --enable-libdrm \ + --enable-libfreetype \ + --enable-libfribidi \ + --enable-libmfx \ + --enable-libopus \ + --enable-libtesseract \ + --enable-libtheora \ + --enable-libvorbis \ + --enable-libvpx \ + --enable-libwebp \ + --enable-libx264 \ + --enable-libx265 \ + --enable-libzvbi \ + --enable-optimizations \ + --enable-static \ + --enable-vaapi \ + --enable-version3 + +MAKE_ENV= V=1 + +CONFLICTS_INSTALL= emby-server + +NOPRECIOUSMAKEVARS= yes +SUB_FILES= ImageMagickSharp.dll.config \ + SQLitePCLRaw.provider.sqlite3.dll.config +SUB_LIST= GROUP=${GROUPS} \ + PORTNAME=${PORTNAME} \ + RC_NAME=emby_server \ + USER=${USERS} + +WRKSRC= ${WRKDIR}/ffmpeg-${FFVERSION}_public + +USERS= emby +GROUPS= emby + +OPTIONS_DEFINE= LAME X11 +OPTIONS_DEFAULT= LAME X11 + +LAME_LIB_DEPENDS= libmp3lame.so:audio/lame +LAME_CONFIGURE_ENABLE= libmp3lame + +X11_USES= xorg magick:6 +X11_USES_OFF= magick:6,nox11 +X11_USE= xorg=x11 + +FFVERSION= 2021_02_27 + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server/system + (${INSTALL_DATA} ${WRKDIR}/ImageMagickSharp.dll.config ${STAGEDIR}${PREFIX}/lib/emby-server/system) + (${INSTALL_DATA} ${WRKDIR}/SQLitePCLRaw.provider.sqlite3.dll.config ${STAGEDIR}${PREFIX}/lib/emby-server/system) + (cd ${WRKDIR}/system && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/system) + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server/bin + (${INSTALL_PROGRAM} ${WRKDIR}/bin/ffdetect ${STAGEDIR}${PREFIX}/lib/emby-server/bin) + (${INSTALL_PROGRAM} ${WRKSRC}/ffmpeg ${STAGEDIR}${PREFIX}/lib/emby-server/bin) + (${INSTALL_PROGRAM} ${WRKSRC}/ffprobe ${STAGEDIR}${PREFIX}/lib/emby-server/bin) + +.include diff --git a/multimedia/emby-server-devel/distinfo b/multimedia/emby-server-devel/distinfo new file mode 100644 index 000000000000..35aa599e23f6 --- /dev/null +++ b/multimedia/emby-server-devel/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1644957787 +SHA256 (emby-server-devel/embyserver-netframework_4.7.0.23.zip) = eb7d82af53b042e793a26f32ba4f29a63d6868b0a990627fcecc907513c70ca2 +SIZE (emby-server-devel/embyserver-netframework_4.7.0.23.zip) = 48570333 +SHA256 (emby-server-devel/ffdetect-2021_02_27-x64_freebsd13.tar.xz) = 883e02378da5f111931e36226fe85bcf19deeaaf4ede446e267081838e936ac7 +SIZE (emby-server-devel/ffdetect-2021_02_27-x64_freebsd13.tar.xz) = 75244 +SHA256 (emby-server-devel/ffmpeg-2021_02_27.tar.gz) = dd587ddbde4c967695919d7f85b0f28e6d7262f55171f3e8052eef2f4a7f585c +SIZE (emby-server-devel/ffmpeg-2021_02_27.tar.gz) = 13236851 +SHA256 (emby-server-devel/license.docx) = a6d7ea65dcb06392479a85e1a10a7aeb872d803da6f784f6935fcd4ee63008c6 +SIZE (emby-server-devel/license.docx) = 18373 diff --git a/multimedia/emby-server-devel/files/ImageMagickSharp.dll.config.in b/multimedia/emby-server-devel/files/ImageMagickSharp.dll.config.in new file mode 100644 index 000000000000..1c89d61bd056 --- /dev/null +++ b/multimedia/emby-server-devel/files/ImageMagickSharp.dll.config.in @@ -0,0 +1,3 @@ + + + diff --git a/multimedia/emby-server-devel/files/SQLitePCLRaw.provider.sqlite3.dll.config.in b/multimedia/emby-server-devel/files/SQLitePCLRaw.provider.sqlite3.dll.config.in new file mode 100644 index 000000000000..25552988c298 --- /dev/null +++ b/multimedia/emby-server-devel/files/SQLitePCLRaw.provider.sqlite3.dll.config.in @@ -0,0 +1,3 @@ + + + diff --git a/multimedia/emby-server-devel/files/emby-server.in b/multimedia/emby-server-devel/files/emby-server.in new file mode 100644 index 000000000000..1c35ab072390 --- /dev/null +++ b/multimedia/emby-server-devel/files/emby-server.in @@ -0,0 +1,69 @@ +#!/bin/sh + +# PROVIDE: %%PORTNAME%% +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# 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. +# 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%% +# %%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%% +# %%RC_NAME%%_data_dir: Directory where %%PORTNAME%% configuration +# data is stored. +# Default: /var/db/%%PORTNAME%% +# %%RC_NAME%%_ffdetect: Path of the ffdetect binary. +# Default: %%PREFIX%%/lib/emby-server/bin/ffdetect +# %%RC_NAME%%_ffmpeg: Path of the ffmpeg binary. +# Default: %%PREFIX%%/lib/emby-server/bin/ffmpeg +# %%RC_NAME%%_ffprobe: Path of the ffprobe binary. +# Default: %%PREFIX%%/lib/emby-server/bin/ffprobe +# %%RC_NAME%%_pid: Path of the pid file. +# Default: /var/run/%%PORTNAME%%.pid + +. /etc/rc.subr +name=%%RC_NAME%% +rcvar=${name}_enable +load_rc_config ${name} + +: ${%%RC_NAME%%_enable:="no"} +: ${%%RC_NAME%%_user:="%%USER%%"} +: ${%%RC_NAME%%_group:="%%GROUP%%"} +: ${%%RC_NAME%%_data_dir:="/var/db/%%PORTNAME%%"} +: ${%%RC_NAME%%_ffdetect:="%%PREFIX%%/lib/emby-server/bin/ffdetect"} +: ${%%RC_NAME%%_ffmpeg:="%%PREFIX%%/lib/emby-server/bin/ffmpeg"} +: ${%%RC_NAME%%_ffprobe:="%%PREFIX%%/lib/emby-server/bin/ffprobe"} +: ${%%RC_NAME%%_pid:="/var/run/%%PORTNAME%%.pid"} + +pidfile="${%%RC_NAME%%_pid}" +procname="%%LOCALBASE%%/bin/mono" +command="/usr/sbin/daemon" +command_args="-f -p ${%%RC_NAME%%_pid} ${procname} %%PREFIX%%/lib/emby-server/system/EmbyServer.exe \ + -os freebsd \ + -ffdetect ${%%RC_NAME%%_ffdetect} \ + -ffmpeg ${%%RC_NAME%%_ffmpeg} \ + -ffprobe ${%%RC_NAME%%_ffprobe} \ + -programdata ${%%RC_NAME%%_data_dir}" + +start_precmd=%%RC_NAME%%_precmd +%%RC_NAME%%_precmd() +{ + [ -f ${%%RC_NAME%%_pid} ] || install -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} -- /dev/null ${%%RC_NAME%%_pid} + [ -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 ${%%RC_NAME%%_pid} +} + +run_rc_command "$1" diff --git a/multimedia/emby-server-devel/pkg-deinstall b/multimedia/emby-server-devel/pkg-deinstall new file mode 100644 index 000000000000..89c613d6caac --- /dev/null +++ b/multimedia/emby-server-devel/pkg-deinstall @@ -0,0 +1,10 @@ +#!/bin/sh + +case $2 in + DEINSTALL) + echo "==> If you are uninstalling Emby Server permanently," + echo " and you do *NOT* want to retain the database, logs" + echo " configuration and media metadata, you should" + echo " manually delete directory /var/db/emby-server" + ;; +esac diff --git a/multimedia/emby-server-devel/pkg-descr b/multimedia/emby-server-devel/pkg-descr new file mode 100644 index 000000000000..5fd3172f2217 --- /dev/null +++ b/multimedia/emby-server-devel/pkg-descr @@ -0,0 +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 .NET Core. + +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/ diff --git a/multimedia/emby-server-devel/pkg-message b/multimedia/emby-server-devel/pkg-message new file mode 100644 index 000000000000..bc5db49c7090 --- /dev/null +++ b/multimedia/emby-server-devel/pkg-message @@ -0,0 +1,14 @@ +[ +{ type: install + message: <