0 1 1
default
Michalis Adamidis (gsnerf) - 11 months ago 2017-08-15 21:19:43
gsnerf@gsnerf.de
updated emby-server
2 files changed with 118 insertions and 0 deletions:
↑ Collapse Diff ↑
...
 
@@ -29,6 +29,7 @@ DIST 3.1.5.tar.gz 41454188 SHA256 12b54f
29 29
 
DIST 3.2.0.tar.gz 40676748 SHA256 f411930c635a5e3860d19a8cd62ea199c452d4fba58d93ee39de4bd3b3294dba SHA512 f3b70ce3963fa02db9befa57b32f1a4b6efc636ecfb1fb4e00eb7cbb78327c90a1678c4d981a3389e2f7213b79ae6f9729fec90a264e91452264967b1cb2a5d8 WHIRLPOOL 814c893c78534103137b9b1cfe1f429ad72503b815945ee3bbb55da4bc7d6523a07e6be7d91ce3ff1be4e16e73d5b3c358ab5b25cf030f381cb2a78969ea642a
30 30
 
DIST 3.2.13.0.tar.gz 46992878 SHA256 1e6edc6ecfd23cfec397dfabfd83cc4ce11d6e92a93703eedee9d1e3ff87d9d8 SHA512 ba252765b51b3933085ff445d843c6653b68ceda320cbac63e8896b6074c543d61565aff3b74ddd20117a3f62924bc49e541758c97524cec8d742d31226ba0df WHIRLPOOL b147274d7db1c7298534502a60d7c1203675ae577d30fb95f09a71185f32092778c3b15028f8313bf1a2b4985bff08f59a3d75c3a4b64a6d0c957711779bd55b
31 31
 
DIST 3.2.19.0.tar.gz 95566253 SHA256 11972fd3a3d1d1a8e3061520a2debc967756dadcc043a3b85e49c9c90e507158 SHA512 7e49ec0ac2ac4b9cdaa185853855f724cbd5d9005f9163af0948b96a0480e8fec8c01696fbd97561bd88224f11d2e39d1aa5824bf9e7e6e6fd36749c8f99ceea WHIRLPOOL fbf692959ae98c36f30e7f69cc65bd94caac9aff7fc7e7c921653f9d2c39091adbd9d586f680c5422903f3c44fd03f3e919aa107d2c4fe49eba05a25e24a0688
32
 
DIST 3.2.26.0.tar.gz 83167045 SHA256 8d1ee6e5da6589dbdda52df13ffe9ef0a9a5025159e0efcb36334214f3c7246c SHA512 2f86922f43fdcd58699a80cdc81b179e5a3748affd8e9d01974681bd6a6ff34e8475a710a75f5d512336ab080d3a15b6474c82b9feec196f1c293abde89ae890 WHIRLPOOL d68f1da789c510483d5b42696a49981a33b51571f56a89846a6acea3c256b832a17d6179d8111f07ce5557d3caf113d42445ec3b70161f8934eaeebf80ca9635
32 33
 
DIST 3.2.5.tar.gz 46521369 SHA256 b310ce7a91a577b995569cbe57d73b5bd8029744faba765b00b470345b7caf48 SHA512 886e1c36fb8401239d1196d5706ea9ac52aafb6bdfcd1dd1b7c2341842dafd97d39fa37426ef346dec4b8e5fe0811fa7da4845754cd8adba30685550b099248e WHIRLPOOL 7ddbb6d339913ac7fe56337925ef12d740cd6a7c901f8f4aab93e8133dd12196f90e5e241b9fd7eea4398ea70ca1f20520384ba705417ae1db4439c0407acae7
33 34
 
DIST 3.2.7.tar.gz 46472876 SHA256 50f57575dea4d5ea8c64afd2a8e9dfa535918400ee8fea593359c09cf74bece3 SHA512 5358d10761b6be68c1d2ed5e81626d0c99c97e49f73e3b8aa8afd1311445bd9ff7bab0b335a0b929ded166b31c866653395bcd6ac5587c51d6bb56a92a75ec66 WHIRLPOOL d4b346927030e56c73abfc3d8dcc1067e302a345d66397bbccf08c3651720de4e27616f76ff83b2e6f0ad8b646335d910f6c09485592ffd70bd1dc62b072d11c
34 35
 
DIST 3.2.8.tar.gz 46475083 SHA256 b3afee84546c3f610f0016af6ad2f5cea1ec3f662d866665753612732efcc58a SHA512 e61f91464e02c246047e38e43b209fc8af09c040633a7425515fddee5a8bccdf4b76cf988c6c1783a1283da08ce86b1b6abece8dd7c7ee132595ac42d057a989 WHIRLPOOL 2ccf7fb5467de42e7a0845847e27cb3929ff29289fa9fe028b0a41308f1654f22c54eb2e1f85722b57a35c9fb742d438c5cebf7090c99fdcc7a2c821579b6d8e
...
 
@@ -63,6 +64,7 @@ EBUILD emby-server-3.1.5.ebuild 3966 SHA
63 64
 
EBUILD emby-server-3.2.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
64 65
 
EBUILD emby-server-3.2.13.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
65 66
 
EBUILD emby-server-3.2.19.0-r1.ebuild 4183 SHA256 d01f57b563626441d4d9d74d2dbe386ac86e2b4f5a0f50f611811b95f369b1f2 SHA512 5d66a93f7be97e665cdb54337fbc8f97185ddd5eec01cc79c1a4041fccd7f8d6b9b5ba408b75c352b0cb204d00db16877f91034273f0298e8d2369e32ed60afb WHIRLPOOL cce514751981381c70f61bae2c443a19f32ca4ab6f3233b7f7b0e444c05674e5b6c3a62785ac3783706e1cdaa72436a04859b9e2bef888427193a1bb451b52e3
67
 
EBUILD emby-server-3.2.26.0.ebuild 4183 SHA256 d01f57b563626441d4d9d74d2dbe386ac86e2b4f5a0f50f611811b95f369b1f2 SHA512 5d66a93f7be97e665cdb54337fbc8f97185ddd5eec01cc79c1a4041fccd7f8d6b9b5ba408b75c352b0cb204d00db16877f91034273f0298e8d2369e32ed60afb WHIRLPOOL cce514751981381c70f61bae2c443a19f32ca4ab6f3233b7f7b0e444c05674e5b6c3a62785ac3783706e1cdaa72436a04859b9e2bef888427193a1bb451b52e3
66 68
 
EBUILD emby-server-3.2.5.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
67 69
 
EBUILD emby-server-3.2.7.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
68 70
 
EBUILD emby-server-3.2.8.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
 
new file 100644
1
 
# Copyright 1999-2015 Gentoo Foundation
2
 
# Distributed under the terms of the GNU General Public License v2
3
 
# $Header: $
4
 

	
5
 
EAPI="5"
6
 

	
7
 
inherit eutils user git-r3 dotnet
8
 

	
9
 
DESCRIPTION="Emby Server (formerly known as MediaBrowser Server) is a software that indexes a lot of different kinds of media and allows for them to be retrieved and played through the DLNA protocol on any device capable of processing them."
10
 
HOMEPAGE="http://emby.media/"
11
 
KEYWORDS="-* ~arm ~amd64 ~x86"
12
 
SRC_URI="https://github.com/MediaBrowser/Emby/archive/${PV}.tar.gz"
13
 
SLOT="0"
14
 
LICENSE="GPL-2"
15
 
IUSE=""
16
 
RESTRICT="mirror test"
17
 

	
18
 
RDEPEND=">=dev-lang/mono-4.6.0
19
 
	>=media-video/ffmpeg-2[vpx]
20
 
	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
21
 
	!media-tv/mediabrowser-server
22
 
	>=dev-db/sqlite-3.0.0
23
 
	dev-dotnet/referenceassemblies-pcl
24
 
	app-misc/ca-certificates"
25
 
DEPEND="app-arch/unzip ${RDEPEND}"
26
 

	
27
 
INSTALL_DIR="/opt/emby-server"
28
 
DATA_DIR="/var/lib/emby-server"
29
 
STARTUP_LOG="/var/log/emby-server_start.log"
30
 
INIT_SCRIPT="${ROOT}/etc/init.d/emby-server"
31
 

	
32
 
# INSTALL
33
 
# #######################################################################################################
34
 

	
35
 
pkg_setup() {
36
 
	einfo "creating user for Emby"
37
 
	enewgroup emby
38
 
	enewuser emby -1 /bin/bash ${INSTALL_DIR} "emby"
39
 

	
40
 
	einfo "updating root certificates for mono certificate store"
41
 
        addwrite "/usr/share/.mono/keypairs"
42
 
	dotnet_pkg_setup
43
 
        cert-sync /etc/ssl/certs/ca-certificates.crt
44
 
}
45
 

	
46
 
# gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here
47
 
src_unpack() {
48
 
        unpack ${A}
49
 
        mv Emby-${PV} emby-server-${PV}
50
 
}
51
 

	
52
 
src_prepare() {
53
 
	# the user can define the quality of the imagemagic himself, here we try to figure out the correct files to use in our configuration
54
 
	MAGICKWAND=$(ldconfig -p | grep MagickWand.*.so$ | cut -d" " -f4)
55
 
	MAGICKWAND=${MAGICKWAND##*/}
56
 
	einfo "adapting to imagemagick library to: ${MAGICKWAND}"
57
 
	sed -i -e "s/\"libMagickWand-6.Q8.so\"/\"${MAGICKWAND}\"/" MediaBrowser.Server.Mono/ImageMagickSharp.dll.config || die "could not update libMagickWand reference!"
58
 
}
59
 

	
60
 

	
61
 
src_compile() {
62
 
	xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" MediaBrowser.sln || die "building failed"
63
 
}
64
 

	
65
 
src_install() {
66
 
	einfo "preparing startup scripts"
67
 
	newinitd "${FILESDIR}"/emby-server.init_3  ${PN}
68
 
	newconfd "${FILESDIR}"/emby-server.conf ${PN}
69
 

	
70
 
	einfo "preparing startup log file"
71
 
	dodir /var/log/
72
 
	touch ${D}${STARTUP_LOG}
73
 
	chown emby:emby ${D}${STARTUP_LOG}
74
 

	
75
 
	einfo "installing compiled files"
76
 
	diropts -oemby -gemby
77
 
	dodir ${INSTALL_DIR}
78
 
	cp -R ${S}/MediaBrowser.Server.Mono/bin/Release/* ${D}${INSTALL_DIR}/ || die "install failed, possibly compile did not succeed earlier?"
79
 
	chown emby:emby -R ${D}${INSTALL_DIR}
80
 

	
81
 
	einfo "prepare data directory"
82
 
	dodir ${DATA_DIR}
83
 
}
84
 

	
85
 
pkg_postinst() {
86
 
	einfo "emby-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
87
 
	einfo "All data generated and used by Emby can be found at ${DATA_DIR} after the first start."
88
 
	einfo ""
89
 

	
90
 
	if [[ -d "/usr/lib/mediabrowser-server" || -h "/usr/lib/mediabrowser-server" ]]; then
91
 
		ewarn "ATTENTION: You seem to have moved from the former mediabrowser-server package:"
92
 
		ewarn "don't forget to migrate your original data directory before the first start!"
93
 
		ewarn "To do that move"
94
 
		ewarn "     /usr/lib/mediabrowser-server"
95
 
		ewarn "to"
96
 
		ewarn "     ${DATA_DIR}"
97
 
		ewarn "and change owner status from mediabrowser:mediabrowser to emby:emby!"
98
 
		ewarn "     chown -R emby:emby ${DATA_DIR}"
99
 
	fi
100
 

	
101
 
	if [[ -d "/usr/lib/emby-server" || -h "/usr/lib/emby-server"  ]]; then
102
 
		ewarn "ATTENTION: You seem to have existing program data at /usr/lib/emby-server!"
103
 
		ewarn "Please move that folder to ${DATA_DIR} before the first start and make sure the folder is owned by emby:emby"
104
 
		ewarn "The folder /usr/lib/emby-server will be repurposed in one of the next releases, so make sure to clean that directory up!"
105
 
	fi
106
 
}
107
 

	
108
 
# UNINSTALL
109
 
# #######################################################################################################
110
 

	
111
 
pkg_prerm() {
112
 
	einfo "Stopping running instances of Emby Server"
113
 
	if [ -e "${INIT_SCRIPT}" ]; then
114
 
		${INIT_SCRIPT} stop
115
 
	fi
116
 
}
0 comments (0 inline, 0 general)