2 1 1
default
Michalis Adamidis (gsnerf) - 13 months ago 2017-06-05 17:16:09
gsnerf@gsnerf.de
restructured emby-server ebuild & fixed dependencies to hopefully resolve cert-sync issues
4 files changed with 117 insertions and 230 deletions:
↑ Collapse Diff ↑
...
 
@@ -28,7 +28,6 @@ DIST 3.1.2.tar.gz 41765969 SHA256 9139a8
28 28
 
DIST 3.1.5.tar.gz 41454188 SHA256 12b54f42b73a0f20ff9d6bcae5c2081e16286df49932ab55813290327cdb89fd SHA512 4668f7c8dc18c784b67421324171b9aee1f3541fef976ec5b9cf9bfec8c4ccd3cec823500eb11eb6f770bab68cb3681c17867c834240223f0af54fffeaab091b WHIRLPOOL c7a085300a6d3aeb84924292e5459244218fa6da945046fdf70b1fbf144f506c3f15b51e5ac28f4cdab47a8122369f3da0627c99c8bc86f6a55bd7fc3b841f72
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
 
DIST 3.2.17.0.tar.gz 137530016 SHA256 71e6305ea39f468f55ea882b85099a98d33f02e25d1ae1c6d656da4d78f61369 SHA512 5990595e7274135a17ddcb1c0213f6ebb64aa7ca396c34667232c5bad4b0568ef94597fd1fc190d97dc4036c5285fcf9737a516eac08bd0570c08b15f2152f35 WHIRLPOOL f64e16de61d7c8ac716218c48c346b15a1b78d99c315900f201f63dc6c729b05af546b34df9a26caa381f4e0716a8151635126940878f6841197249dafdb9eee
32 31
 
DIST 3.2.19.0.tar.gz 95566253 SHA256 11972fd3a3d1d1a8e3061520a2debc967756dadcc043a3b85e49c9c90e507158 SHA512 7e49ec0ac2ac4b9cdaa185853855f724cbd5d9005f9163af0948b96a0480e8fec8c01696fbd97561bd88224f11d2e39d1aa5824bf9e7e6e6fd36749c8f99ceea WHIRLPOOL fbf692959ae98c36f30e7f69cc65bd94caac9aff7fc7e7c921653f9d2c39091adbd9d586f680c5422903f3c44fd03f3e919aa107d2c4fe49eba05a25e24a0688
33 32
 
DIST 3.2.5.tar.gz 46521369 SHA256 b310ce7a91a577b995569cbe57d73b5bd8029744faba765b00b470345b7caf48 SHA512 886e1c36fb8401239d1196d5706ea9ac52aafb6bdfcd1dd1b7c2341842dafd97d39fa37426ef346dec4b8e5fe0811fa7da4845754cd8adba30685550b099248e WHIRLPOOL 7ddbb6d339913ac7fe56337925ef12d740cd6a7c901f8f4aab93e8133dd12196f90e5e241b9fd7eea4398ea70ca1f20520384ba705417ae1db4439c0407acae7
34 33
 
DIST 3.2.7.tar.gz 46472876 SHA256 50f57575dea4d5ea8c64afd2a8e9dfa535918400ee8fea593359c09cf74bece3 SHA512 5358d10761b6be68c1d2ed5e81626d0c99c97e49f73e3b8aa8afd1311445bd9ff7bab0b335a0b929ded166b31c866653395bcd6ac5587c51d6bb56a92a75ec66 WHIRLPOOL d4b346927030e56c73abfc3d8dcc1067e302a345d66397bbccf08c3651720de4e27616f76ff83b2e6f0ad8b646335d910f6c09485592ffd70bd1dc62b072d11c
...
 
@@ -63,8 +62,7 @@ EBUILD emby-server-3.1.2.ebuild 3966 SHA
63 62
 
EBUILD emby-server-3.1.5.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
64 63
 
EBUILD emby-server-3.2.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
65 64
 
EBUILD emby-server-3.2.13.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
66
 
EBUILD emby-server-3.2.17.0.ebuild 4024 SHA256 d6d35e3ae5e62a679bb66242b2bbdf84b96ecba6d6acc4d7a706ecb068df727f SHA512 be41fd1834227e67cd4bf2d80d38398e29ae22bb2da01e25388f171d4de2b74d1a73ae4e32364fedef6b518096df773f044a7c4443d60b53bba27a3c3a560a5a WHIRLPOOL 34d123a48af02aa895fe46032f2fc600482e58e2f04d752680daecd45609d76c48e4e79f3776f8fd4ca9c99735651eca6493d0b274d97336ff00f89cce62b3c6
67
 
EBUILD emby-server-3.2.19.0.ebuild 4136 SHA256 cf38130c89543b8e25c8c710e3655a6a60bf7ab8d925ed3b664d9c728bdf6420 SHA512 441ee361f00ba6938c868ecad3852f08c5b31f77c274e1d48a01f1f2fe24c3a9fa1b5d2bf265bea06bbfb7d675fd7409320c41bd885353ba3629ead1262fe28c WHIRLPOOL c7ad1e3e1a2ac5848ff6c24a53a336c7f0d7214eb308daa56a0be062255d9f250639cd5596103b5097db3925ab29d3c4c79d0e0add7bacd7c982c617dabe3c1b
65
 
EBUILD emby-server-3.2.19.0-r1.ebuild 4183 SHA256 d01f57b563626441d4d9d74d2dbe386ac86e2b4f5a0f50f611811b95f369b1f2 SHA512 5d66a93f7be97e665cdb54337fbc8f97185ddd5eec01cc79c1a4041fccd7f8d6b9b5ba408b75c352b0cb204d00db16877f91034273f0298e8d2369e32ed60afb WHIRLPOOL cce514751981381c70f61bae2c443a19f32ca4ab6f3233b7f7b0e444c05674e5b6c3a62785ac3783706e1cdaa72436a04859b9e2bef888427193a1bb451b52e3
68 66
 
EBUILD emby-server-3.2.5.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
69 67
 
EBUILD emby-server-3.2.7.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
70 68
 
EBUILD emby-server-3.2.8.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
media-tv/emby-server/emby-server-3.2.17.0.ebuild
 
deleted file
 
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
 
}
media-tv/emby-server/emby-server-3.2.19.0.ebuild
 
deleted file
0 comments (0 inline, 0 general)