From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- serviio | 1 - serviio/.SRCINFO | 21 ++++++++++++++++ serviio/PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++++++++++++++ serviio/serviio.desktop | 12 +++++++++ serviio/serviio.install | 15 +++++++++++ serviio/serviio.png | Bin 0 -> 1779 bytes serviio/serviio.service | 9 +++++++ serviio/serviio.sh | 18 ++++++++++++++ 8 files changed, 140 insertions(+), 1 deletion(-) delete mode 160000 serviio create mode 100644 serviio/.SRCINFO create mode 100644 serviio/PKGBUILD create mode 100644 serviio/serviio.desktop create mode 100644 serviio/serviio.install create mode 100644 serviio/serviio.png create mode 100644 serviio/serviio.service create mode 100644 serviio/serviio.sh (limited to 'serviio') diff --git a/serviio b/serviio deleted file mode 160000 index 5fa0fec..0000000 --- a/serviio +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5fa0fecdbc181eaed9124f56619d92caff46a1eb diff --git a/serviio/.SRCINFO b/serviio/.SRCINFO new file mode 100644 index 0000000..032ca4b --- /dev/null +++ b/serviio/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = serviio + pkgdesc = Free DLNA media server + pkgver = 2.2 + pkgrel = 1 + url = http://www.serviio.org/ + arch = any + license = custom + depends = java-runtime-headless>=8 + depends = ffmpeg + source = http://download.serviio.org/releases/serviio-2.2-linux.tar.gz + source = serviio.sh + source = serviio.service + source = serviio.desktop + source = serviio.png + md5sums = ac450526d38a496d3aaa700edae9c683 + md5sums = 227a75de2dea1db93c1fba3d004e01ad + md5sums = e958d9812448f97fe325dfffe8b44620 + md5sums = fbfcac4ad5dffd909e51ea1a7a6335aa + md5sums = d41e3e757e412dfcd3036d9e19b81450 + +pkgname = serviio diff --git a/serviio/PKGBUILD b/serviio/PKGBUILD new file mode 100644 index 0000000..36f78f6 --- /dev/null +++ b/serviio/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Yigit Sever +# Contributor: lesebas +# Contributor: Seb Deligny +pkgname=serviio +pkgver=2.2 +pkgrel=1 +pkgdesc="Free DLNA media server" +arch=('any') +url="http://www.serviio.org/" +license=('custom') +depends=('java-runtime-headless>=8' 'ffmpeg') +source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz + $pkgname.sh + $pkgname.service + $pkgname.desktop + $pkgname.png) +md5sums=('ac450526d38a496d3aaa700edae9c683' + '227a75de2dea1db93c1fba3d004e01ad' + 'e958d9812448f97fe325dfffe8b44620' + 'fbfcac4ad5dffd909e51ea1a7a6335aa' + 'd41e3e757e412dfcd3036d9e19b81450') + +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 bin/$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" +} diff --git a/serviio/serviio.desktop b/serviio/serviio.desktop new file mode 100644 index 0000000..1a62ec6 --- /dev/null +++ b/serviio/serviio.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Serviio +Comment[fr]=Console d'administration du serveur DLNA +Comment[en]=Administration console of DLNA server +Exec= serviio-console +Categories=AudioVideo +Icon=serviio +Path= +Terminal=false +StartupNotify=false diff --git a/serviio/serviio.install b/serviio/serviio.install new file mode 100644 index 0000000..043ea27 --- /dev/null +++ b/serviio/serviio.install @@ -0,0 +1,15 @@ + +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + + +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} \ No newline at end of file diff --git a/serviio/serviio.png b/serviio/serviio.png new file mode 100644 index 0000000..f2eefad Binary files /dev/null and b/serviio/serviio.png differ diff --git a/serviio/serviio.service b/serviio/serviio.service new file mode 100644 index 0000000..54e2855 --- /dev/null +++ b/serviio/serviio.service @@ -0,0 +1,9 @@ +[Unit] +Description=Serviio +After=network.target + +[Service] +ExecStart=/usr/bin/serviio + +[Install] +WantedBy=multi-user.target diff --git a/serviio/serviio.sh b/serviio/serviio.sh new file mode 100644 index 0000000..451a645 --- /dev/null +++ b/serviio/serviio.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +if [ $UID -eq 0 ] +then + if [[ -f /etc/profile.d/jdk.sh ]]; then + . /etc/profile.d/jdk.sh + elif [[ -f /etc/profile.d/jre.sh ]]; then + . /etc/profile.d/jre.sh + fi + export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH + SERVIIO_HOME="/usr/share/java/serviio" + SERVIIO_CLASS_PATH="$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 -Dffmpeg.location=ffmpeg" + + java -Xmx384M $JAVA_OPTS -classpath $SERVIIO_CLASS_PATH org.serviio.MediaServer "$@" +else + echo "Must be run as root." +fi -- cgit v1.2.3-70-g09d2