Initial commit
This commit is contained in:
commit
f398799c3e
61
Makefile
Normal file
61
Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
PORTNAME= mirotalk
|
||||
DISTVERSION= 1.5.20
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= https://git.michaelsmith.be/m/mirotalk-port/releases/download/initial/:node_modules
|
||||
DISTFILES= mirotalk-node-modules-${DISTVERSION}${EXTRACT_SUFX}:node_modules
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= shmitty@protonmail.com
|
||||
COMMENT= Simple, secure, fast and real time video conference web application
|
||||
WWW= https://github.com/miroslavpejic85/mirotalk
|
||||
|
||||
LICENSE= AGPLv3
|
||||
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
|
||||
EXTRACT_DEPENDS= node${NODEJS_VERSION}>0:www/node${NODEJS_VERSION} \
|
||||
npm${NODEJS_SUFFIX}>0:www/npm${NODEJS_SUFFIX}
|
||||
|
||||
USES= nodejs:22
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
SUB_FILES= mirotalk pkg-deinstall pkg-message
|
||||
SUB_LIST= MIROTALK_GROUP=${MIROTALK_GROUP} \
|
||||
MIROTALK_HOME=${MIROTALK_HOME} \
|
||||
MIROTALK_USER=${MIROTALK_USER}
|
||||
|
||||
USERS= ${MIROTALK_USER}
|
||||
GROUPS= ${MIROTALK_GROUP}
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= miroslavpejic85
|
||||
GH_PROJECT= ${PORTNAME}
|
||||
GH_TAGNAME= 5985501768fb9de93bbb94233b8de2d9e13f4f2f
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
MIROTALK_GROUP?= mirotalk
|
||||
MIROTALK_USER?= mirotalk
|
||||
MIROTALK_HOME?= ${PREFIX}/mirotalk
|
||||
|
||||
PLIST_SUB+= MIROTALK_GROUP=${MIROTALK_GROUP} \
|
||||
MIROTALK_HOME=${MIROTALK_HOME} \
|
||||
MIROTALK_USER=${MIROTALK_USER}
|
||||
|
||||
post-extract:
|
||||
@${ECHO_MSG} "===> Installing node modules in ${WRKSRC}"
|
||||
@${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/mirotalk-node-modules-${DISTVERSION}${EXTRACT_SUFX} -C ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${MIROTALK_HOME}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${MIROTALK_HOME}
|
||||
|
||||
### targets for port maintainer(s)
|
||||
make-node-modules-archive: extract
|
||||
@${ECHO_MSG} "===> Fetching and installing node modules in ${WRKSRC}"
|
||||
@cd ${WRKSRC} && \
|
||||
${SETENV} ${MAKE_ENV} npm install --ignore-scripts --no-progress --no-audit --no-fund && \
|
||||
${SETENV} ${MAKE_ENV} npm install @ngrok/ngrok-freebsd-x64 --ignore-scripts --no-progress --no-audit --no-fund && \
|
||||
${TAR} -czf ${WRKDIR}/mirotalk-node-modules${EXTRACT_SUFX} node_modules
|
||||
|
||||
.include <bsd.port.mk>
|
||||
5
distinfo
Normal file
5
distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1751393141
|
||||
SHA256 (mirotalk/mirotalk-node-modules-1.5.20.tar.gz) = 5427cf9bf7de000b02dd6d92ffb308777994d1798b5ca4fd91ec9d896c5bdf19
|
||||
SIZE (mirotalk/mirotalk-node-modules-1.5.20.tar.gz) = 28956600
|
||||
SHA256 (mirotalk/miroslavpejic85-mirotalk-1.5.20-5985501768fb9de93bbb94233b8de2d9e13f4f2f_GH0.tar.gz) = 702b2ccff6aebfdc0b21b6f4e206a7a96aad88d67fd9e503036d400a97dd9138
|
||||
SIZE (mirotalk/miroslavpejic85-mirotalk-1.5.20-5985501768fb9de93bbb94233b8de2d9e13f4f2f_GH0.tar.gz) = 20813434
|
||||
61
files/mirotalk.in
Normal file
61
files/mirotalk.in
Normal file
@ -0,0 +1,61 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: mirotalk
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# FreeBSD rc.d script for mirotalk
|
||||
#
|
||||
|
||||
# The mirotalk service has the following rc.conf options:
|
||||
#
|
||||
# mirotalk_enable (bool): Set to YES to enable mirotalk
|
||||
# Default: NO
|
||||
# mirotalk_user (str): The user to run mirotalk as
|
||||
# Default: mirotalk
|
||||
# mirotalk_group (str): The group to run mirotalk as
|
||||
# Default: mirotalk
|
||||
# mirotalk_chdir (str): The directory where mirotalk is installed
|
||||
# Default: %%PREFIX%%/mirotalk
|
||||
# mirotalk_datadir (str): The directory where mirotalk's data is stored
|
||||
# Default: /var/db/mirotalk
|
||||
# mirotalk_restart (bool): Set to YES if mirotalk should be automatically
|
||||
# restarted after it crashes.
|
||||
# Default: NO
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=mirotalk
|
||||
desc="mirotalk service"
|
||||
rcvar=mirotalk_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${mirotalk_enable:=NO}
|
||||
: ${mirotalk_group:=%%MIROTALK_GROUP%%}
|
||||
: ${mirotalk_datadir:=%%MIROTALK_DATADIR%%}
|
||||
: ${mirotalk_pidfile=/var/run/mirotalk/mirotalk.pid}
|
||||
: ${mirotalk_restart=NO}
|
||||
: ${mirotalk_user:=%%MIROTALK_USER%%}
|
||||
: ${mirotalk_chdir=%%MIROTALK_HOME%%}
|
||||
|
||||
# If mirotalk_restart is YES, then restart mirotalk when it crashes, otherwise
|
||||
# daemon(8) will exit.
|
||||
if checkyesno mirotalk_restart; then
|
||||
_restartargs="-r"
|
||||
else
|
||||
_restartargs=""
|
||||
fi
|
||||
|
||||
pidfile=${mirotalk_pidfile}
|
||||
|
||||
command=/usr/sbin/daemon
|
||||
command_args="-f -H \
|
||||
-P ${pidfile} -t ${name} -T ${name} \
|
||||
${_restartargs} \
|
||||
%%LOCALBASE%%/bin/node app/src/server.js"
|
||||
required_files="${mirotalk_chdir}/app/src/config.js"
|
||||
|
||||
start_precmd="[ -d ${pidfile%/*} ] || install -d -o ${mirotalk_user} -g ${mirotalk_group} ${pidfile%/*}"
|
||||
|
||||
run_rc_command "$1"
|
||||
9
files/pkg-deinstall.in
Normal file
9
files/pkg-deinstall.in
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIR=%%MIROTALK_HOME%%
|
||||
|
||||
if [ "$2" = "POST-DEINSTALL" ]; then
|
||||
if [ -e ${DIR} ]; then
|
||||
echo "==> You should check and manually remove the \"${DIR}\" directory."
|
||||
fi
|
||||
fi
|
||||
10
files/pkg-message.in
Normal file
10
files/pkg-message.in
Normal file
@ -0,0 +1,10 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
MiroTalk has been installed.
|
||||
|
||||
Configure MiroTalk by copying %%MIROTALK_HOME%%/app/src/config.template.js
|
||||
to %%MIROTALK_HOME%%/app/src/config.js and make changes if necessary.
|
||||
EOM
|
||||
}
|
||||
]
|
||||
3
pkg-descr
Normal file
3
pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
MiroTalk is a web application that enables simple, secure, fast and real time
|
||||
video calls, chat and screen sharing. It runs in the browser, on mobile or
|
||||
desktop.
|
||||
Loading…
x
Reference in New Issue
Block a user