mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
net/serviio: update to 2.3
- uodate to 2.3 - add possibility to modify heap and stack size
This commit is contained in:
parent
d5f75f6e7b
commit
d5fc145b80
@ -1,5 +1,5 @@
|
||||
PORTNAME= serviio
|
||||
PORTVERSION= 2.2.1
|
||||
PORTVERSION= 2.3
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= net multimedia java www
|
||||
MASTER_SITES= https://download.serviio.org/releases/
|
||||
@ -50,8 +50,8 @@ do-install:
|
||||
|
||||
# to be used with a non-standard PREFIX for just this port
|
||||
# e.g. PREFIX=/porttest
|
||||
mkplist:
|
||||
${FIND} ${STAGEDIR}${PREFIX}/ -type f | ${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; s:share/java/classes:%%JAVAJARDIR%%:g ; s:etc/serviio:@sample %%ETCDIR%%:g" | ${GREP} -v etc/rc.d | ${SORT} >${PLIST}.new
|
||||
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 <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1639505046
|
||||
SHA256 (serviio-2.2.1-linux.tar.gz) = b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324
|
||||
SIZE (serviio-2.2.1-linux.tar.gz) = 28789070
|
||||
TIMESTAMP = 1666604910
|
||||
SHA256 (serviio-2.3-linux.tar.gz) = 9e6dd13720b8a269c6723eced7870b2486674ff5c6358fdde6a11c168c3ff627
|
||||
SIZE (serviio-2.3-linux.tar.gz) = 28885139
|
||||
|
@ -17,11 +17,15 @@ command=%%PREFIX%%/sbin/serviiod
|
||||
load_rc_config $name
|
||||
|
||||
: ${serviio_user="dlna"}
|
||||
: ${serviio_heap="512M"}
|
||||
: ${serviio_stack="20M"}
|
||||
|
||||
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 &"
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PATH=$PATH:%%PREFIX%%/bin
|
||||
HOME=/var/db/serviio/home
|
||||
: ${SERVIIO_MEM="-Xmx512M -Xms20M"}
|
||||
SERVIIO_HOME=%%JAVAJARDIR%%/serviio
|
||||
SERVIIO_CLASS_PATH="$SERVIIO_HOME/serviio.jar"
|
||||
# Setup the classpath
|
||||
@ -33,4 +34,4 @@ done
|
||||
|
||||
# Execute the JVM in the foreground
|
||||
export HOME PATH JAVA_VERSION
|
||||
exec java -Xmx512M -Xms20M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@" 2>&1 >/dev/null
|
||||
exec java ${SERVIIO_MEM} -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@" 2>&1 >/dev/null
|
||||
|
@ -36,7 +36,6 @@
|
||||
%%JAVAJARDIR%%/serviio/rome-modules.jar
|
||||
%%JAVAJARDIR%%/serviio/rome.jar
|
||||
%%JAVAJARDIR%%/serviio/saaj-impl.jar
|
||||
%%JAVAJARDIR%%/serviio/sbbi-upnp.jar
|
||||
%%JAVAJARDIR%%/serviio/serviio-mediabrowser-api.jar
|
||||
%%JAVAJARDIR%%/serviio/serviio-mediabrowser-web.jar
|
||||
%%JAVAJARDIR%%/serviio/serviio-web-console-api.jar
|
||||
@ -47,6 +46,7 @@
|
||||
%%JAVAJARDIR%%/serviio/stax-api.jar
|
||||
%%JAVAJARDIR%%/serviio/stax-ex.jar
|
||||
%%JAVAJARDIR%%/serviio/streamflyer-core.jar
|
||||
%%JAVAJARDIR%%/serviio/waifupnp.jar
|
||||
%%JAVAJARDIR%%/serviio/winp.jar
|
||||
%%JAVAJARDIR%%/serviio/xstream.jar
|
||||
@sample %%ETCDIR%%/application-profiles.xml.sample
|
||||
|
Loading…
Reference in New Issue
Block a user