diff --git a/multimedia/emby-server-devel/Makefile b/multimedia/emby-server-devel/Makefile index fee7c865f589..5fb6f8f2d0b1 100644 --- a/multimedia/emby-server-devel/Makefile +++ b/multimedia/emby-server-devel/Makefile @@ -1,14 +1,14 @@ DISTVERSION= 4.8.0.47 -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -devel DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} MAINTAINER= driesm@FreeBSD.org CONFLICTS_INSTALL= emby-server MASTERDIR= ${.CURDIR}/../emby-server DISTINFO_FILE= ${.CURDIR}/distinfo .include "${MASTERDIR}/Makefile" diff --git a/multimedia/emby-server/Makefile b/multimedia/emby-server/Makefile index f67d71697b19..af65e6559a27 100644 --- a/multimedia/emby-server/Makefile +++ b/multimedia/emby-server/Makefile @@ -1,147 +1,147 @@ PORTNAME= emby-server DISTVERSION?= 4.7.14.0 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= multimedia MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${DISTVERSION}/ \ https://mediabrowser.github.io/embytools/ DISTNAME= emby-server-freebsd13_${DISTVERSION}_amd64 DISTFILES= ${DISTNAME}.tar.xz \ ffdetect-${FFVERSION}-x64_freebsd13.tar.xz \ ffmpeg-${FFVERSION}.tar.gz \ license.docx DIST_SUBDIR?= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}.tar.xz \ 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 WWW= https://emby.media/ 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 \ ${LOCALBASE}/include/CL/opencl.h:devel/opencl 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 \ libmbedtls.so:security/mbedtls \ libmfx.so:multimedia/intel-media-sdk \ libOpenCL.so:devel/ocl-icd \ 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= icu>0:devel/icu \ libexif>0:graphics/libexif \ libheif>0:graphics/libheif \ libimagequant>0:graphics/libimagequant \ libinotify>0:devel/libinotify \ libjxl>0:graphics/libjxl \ libunwind>0:devel/libunwind \ openjpeg>0:graphics/openjpeg \ orc>0:devel/orc USES= compiler:c11 gmake iconv localbase:ldflags pkgconfig sqlite ssl:run 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-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-mbedtls \ --enable-opencl \ --enable-optimizations \ --enable-static \ --enable-vaapi \ --enable-version3 MAKE_ENV= V=1 CONFLICTS_INSTALL?= emby-server-devel NOPRECIOUSMAKEVARS= yes SUB_FILES= 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 OPTIONS_DEFAULT= LAME LAME_LIB_DEPENDS= libmp3lame.so:audio/lame LAME_CONFIGURE_ENABLE= libmp3lame FFVERSION= 2022_05_07 do-install: @${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) @${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server/lib (cd ${WRKDIR}/lib && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/lib/emby-server/lib) @${MKDIR} ${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 "! -name EmbyServer") (${INSTALL_PROGRAM} ${WRKDIR}/system/EmbyServer ${STAGEDIR}${PREFIX}/lib/emby-server/system) post-install: @${FIND} -s ${STAGEDIR}${PREFIX}/lib -not -type d | ${SORT} | ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} .include diff --git a/multimedia/emby-server/files/emby-server.in b/multimedia/emby-server/files/emby-server.in index d753175697b4..13bc85c4fed8 100644 --- a/multimedia/emby-server/files/emby-server.in +++ b/multimedia/emby-server/files/emby-server.in @@ -1,75 +1,75 @@ #!/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: Name of the pid file. # Default: %%PORTNAME%%.pid # %%RC_NAME%%_pid_dir: Path of the pid file. # Default: /var/run/emby-server . /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:="%%PORTNAME%%.pid"} : ${%%RC_NAME%%_pid_dir:="/var/run/emby-server"} pidfile="${%%RC_NAME%%_pid_dir}/${%%RC_NAME%%_pid}" command="/usr/sbin/daemon" command_args="-r -f -P ${pidfile} %%PREFIX%%/lib/emby-server/system/EmbyServer \ -os freebsd \ -ffdetect ${%%RC_NAME%%_ffdetect} \ -ffmpeg ${%%RC_NAME%%_ffmpeg} \ -ffprobe ${%%RC_NAME%%_ffprobe} \ -programdata ${%%RC_NAME%%_data_dir}" start_precmd=%%RC_NAME%%_start_precmd %%RC_NAME%%_start_precmd() { [ -d ${%%RC_NAME%%_pid_dir} ] || install -d -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} ${%%RC_NAME%%_pid_dir} [ -d ${%%RC_NAME%%_data_dir} ] || install -d -g ${%%RC_NAME%%_group} -o ${%%RC_NAME%%_user} ${%%RC_NAME%%_data_dir} # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 - ifconfig | grep -q inet6 + ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then export DOTNET_SYSTEM_NET_DISABLEIPV6=1 fi export LD_LIBRARY_PATH=%%PREFIX%%/lib/emby-server/lib:%%LOCALBASE%%/lib } run_rc_command "$1" diff --git a/multimedia/jellyfin/Makefile b/multimedia/jellyfin/Makefile index 4218a22cb614..c45b86232e3d 100644 --- a/multimedia/jellyfin/Makefile +++ b/multimedia/jellyfin/Makefile @@ -1,56 +1,56 @@ PORTNAME= jellyfin DISTVERSION= 10.8.10 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia MASTER_SITES= https://github.com/Thefrank/jellyfin-server-freebsd/releases/download/v${DISTVERSION}/ DISTFILES= jellyfin-combined_${DISTVERSION}_freebsd-${ARCH}.tar.gz \ libSkiaSharp.so EXTRACT_ONLY= jellyfin-combined_${DISTVERSION}_freebsd-${ARCH}.tar.gz MAINTAINER= michiel@vanbaak.eu COMMENT= Jellyfin Server Component with WebUI WWW= https://jellyfin.org/ LICENSE= BSD3CLAUSE GPLv2 LICENSE_COMB= multi ONLY_FOR_ARCHS= amd64 LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss \ ffmpeg>0:multimedia/ffmpeg \ icu>0:devel/icu \ krb5>0:security/krb5 \ libinotify>0:devel/libinotify \ libunwind>0:devel/libunwind \ mediainfo>0:multimedia/mediainfo USES= ssl:run sqlite:3 USE_RC_SUBR= jellyfin NO_BUILD= YES SUB_FILES= jellyfin pkg-message SUB_LIST= DATADIR=${LOCALBASE}/jellyfin \ GROUPS=${GROUPS} \ USERS=${USERS} NO_WRKSUBDIR= YES WRKSRC= ${WRKDIR}/jf USERS= jellyfin GROUPS= jellyfin .include do-install: cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}/${LOCALBASE}/jellyfin "! ( -type f -name *\.so -or -type f -name "jellyfin" )" cd ${WRKSRC} && ${COPYTREE_BIN} . ${STAGEDIR}/${LOCALBASE}/jellyfin " -type f -name "jellyfin" " ${INSTALL_DATA} ${DISTDIR}/libSkiaSharp.so ${STAGEDIR}/${LOCALBASE}/jellyfin && ${INSTALL_DATA} ${WRKSRC}/*.so ${STAGEDIR}/${LOCALBASE}/jellyfin #This can be done one of a number ways including: symlink, a .config override (using dllmap), or libmap. post-install: @${ECHO_CMD} "libe_sqlite3.so libsqlite3.so" \ >${STAGEDIR}${PREFIX}/etc/libmap.d/jellyfin.conf .include diff --git a/multimedia/jellyfin/files/jellyfin.in b/multimedia/jellyfin/files/jellyfin.in index 8cb52bc5cc60..1bc6b91cf0c7 100755 --- a/multimedia/jellyfin/files/jellyfin.in +++ b/multimedia/jellyfin/files/jellyfin.in @@ -1,72 +1,72 @@ #!/bin/sh # PROVIDE: jellyfin # REQUIRE: LOGIN network # KEYWORD: shutdown # # extraargs typically can remain unset # extraargs accepts as string any of: # --nowebclient Indicates that the web server should not host the web client. # -w, --webdir Path to the Jellyfin web UI resources. Defaults to ./jellyfin-web # -c, --configdir Path to use for configuration data (user settings and pictures). # -l, --logdir Path to use for writing log files. Defaults to $datadir/log # --ffmpeg Path to external FFmpeg executable to use. Defaults to PATH. # --published-server-url Jellyfin Server URL to publish via auto discover process # # # variable definitions # jellyfin_exec_dir Path to the actual jellyfin binary Defaults to %%DATADIR%% # jellyfin_data_dir Path to use for the data folder (database files, etc.) Defaults to /var/db/jellyfin # jellyfin_cache_dir Path to use for caching. Defaults to /var/cache/jellyfin # jellyfin_pid_dir Path to use for the pid file. Defaults to /var/run/jellyfin . /etc/rc.subr name=jellyfin rcvar=jellyfin_enable load_rc_config $name : ${jellyfin_enable:=NO} : ${jellyfin_user:="jellyfin"} : ${jellyfin_group:="jellyfin"} : ${jellyfin_extraargs:=""} : ${jellyfin_exec_dir:="%%DATADIR%%"} : ${jellyfin_data_dir:="/var/db/jellyfin"} : ${jellyfin_cache_dir:="/var/cache/jellyfin"} : ${jellyfin_pid_dir:="/var/run/jellyfin"} pidfile="${jellyfin_pid_dir}/${name}_daemon.pid" pidfile_child="${jellyfin_pid_dir}/${name}_child.pid" command="/usr/sbin/daemon" start_precmd=${name}_precmd jellyfin_precmd() { if [ ! -d ${jellyfin_exec_dir} ]; then install -d -o ${jellyfin_user} -g ${jellyfin_group} ${jellyfin_exec_dir} fi if [ ! -d ${jellyfin_data_dir} ]; then install -d -o ${jellyfin_user} -g ${jellyfin_group} ${jellyfin_data_dir} fi if [ ! -d ${jellyfin_cache_dir} ]; then install -d -o ${jellyfin_user} -g ${jellyfin_group} ${jellyfin_cache_dir} fi if [ ! -d ${jellyfin_pid_dir} ]; then install -d -o ${jellyfin_user} -g ${jellyfin_group} ${jellyfin_pid_dir} fi # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 - ifconfig | grep -q inet6 + ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then export DOTNET_SYSTEM_NET_DISABLEIPV6=1 fi rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${jellyfin_exec_dir}/jellyfin --datadir ${jellyfin_data_dir} --cachedir ${jellyfin_cache_dir} ${jellyfin_extraargs} >> /dev/null 2>&1 ${rc_flags}" } run_rc_command "$1" diff --git a/net-p2p/lidarr/Makefile b/net-p2p/lidarr/Makefile index 567b970bc5a5..d11a95c98121 100644 --- a/net-p2p/lidarr/Makefile +++ b/net-p2p/lidarr/Makefile @@ -1,56 +1,57 @@ PORTNAME= lidarr DISTVERSION= 1.3.5.3530 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= https://github.com/lidarr/Lidarr/releases/download/v${PORTVERSION}/ DISTNAME= Lidarr.master.${DISTVERSION}.freebsd-core-x64 MAINTAINER= michiel@vanbaak.eu COMMENT= Music collection manager for Usenet and BitTorrent users WWW= https://lidarr.audio LICENSE= GPLv3 # See https://github.com/radarr/radarr/issues/6668 for x86 support ONLY_FOR_ARCHS= amd64 RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss \ icu>0:devel/icu \ krb5>0:security/krb5 \ libiconv>0:converters/libiconv \ libinotify>0:devel/libinotify \ libunwind>0:devel/libunwind \ chromaprint>0:audio/chromaprint USES= ssl:run sqlite:3 USE_RC_SUBR= ${PORTNAME} NO_BUILD= YES SUB_FILES= ${PORTNAME} package_info pkg-message SUB_LIST= DATADIR=${DATADIR} \ GROUPS=${GROUPS} \ MAINTAINER=${MAINTAINER} \ PKGVERSION=${PKGVERSION} \ PORTNAME=${PORTNAME} \ USERS=${USERS} WRKSRC= ${WRKDIR}/Lidarr USERS= ${PORTNAME} GROUPS= ${PORTNAME} .include post-extract: ${RM} -rf ${WRKSRC}/Lidarr.Update do-install: ${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/ cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/ "! -name Lidarr" ${INSTALL_PROGRAM} ${WRKSRC}/Lidarr ${STAGEDIR}/${DATADIR}/bin/ post-install: ${INSTALL_DATA} ${WRKDIR}/package_info ${STAGEDIR}/${DATADIR}/ .include diff --git a/net-p2p/lidarr/files/lidarr.in b/net-p2p/lidarr/files/lidarr.in index db723160de4a..78f689ae38f4 100644 --- a/net-p2p/lidarr/files/lidarr.in +++ b/net-p2p/lidarr/files/lidarr.in @@ -1,54 +1,54 @@ #!/bin/sh # PROVIDE: %%PORTNAME%% # REQUIRE: LOGIN network # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf or use sysrc to enable %%PORTNAME%% # ${%%PORTNAME%%_enable="YES"} # Optionaly there are some other parameters # ${%%PORTNAME%%_user="%%USERS%%"} # ${%%PORTNAME%%_group="%%GROUPS%%"} # This stores %%PORTNAME%% data (e.g., databases, configs, logs) # ${%%PORTNAME%%_data_dir="%%PREFIX%%/%%PORTNAME%%"} # This stores the PID files that daemon will use # ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} . /etc/rc.subr name=%%PORTNAME%% rcvar=%%PORTNAME%%_enable load_rc_config $name : ${%%PORTNAME%%_enable:=NO} : ${%%PORTNAME%%_user:="%%USERS%%"} : ${%%PORTNAME%%_group:="%%GROUPS%%"} : ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"} : ${%%PORTNAME%%_data_dir:="%%PREFIX%%/%%PORTNAME%%"} : ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} pidfile="${%%PORTNAME%%_pid_dir}/${name}_daemon.pid" pidfile_child="${%%PORTNAME%%_pid_dir}/${name}_child.pid" command="/usr/sbin/daemon" start_precmd=${name}_precmd %%PORTNAME%%_precmd() { if [ ! -d ${%%PORTNAME%%_data_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_data_dir} fi if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir} fi # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 - ifconfig | grep -q inet6 + ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then export DOTNET_SYSTEM_NET_DISABLEIPV6=1 fi rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Lidarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}" } run_rc_command "$1" diff --git a/net-p2p/prowlarr/files/prowlarr.in b/net-p2p/prowlarr/files/prowlarr.in index 67077c63802a..48d10a09c855 100644 --- a/net-p2p/prowlarr/files/prowlarr.in +++ b/net-p2p/prowlarr/files/prowlarr.in @@ -1,55 +1,54 @@ #!/bin/sh # PROVIDE: %%PORTNAME%% # REQUIRE: LOGIN network # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf or use sysrc to enable %%PORTNAME%% # ${%%PORTNAME%%_enable="YES"} # Optionaly there are some other parameters # ${%%PORTNAME%%_user="%%USERS%%"} # ${%%PORTNAME%%_group="%%GROUPS%%"} # This stores %%PORTNAME%% data (e.g., databases, configs, logs) # ${%%PORTNAME%%_data_dir="%%PREFIX%%/%%PORTNAME%%"} # This stores the PID files that daemon will use # ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} . /etc/rc.subr name=%%PORTNAME%% rcvar=%%PORTNAME%%_enable load_rc_config $name : ${%%PORTNAME%%_enable:=NO} : ${%%PORTNAME%%_user:="%%USERS%%"} : ${%%PORTNAME%%_group:="%%GROUPS%%"} : ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"} : ${%%PORTNAME%%_data_dir:="%%PREFIX%%/%%PORTNAME%%"} : ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} pidfile="${%%PORTNAME%%_pid_dir}/${name}_daemon.pid" pidfile_child="${%%PORTNAME%%_pid_dir}/${name}_child.pid" command="/usr/sbin/daemon" start_precmd=${name}_precmd %%PORTNAME%%_precmd() { if [ ! -d ${%%PORTNAME%%_data_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_data_dir} fi if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir} fi # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 - # Later version by Keith Chiem through email ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then export DOTNET_SYSTEM_NET_DISABLEIPV6=1 fi rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Prowlarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}" } run_rc_command "$1" diff --git a/net-p2p/radarr/Makefile b/net-p2p/radarr/Makefile index 61e33777b354..4762766aeb6e 100644 --- a/net-p2p/radarr/Makefile +++ b/net-p2p/radarr/Makefile @@ -1,56 +1,57 @@ PORTNAME= radarr DISTVERSION= 4.7.5.7809 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= https://github.com/Radarr/Radarr/releases/download/v${PORTVERSION}/ DISTNAME= Radarr.master.${DISTVERSION}.freebsd-core-x64 MAINTAINER= michiel@vanbaak.eu COMMENT= Movie Library Manager for Usenet and BitTorrent users WWW= https://radarr.video LICENSE= GPLv3 # See https://github.com/Radarr/Radarr/issues/6668 for x86 support ONLY_FOR_ARCHS= amd64 RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss \ icu>0:devel/icu \ krb5>0:security/krb5 \ libiconv>0:converters/libiconv \ libinotify>0:devel/libinotify \ libunwind>0:devel/libunwind USES= ssl:run sqlite:3 USE_RC_SUBR= ${PORTNAME} NO_BUILD= YES SUB_FILES= ${PORTNAME} package_info pkg-message SUB_LIST= DATADIR=${DATADIR} \ GROUPS=${GROUPS} \ MAINTAINER=${MAINTAINER} \ PKGVERSION=${PKGVERSION} \ PORTNAME=${PORTNAME} \ USERS=${USERS} WRKSRC= ${WRKDIR}/Radarr USERS= ${PORTNAME} GROUPS= ${PORTNAME} .include post-extract: ${RM} -rf ${WRKSRC}/Radarr.Update do-install: ${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/ cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/ "! -name Radarr -and ! -name ffprobe" ${INSTALL_PROGRAM} ${WRKSRC}/Radarr ${STAGEDIR}/${DATADIR}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/ffprobe ${STAGEDIR}/${DATADIR}/bin/ post-install: ${INSTALL_DATA} ${WRKDIR}/package_info ${STAGEDIR}/${DATADIR}/ .include diff --git a/net-p2p/radarr/files/radarr.in b/net-p2p/radarr/files/radarr.in index 90be8f5ce9b0..ebde62bb3eba 100644 --- a/net-p2p/radarr/files/radarr.in +++ b/net-p2p/radarr/files/radarr.in @@ -1,54 +1,54 @@ #!/bin/sh # PROVIDE: %%PORTNAME%% # REQUIRE: LOGIN network # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf or use sysrc to enable %%PORTNAME%% # ${%%PORTNAME%%_enable="YES"} # Optionaly there are some other parameters # ${%%PORTNAME%%_user="%%USERS%%"} # ${%%PORTNAME%%_group="%%GROUPS%%"} # This stores %%PORTNAME%% data (e.g., databases, configs, logs) # ${%%PORTNAME%%_data_dir="%%PREFIX%%/%%PORTNAME%%"} # This stores the PID files that daemon will use # ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} . /etc/rc.subr name=%%PORTNAME%% rcvar=%%PORTNAME%%_enable load_rc_config $name : ${%%PORTNAME%%_enable:=NO} : ${%%PORTNAME%%_user:="%%USERS%%"} : ${%%PORTNAME%%_group:="%%GROUPS%%"} : ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"} : ${%%PORTNAME%%_data_dir:="%%PREFIX%%/%%PORTNAME%%"} : ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} pidfile="${%%PORTNAME%%_pid_dir}/${name}_daemon.pid" pidfile_child="${%%PORTNAME%%_pid_dir}/${name}_child.pid" command="/usr/sbin/daemon" start_precmd=${name}_precmd %%PORTNAME%%_precmd() { if [ ! -d ${%%PORTNAME%%_data_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_data_dir} fi if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir} fi # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 - ifconfig | grep -q inet6 + ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then export DOTNET_SYSTEM_NET_DISABLEIPV6=1 fi rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Radarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}" } run_rc_command "$1" diff --git a/net-p2p/readarr/files/readarr.in b/net-p2p/readarr/files/readarr.in index 75ec18a1dd3b..9cd4c2f77458 100644 --- a/net-p2p/readarr/files/readarr.in +++ b/net-p2p/readarr/files/readarr.in @@ -1,55 +1,54 @@ #!/bin/sh # PROVIDE: %%PORTNAME%% # REQUIRE: LOGIN network # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf or use sysrc to enable %%PORTNAME%% # ${%%PORTNAME%%_enable="YES"} # Optionaly there are some other parameters # ${%%PORTNAME%%_user="%%USERS%%"} # ${%%PORTNAME%%_group="%%GROUPS%%"} # This stores %%PORTNAME%% data (e.g., databases, configs, logs) # ${%%PORTNAME%%_data_dir="%%PREFIX%%/%%PORTNAME%%"} # This stores the PID files that daemon will use # ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} . /etc/rc.subr name=%%PORTNAME%% rcvar=%%PORTNAME%%_enable load_rc_config $name : ${%%PORTNAME%%_enable:=NO} : ${%%PORTNAME%%_user:="%%USERS%%"} : ${%%PORTNAME%%_group:="%%GROUPS%%"} : ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"} : ${%%PORTNAME%%_data_dir:="%%PREFIX%%/%%PORTNAME%%"} : ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} pidfile="${%%PORTNAME%%_pid_dir}/${name}_daemon.pid" pidfile_child="${%%PORTNAME%%_pid_dir}/${name}_child.pid" command="/usr/sbin/daemon" start_precmd=${name}_precmd %%PORTNAME%%_precmd() { if [ ! -d ${%%PORTNAME%%_data_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_data_dir} fi if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir} fi # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 - # Later version by Keith Chiem through email ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then export DOTNET_SYSTEM_NET_DISABLEIPV6=1 fi rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Readarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}" } run_rc_command "$1"