Package Details: serviio 2.0-1

Git Clone URL: https://aur.archlinux.org/serviio.git (read-only)
Package Base: serviio
Description: Free DLNA media server
Upstream URL: http://www.serviio.org/
Licenses: custom
Submitter: cebru
Maintainer: lesebas
Last Packager: lesebas
Votes: 60
Popularity: 0.007558
First Submitted: 2011-04-09 16:25
Last Updated: 2019-05-28 19:50

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

mortzu commented on 2015-02-25 09:53

Please take over

lesebas commented on 2015-02-12 21:40

@mortzu, please update.

lesebas commented on 2015-02-12 21:39

Hello, Here is the PKGBUILD for version 1.5 :

pkgname=serviio
pkgver=1.5
pkgrel=1
pkgdesc="Free DLNA media server"
arch=('any')
url="http://www.serviio.org/"
license=('custom')
depends=('jre8-openjdk-headless' 'ffmpeg' 'gksu')
source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz
$pkgname.sh
$pkgname-console.sh
$pkgname.service
$pkgname.desktop
$pkgname.png
$pkgname.install)
md5sums=('e4c3173b3c0da8fea18017663a5be1a2'
'55e6b7a770dda7bf687cc3195410ed6f'
'58101efb628633fa472684aafaabc4c5'
'e958d9812448f97fe325dfffe8b44620'
'676402c9e8688d185cebb7a2421224ed'
'd41e3e757e412dfcd3036d9e19b81450'
'0b89d6c683305ef4473fab4c6688c7ab')

package() {
cd "$pkgname-$pkgver"

# define variable for Serviio home directory
SERVIIO_HOME=$pkgdir/usr/share/java/$pkgname

# create the folders needed in the main directory
install -dm755 ${SERVIIO_HOME}/{config,lib,library,plugins}

# place the serviio scripts in the /usr/bin folder
install -Dm755 ${srcdir}/$pkgname.sh $pkgdir/usr/bin/$pkgname
install -Dm755 ${srcdir}/$pkgname-console.sh $pkgdir/usr/bin/$pkgname-console

# copy xml config files to the config folder
install -m644 config/*.xml ${SERVIIO_HOME}/config

# copy all jar files to the lib folder
install -m644 lib/*.jar ${SERVIIO_HOME}/lib

# copy derby.properties to library folder
install -m644 library/derby.properties ${SERVIIO_HOME}/library

# copy plugins-readme.txt to plugins folder
install -m644 plugins/plugins-readme.txt ${SERVIIO_HOME}/plugins

# create the log folder in /var/log
install -dm755 $pkgdir/var/log/$pkgname

# create a symlink that puts all log files in /var/log
ln -s /var/log/$pkgname ${SERVIIO_HOME}/log

# supply the license file
install -Dm644 LICENCE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE

# install systemd-service
install -Dm644 "${srcdir}/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"

#install the .desktop file
install -Dm644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"

#install the icon file
install -Dm644 "${srcdir}/$pkgname.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"


}

I've modify the 2 script to avoid any problem with version of java.

serviio.sh :

#!/bin/sh

if [ $UID -eq 0 ]
then
if [[ -f /etc/profile.d/jdk.sh ]]; then
. /etc/profile.d/jdk.sh
fi
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
SERVIIO_HOME="/usr/share/java/serviio"
CP="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config"
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME"

java -Xmx384M $JAVA_OPTS -classpath $CP org.serviio.MediaServer "$@"
else
echo "Must be run as root."
fi


serviio-console.sh :

#!/bin/sh

if [ $UID -eq 0 ]
then
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
SERVIIO_CONSOLE_HOME="/usr/share/java/serviio"
CP="$SERVIIO_CONSOLE_HOME/lib/*:$SERVIIO_CONSOLE_HOME/config"
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"

java -Xmx384M $JAVA_OPTS -classpath $CP org.serviio.console.ServiioConsole "$@"
else
echo "Must be run as root."
fi

You can download the whole archive here :
https://infotomb.com/5o5s6.gz

lesebas commented on 2015-02-12 21:38

Hello, Here is the PKGBUILD for version 1.5 :

pkgname=serviio
pkgver=1.5
pkgrel=1
pkgdesc="Free DLNA media server"
arch=('any')
url="http://www.serviio.org/"
license=('custom')
depends=('jre8-openjdk-headless' 'ffmpeg' 'gksu')
source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz
$pkgname.sh
$pkgname-console.sh
$pkgname.service
$pkgname.desktop
$pkgname.png
$pkgname.install)
md5sums=('e4c3173b3c0da8fea18017663a5be1a2'
'55e6b7a770dda7bf687cc3195410ed6f'
'58101efb628633fa472684aafaabc4c5'
'e958d9812448f97fe325dfffe8b44620'
'676402c9e8688d185cebb7a2421224ed'
'd41e3e757e412dfcd3036d9e19b81450'
'0b89d6c683305ef4473fab4c6688c7ab')

package() {
cd "$pkgname-$pkgver"

# define variable for Serviio home directory
SERVIIO_HOME=$pkgdir/usr/share/java/$pkgname

# create the folders needed in the main directory
install -dm755 ${SERVIIO_HOME}/{config,lib,library,plugins}

# place the serviio scripts in the /usr/bin folder
install -Dm755 ${srcdir}/$pkgname.sh $pkgdir/usr/bin/$pkgname
install -Dm755 ${srcdir}/$pkgname-console.sh $pkgdir/usr/bin/$pkgname-console

# copy xml config files to the config folder
install -m644 config/*.xml ${SERVIIO_HOME}/config

# copy all jar files to the lib folder
install -m644 lib/*.jar ${SERVIIO_HOME}/lib

# copy derby.properties to library folder
install -m644 library/derby.properties ${SERVIIO_HOME}/library

# copy plugins-readme.txt to plugins folder
install -m644 plugins/plugins-readme.txt ${SERVIIO_HOME}/plugins

# create the log folder in /var/log
install -dm755 $pkgdir/var/log/$pkgname

# create a symlink that puts all log files in /var/log
ln -s /var/log/$pkgname ${SERVIIO_HOME}/log

# supply the license file
install -Dm644 LICENCE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE

# install systemd-service
install -Dm644 "${srcdir}/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"

#install the .desktop file
install -Dm644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"

#install the icon file
install -Dm644 "${srcdir}/$pkgname.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"


}
I've modify the 2 script to avoid any problem with version of java.
serviio.sh :
#!/bin/sh

if [ $UID -eq 0 ]
then
if [[ -f /etc/profile.d/jdk.sh ]]; then
. /etc/profile.d/jdk.sh
fi
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
SERVIIO_HOME="/usr/share/java/serviio"
CP="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config"
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME"

java -Xmx384M $JAVA_OPTS -classpath $CP org.serviio.MediaServer "$@"
else
echo "Must be run as root."
fi
serviio-console.sh :

#!/bin/sh

if [ $UID -eq 0 ]
then
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
SERVIIO_CONSOLE_HOME="/usr/share/java/serviio"
CP="$SERVIIO_CONSOLE_HOME/lib/*:$SERVIIO_CONSOLE_HOME/config"
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"

java -Xmx384M $JAVA_OPTS -classpath $CP org.serviio.console.ServiioConsole "$@"
else
echo "Must be run as root."
fi

You can download the whole archive here :
https://infotomb.com/5o5s6.gz

@mortzu, please update.

dimitrije commented on 2015-02-03 22:44

Hi,

any chance of getting version 1.5?

Great work, thanks...

tarasis commented on 2014-10-05 00:08

Not yet. I am to try tomorrow.

lesebas commented on 2014-10-03 11:55

Did you try to recompil the package?

tarasis commented on 2014-10-02 21:20

Running this in a headless environment. However it isn't working. First problem running serviio-console:

# serviio-console
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-7-openjdk/jre/lib/amd64/headless/libmawt.so: libcups.so.2: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1653)
at java.awt.Toolkit.<clinit>(Toolkit.java:1682)
at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:608)
at org.serviio.ui.view.swing.SwingHelper.initSwing(SwingHelper.java:35)
at org.serviio.console.ServiioConsole.main(ServiioConsole.java:94)

That was solved by install libcups

However when I try to run serviio-console next time I get a different error: (doesn't matter if serviio is run first or not)

$ sudo serviio-console
Exception in thread "Thread-1" java.lang.NullPointerException
at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:324)

Any tips?

lesebas commented on 2014-09-16 17:14

Hello,

I've modify the PKGBUILD to include a shortcut to launch the console (with root prompt : it adds gksudo as depends). You can download the AUR package here :

https://infotomb.com/p7g4w

lesebas commented on 2014-09-16 06:46

Hello,

I've modify the PKGBUILD to include a shortcut to launch the console (with root prompt : it adds gksudo as depends). You can download the AUR package here :

https://wupload.eu/site/3178a36003c508b0e52297da813ddd39/serviio-1.4.1.2-2.src.tar.gz