[arch-commits] Commit in (7 files)
Maxime Gauduin
alucryd at archlinux.org
Tue Sep 15 08:24:18 UTC 2015
Date: Tuesday, September 15, 2015 @ 10:24:18
Author: alucryd
Revision: 140309
Add emby-server
Added:
emby-server/
emby-server/trunk/
emby-server/trunk/PKGBUILD
emby-server/trunk/emby-server
emby-server/trunk/emby-server.conf
emby-server/trunk/emby-server.install
emby-server/trunk/emby-server.service
---------------------+
PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
emby-server | 3 ++
emby-server.conf | 1
emby-server.install | 11 ++++++++++
emby-server.service | 16 +++++++++++++++
5 files changed, 82 insertions(+)
Added: emby-server/trunk/PKGBUILD
===================================================================
--- emby-server/trunk/PKGBUILD (rev 0)
+++ emby-server/trunk/PKGBUILD 2015-09-15 08:24:18 UTC (rev 140309)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Daniel Seymour <dannyseeless at gmail.com>
+
+pkgname=emby-server
+pkgver=3.0.5724.4
+pkgrel=1
+pkgdesc='Bring together your videos, music, photos, and live television'
+arch=('i686' 'x86_64')
+url='http://emby.media'
+license=('GPL2')
+depends=('ffmpeg' 'imagemagick' 'libmediainfo' 'mono' 'sqlite')
+install='emby-server.install'
+source=("emby-server-${pkgver}.tar.gz::https://github.com/MediaBrowser/MediaBrowser/archive/${pkgver}.tar.gz"
+ 'emby-server'
+ 'emby-server.conf'
+ 'emby-server.service')
+backup=('etc/conf.d/emby-server')
+sha256sums=('79d0b17ca5022ad3283c1034f5a8c3bd68dedc97f2cb9507d553f5e91b1cc53e'
+ '1515d8d61ba903ed8ca73c1930fb9f14e2acaa9c2b456d85fd82c2254558eb85'
+ '064a82fb13816af5eb2a90bc8320d062ead0bf700715ee65df6afb347f890907'
+ '8a91ea49a1699c820c4a180710072cba1d6d5c10e45df97477ff6a898f4e1d70')
+
+prepare() {
+ cd Emby-${pkgver}
+
+ sed 's/libMagickWand-6.Q8.so/libMagickWand-6.Q16HDRI.so/' -i MediaBrowser.Server.Mono/ImageMagickSharp.dll.config
+}
+
+build() {
+ cd Emby-${pkgver}
+
+ xbuild \
+ /p:Configuration='Release Mono' \
+ /p:Platform='Any CPU' \
+ /p:OutputPath="${srcdir}/build" \
+ /t:build MediaBrowser.Mono.sln
+}
+
+package() {
+ install -dm 755 "${pkgdir}"/{etc/conf.d,usr/{bin,lib/systemd/system}}
+ cp -dr --no-preserve='ownership' build "${pkgdir}"/usr/lib/emby-server
+ install -m 755 emby-server "${pkgdir}"/usr/bin/
+ install -m 644 emby-server.service "${pkgdir}"/usr/lib/systemd/system/
+ install -m 644 emby-server.conf "${pkgdir}"/etc/conf.d/emby-server
+
+ install -dm 755 "${pkgdir}"/var/lib/emby
+ chown 422:422 -R "${pkgdir}"/var/lib/emby
+}
+
+# vim: ts=2 sw=2 et:
Property changes on: emby-server/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: emby-server/trunk/emby-server
===================================================================
--- emby-server/trunk/emby-server (rev 0)
+++ emby-server/trunk/emby-server 2015-09-15 08:24:18 UTC (rev 140309)
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+exec mono /usr/lib/emby-server/MediaBrowser.Server.Mono.exe -programdata $EMBY_HOME -ffmpeg ffmpeg -ffprobe ffprobe
Added: emby-server/trunk/emby-server.conf
===================================================================
--- emby-server/trunk/emby-server.conf (rev 0)
+++ emby-server/trunk/emby-server.conf 2015-09-15 08:24:18 UTC (rev 140309)
@@ -0,0 +1 @@
+EMBY_HOME='/var/lib/emby'
Added: emby-server/trunk/emby-server.install
===================================================================
--- emby-server/trunk/emby-server.install (rev 0)
+++ emby-server/trunk/emby-server.install 2015-09-15 08:24:18 UTC (rev 140309)
@@ -0,0 +1,11 @@
+post_install() {
+ getent group emby > /dev/null 2>&1 || groupadd -g 422 emby
+ getent passwd emby > /dev/null 2>&1 || useradd -c 'Emby Media Server' -u 422 -g emby -d /var/lib/emby -s /usr/bin/nologin emby
+ passwd -l emby > /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et:
Added: emby-server/trunk/emby-server.service
===================================================================
--- emby-server/trunk/emby-server.service (rev 0)
+++ emby-server/trunk/emby-server.service 2015-09-15 08:24:18 UTC (rev 140309)
@@ -0,0 +1,16 @@
+[Unit]
+Description=Emby brings together your videos, music, photos, and live television.
+
+[Service]
+EnvironmentFile=/etc/conf.d/emby-server
+WorkingDirectory=/usr/lib/emby-server
+ExecStart=/usr/bin/emby-server
+User=emby
+Group=emby
+Restart=always
+
+[Unit]
+After=network.target
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list