diff options
author | Yigit Sever | 2021-10-29 01:30:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 01:30:24 +0300 |
commit | 31d147b20c67d95a9e306d0749200bf964ac42af (patch) | |
tree | b0fbe2bb5aa0fec9983746a91d188643ca93466d /serviio | |
parent | 4a31e5e0f3442a4a5ec9fba94f7bbc2c88312c69 (diff) | |
download | packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.gz packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.bz2 packages-31d147b20c67d95a9e306d0749200bf964ac42af.zip |
Use actual files instead of submodules
Diffstat (limited to 'serviio')
m--------- | serviio | 0 | ||||
-rw-r--r-- | serviio/.SRCINFO | 21 | ||||
-rw-r--r-- | serviio/PKGBUILD | 65 | ||||
-rw-r--r-- | serviio/serviio.desktop | 12 | ||||
-rw-r--r-- | serviio/serviio.install | 15 | ||||
-rw-r--r-- | serviio/serviio.png | bin | 0 -> 1779 bytes | |||
-rw-r--r-- | serviio/serviio.service | 9 | ||||
-rw-r--r-- | serviio/serviio.sh | 18 |
8 files changed, 140 insertions, 0 deletions
diff --git a/serviio b/serviio deleted file mode 160000 | |||
Subproject 5fa0fecdbc181eaed9124f56619d92caff46a1e | |||
diff --git a/serviio/.SRCINFO b/serviio/.SRCINFO new file mode 100644 index 0000000..032ca4b --- /dev/null +++ b/serviio/.SRCINFO | |||
@@ -0,0 +1,21 @@ | |||
1 | pkgbase = serviio | ||
2 | pkgdesc = Free DLNA media server | ||
3 | pkgver = 2.2 | ||
4 | pkgrel = 1 | ||
5 | url = http://www.serviio.org/ | ||
6 | arch = any | ||
7 | license = custom | ||
8 | depends = java-runtime-headless>=8 | ||
9 | depends = ffmpeg | ||
10 | source = http://download.serviio.org/releases/serviio-2.2-linux.tar.gz | ||
11 | source = serviio.sh | ||
12 | source = serviio.service | ||
13 | source = serviio.desktop | ||
14 | source = serviio.png | ||
15 | md5sums = ac450526d38a496d3aaa700edae9c683 | ||
16 | md5sums = 227a75de2dea1db93c1fba3d004e01ad | ||
17 | md5sums = e958d9812448f97fe325dfffe8b44620 | ||
18 | md5sums = fbfcac4ad5dffd909e51ea1a7a6335aa | ||
19 | md5sums = d41e3e757e412dfcd3036d9e19b81450 | ||
20 | |||
21 | 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 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: lesebas | ||
3 | # Contributor: Seb Deligny | ||
4 | pkgname=serviio | ||
5 | pkgver=2.2 | ||
6 | pkgrel=1 | ||
7 | pkgdesc="Free DLNA media server" | ||
8 | arch=('any') | ||
9 | url="http://www.serviio.org/" | ||
10 | license=('custom') | ||
11 | depends=('java-runtime-headless>=8' 'ffmpeg') | ||
12 | source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz | ||
13 | $pkgname.sh | ||
14 | $pkgname.service | ||
15 | $pkgname.desktop | ||
16 | $pkgname.png) | ||
17 | md5sums=('ac450526d38a496d3aaa700edae9c683' | ||
18 | '227a75de2dea1db93c1fba3d004e01ad' | ||
19 | 'e958d9812448f97fe325dfffe8b44620' | ||
20 | 'fbfcac4ad5dffd909e51ea1a7a6335aa' | ||
21 | 'd41e3e757e412dfcd3036d9e19b81450') | ||
22 | |||
23 | package() { | ||
24 | cd "$pkgname-$pkgver" | ||
25 | |||
26 | # define variable for Serviio home directory | ||
27 | SERVIIO_HOME=$pkgdir/usr/share/java/$pkgname | ||
28 | |||
29 | # create the folders needed in the main directory | ||
30 | install -dm755 ${SERVIIO_HOME}/{config,lib,library,plugins} | ||
31 | |||
32 | # place the serviio scripts in the /usr/bin folder | ||
33 | install -Dm755 ${srcdir}/$pkgname.sh $pkgdir/usr/bin/$pkgname | ||
34 | install -Dm755 bin/$pkgname-console.sh $pkgdir/usr/bin/$pkgname-console | ||
35 | |||
36 | # copy xml config files to the config folder | ||
37 | install -m644 config/*.xml ${SERVIIO_HOME}/config | ||
38 | |||
39 | # copy all jar files to the lib folder | ||
40 | install -m644 lib/*.jar ${SERVIIO_HOME}/lib | ||
41 | |||
42 | # copy derby.properties to library folder | ||
43 | install -m644 library/derby.properties ${SERVIIO_HOME}/library | ||
44 | |||
45 | # copy plugins-readme.txt to plugins folder | ||
46 | install -m644 plugins/plugins-readme.txt ${SERVIIO_HOME}/plugins | ||
47 | |||
48 | # create the log folder in /var/log | ||
49 | install -dm755 $pkgdir/var/log/$pkgname | ||
50 | |||
51 | # create a symlink that puts all log files in /var/log | ||
52 | ln -s /var/log/$pkgname ${SERVIIO_HOME}/log | ||
53 | |||
54 | # supply the license file | ||
55 | install -Dm644 LICENCE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE | ||
56 | |||
57 | # install systemd-service | ||
58 | install -Dm644 "${srcdir}/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" | ||
59 | |||
60 | #install the .desktop file | ||
61 | install -Dm644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" | ||
62 | |||
63 | #install the icon file | ||
64 | install -Dm644 "${srcdir}/$pkgname.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png" | ||
65 | } | ||
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 @@ | |||
1 | [Desktop Entry] | ||
2 | Version=1.0 | ||
3 | Type=Application | ||
4 | Name=Serviio | ||
5 | Comment[fr]=Console d'administration du serveur DLNA | ||
6 | Comment[en]=Administration console of DLNA server | ||
7 | Exec= serviio-console | ||
8 | Categories=AudioVideo | ||
9 | Icon=serviio | ||
10 | Path= | ||
11 | Terminal=false | ||
12 | 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 @@ | |||
1 | |||
2 | post_install() { | ||
3 | update-desktop-database -q | ||
4 | gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | ||
5 | } | ||
6 | |||
7 | |||
8 | post_upgrade() { | ||
9 | gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | ||
10 | } | ||
11 | |||
12 | post_remove() { | ||
13 | update-desktop-database -q | ||
14 | gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | ||
15 | } \ No newline at end of file | ||
diff --git a/serviio/serviio.png b/serviio/serviio.png new file mode 100644 index 0000000..f2eefad --- /dev/null +++ b/serviio/serviio.png | |||
Binary files 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 @@ | |||
1 | [Unit] | ||
2 | Description=Serviio | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=/usr/bin/serviio | ||
7 | |||
8 | [Install] | ||
9 | 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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ $UID -eq 0 ] | ||
4 | then | ||
5 | if [[ -f /etc/profile.d/jdk.sh ]]; then | ||
6 | . /etc/profile.d/jdk.sh | ||
7 | elif [[ -f /etc/profile.d/jre.sh ]]; then | ||
8 | . /etc/profile.d/jre.sh | ||
9 | fi | ||
10 | export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH | ||
11 | SERVIIO_HOME="/usr/share/java/serviio" | ||
12 | SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config" | ||
13 | JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=ffmpeg" | ||
14 | |||
15 | java -Xmx384M $JAVA_OPTS -classpath $SERVIIO_CLASS_PATH org.serviio.MediaServer "$@" | ||
16 | else | ||
17 | echo "Must be run as root." | ||
18 | fi | ||