diff --git a/multimedia/mediamtx/Makefile b/multimedia/mediamtx/Makefile index 7fcbf35a5b44..8d7caebfaacf 100644 --- a/multimedia/mediamtx/Makefile +++ b/multimedia/mediamtx/Makefile @@ -1,37 +1,36 @@ PORTNAME= mediamtx DISTVERSIONPREFIX= v DISTVERSION= 1.18.1 PORTREVISION= 1 CATEGORIES= multimedia net MASTER_SITES+= https://github.com/video-dev/hls.js/releases/download/v1.6.16/:hlsjs DISTFILES+= release.zip:hlsjs MAINTAINER= diizzy@FreeBSD.org COMMENT= Ready-to-use RTSP / RTMP / LL-HLS / WebRTC server and proxy that allows to read, publish and proxy video and audio streams WWW= https://github.com/bluenviron/mediamtx LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:1.26+,modules GO_MODULE= github.com/bluenviron/mediamtx USE_RC_SUBR= mediamtx USERS= mediamtx GROUPS= mediamtx -SUB_FILES= pkg-message SUB_LIST= USER=${USERS} GROUP=${GROUPS} post-extract: ${MV} ${WRKDIR}/dist/hls.min.js ${WRKSRC}/internal/servers/hls ${RM} -r ${WRKSRC}/internal/staticsources/rpicamera pre-configure: ${ECHO} ${DISTVERSIONFULL} > ${WRKSRC}/internal/core/VERSION post-install: ${INSTALL_DATA} ${WRKSRC}/mediamtx.yml ${STAGEDIR}${PREFIX}/etc/mediamtx.yml.sample .include diff --git a/multimedia/mediamtx/files/mediamtx.in b/multimedia/mediamtx/files/mediamtx.in index 5888592ca22e..26333479f526 100644 --- a/multimedia/mediamtx/files/mediamtx.in +++ b/multimedia/mediamtx/files/mediamtx.in @@ -1,49 +1,49 @@ #!/bin/sh # PROVIDE: mediamtx # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable mediamtx: # mediamtx_enable (bool): Set to "NO" by default. # Set it to "YES" to enable mediamtx. # mediamtx_conf_dir (str): Directory where ${name} configuration -# data is stored. +# file is stored. . /etc/rc.subr name="mediamtx" rcvar=mediamtx_enable load_rc_config ${name} : ${mediamtx_enable:="NO"} : ${mediamtx_user:="%%USER%%"} : ${mediamtx_group:="%%GROUP%%"} : ${mediamtx_conf_dir="%%PREFIX%%/etc"} start_precmd=mediamtx_precmd stop_postcmd=mediamtx_stop_postcmd procname="%%PREFIX%%/bin/${name}" pidfile="/var/run/mediamtx/mediamtx.pid" required_files="${mediamtx_conf_dir}/mediamtx.yml" command="/usr/sbin/daemon" command_args="-f -t ${name} -p ${pidfile} ${procname} ${required_files}" mediamtx_precmd() { local rundir=${pidfile%/*} if [ ! -d $rundir ] ; then install -d -m 0755 -o %%USER%% -g %%GROUP%% $rundir fi } mediamtx_stop_postcmd() { rm -f "$rundir" } run_rc_command "$1" diff --git a/multimedia/mediamtx/files/pkg-message.in b/multimedia/mediamtx/pkg-message similarity index 100% rename from multimedia/mediamtx/files/pkg-message.in rename to multimedia/mediamtx/pkg-message