diff --git a/net/serviio/Makefile b/net/serviio/Makefile index 832212a9595e..3c6706ed7b24 100644 --- a/net/serviio/Makefile +++ b/net/serviio/Makefile @@ -1,57 +1,57 @@ PORTNAME= serviio -PORTVERSION= 2.3 -PORTREVISION= 2 +PORTVERSION= 2.4 +PORTREVISION= 0 CATEGORIES= net multimedia java www MASTER_SITES= https://download.serviio.org/releases/ EXTRACT_SUFX= -linux.tar.gz MAINTAINER= netchild@FreeBSD.org COMMENT= Transcoding DLNA-server implemented in Java WWW= https://www.serviio.org/ # Converted from RESTRICTED LICENSE= serviio LICENSE_NAME= serviio LICENSE_TEXT= License does not allow selling LICENSE_PERMS= auto-accept RUN_DEPENDS= ffmpeg:multimedia/ffmpeg NO_BUILD= yes USE_JAVA= yes JAVA_VERSION= 21 USES= dos2unix DOS2UNIX_GLOB= derby.properties PKGMESSAGE= ${WRKSRC}/pkg-message SUB_FILES+= pkg-message serviiod USE_RC_SUBR= serviio SUB_LIST+= USER=${USERS} EXTRACT_AFTER_ARGS=--exclude junit.jar \ --exclude org.restlet.ext.net.jar USERS= dlna GROUPS= dlna do-install: ${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/plugins ${INSTALL_DATA} ${WRKSRC}/lib/*.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} .for f in application-profiles profiles log4j2 ${INSTALL_DATA} ${WRKSRC}/config/$f.xml \ ${STAGEDIR}${ETCDIR}/$f.xml.sample .endfor ${INSTALL_DATA} ${WRKSRC}/config/serviio.jks \ ${STAGEDIR}${ETCDIR}/serviio.jks.sample ${INSTALL_DATA} ${FILESDIR}/console-log4j.properties \ ${STAGEDIR}${ETCDIR}/console-log4j.properties.sample ${INSTALL_SCRIPT} ${WRKDIR}/serviiod ${STAGEDIR}${PREFIX}/sbin # to be used with a non-standard PREFIX for just this port # e.g. PREFIX=/porttest gen-plist: ${FIND} ${STAGEDIR}${PREFIX}/ -type f | ${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; s:share/java/classes:%%JAVAJARDIR%%:g ; s:etc/serviio:@sample %%ETCDIR%%:g" | ${GREP} -Ev '(etc/rc.d|licenses)' | ${SORT} >${PLIST}.new # ${FIND} ${STAGEDIR}${PREFIX}/ -type d | ${SED} -e "s:${STAGEDIR}${PREFIX}/:@dirrm :g ; s:etc/serviio:%%ETCDIR%%:g ; s:share/java/classes:%%JAVAJARDIR%%:g" | ${SORT} -r >>${PLIST}.new .include diff --git a/net/serviio/distinfo b/net/serviio/distinfo index aaa9a20dce61..124a902a799c 100644 --- a/net/serviio/distinfo +++ b/net/serviio/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1666604910 -SHA256 (serviio-2.3-linux.tar.gz) = 9e6dd13720b8a269c6723eced7870b2486674ff5c6358fdde6a11c168c3ff627 -SIZE (serviio-2.3-linux.tar.gz) = 28885139 +TIMESTAMP = 1717739631 +SHA256 (serviio-2.4-linux.tar.gz) = b2c8b67ca6c0322cebe5e2c032783e1b6e6e8b7bfdf3308d5b3320eee2e019ab +SIZE (serviio-2.4-linux.tar.gz) = 28887039 diff --git a/net/serviio/files/serviio.in b/net/serviio/files/serviio.in index 1a31e5054982..02341dc37229 100644 --- a/net/serviio/files/serviio.in +++ b/net/serviio/files/serviio.in @@ -1,46 +1,47 @@ #!/bin/sh # PROVIDE: serviio # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf[.local] to enable serviio: # # serviio_enable="YES" . /etc/rc.subr name=serviio rcvar=serviio_enable command=%%PREFIX%%/sbin/serviiod load_rc_config $name : ${serviio_user="dlna"} : ${serviio_heap="512M"} : ${serviio_stack="20M"} +: ${serviio_svcj_options="net_basic"} if [ -n "${serviio_lang}" ]; then export LANG=${serviio_lang} fi export SERVIIO_MEM="-Xmx${serviio_heap} -Xms${serviio_stack}" _dirs="/var/db/serviio /var/db/serviio/home /var/log/serviio" start_precmd="mkdir -p $_dirs; chown $serviio_user $_dirs" command_args="$serviio_args &" stop_cmd="$command -stop" status_cmd=${name}_status serviio_status() { serviio_pid=$(ps -wwwaU ${serviio_user} | awk '/java.*org.serviio.MediaServer/ {print $1}') if [ -n "${serviio_pid}" ]; then echo "${name} is running as pid ${serviio_pid}" else echo "${name} is not running" return 1 fi } run_rc_command $1