On 2/10/23 05:58, kasak wrote:
> Hello misc!
>
> If somebody interested, i've successfully launched UMS on OpenBSD 7.2.
>
Wooo, Great work!
> Here it is:
>
>
> pkg_add mediainfo mplayer ffmpeg jdk%17
>
> useradd -L daemon -s /sbin/nologin -d /var/ums -m -s /var/empty _ums
>
> ftp
> https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/13.2.0/UMS-13.2.0-x86_64.tgz
>
> doas tar -xzvf UMS-13.2.0-x86_64.tgz -C /usr/local -s /-13.2.0//
>
> after that, create rc file for headless mode:
>
> /etc/rc.d/ums:
>
> -------------
>
> #!/bin/ksh
>
> JAVA_HOME="/usr/local/jdk-17"
> JAVA="$JAVA_HOME/bin/java"
> UMS_MAX_MEMORY=1280M
> PMS_JARS="update.jar:ums.jar"
> PMS_HOME=/usr/local/ums
>
> daemon="$JAVA -Xmx$UMS_MAX_MEMORY -Xss2048k -Dfile.encoding=UTF-8
> -Djava.net.preferIPv4Stack=true -Djna.nosys=true -classpath $PMS_JARS
> net.pms.PMS console"
> daemon_user="_ums"
> daemon_execdir="$PMS_HOME"
>
> . /etc/rc.d/rc.subr
>
> rc_bg="YES"
> rc_reload="NO"
> rc_cmd $1
>
> -------------
>
>
> It seems working just fine.
>
> Do we need a port for it? I wanted to create a port, but it is pretty
> difficult to me. Maybe if it is needed, I should dig into it?
>
Ports are nice to have, then it is accessible to lot more people.

Here are two similar Java ports which you can use to create a port for
UMS -
https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/jitsi/videobridge/ 
and https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/jitsi/jicofo/

Looking forward to the port,
Aisha

Reply via email to