0 2 1
default
Michalis Adamidis (gsnerf) - 13 months ago 2017-06-05 15:05:01
gsnerf@gsnerf.de
updated emby-server to new version using the new solution, also switched from mozroots to cert-sync
3 files changed with 117 insertions and 2 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.17.0.tar.gz 137530016 SHA256 71e6305ea39f468f55ea882b85099a98d33f02e25d1ae1c6d656da4d78f61369 SHA512 5990595e7274135a17ddcb1c0213f6ebb64aa7ca396c34667232c5bad4b0568ef94597fd1fc190d97dc4036c5285fcf9737a516eac08bd0570c08b15f2152f35 WHIRLPOOL f64e16de61d7c8ac716218c48c346b15a1b78d99c315900f201f63dc6c729b05af546b34df9a26caa381f4e0716a8151635126940878f6841197249dafdb9eee
32
 
DIST 3.2.19.0.tar.gz 95566253 SHA256 11972fd3a3d1d1a8e3061520a2debc967756dadcc043a3b85e49c9c90e507158 SHA512 7e49ec0ac2ac4b9cdaa185853855f724cbd5d9005f9163af0948b96a0480e8fec8c01696fbd97561bd88224f11d2e39d1aa5824bf9e7e6e6fd36749c8f99ceea WHIRLPOOL fbf692959ae98c36f30e7f69cc65bd94caac9aff7fc7e7c921653f9d2c39091adbd9d586f680c5422903f3c44fd03f3e919aa107d2c4fe49eba05a25e24a0688
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
...
 
@@ -62,7 +63,8 @@ EBUILD emby-server-3.1.2.ebuild 3966 SHA
62 63
 
EBUILD emby-server-3.1.5.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
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
 
EBUILD emby-server-3.2.17.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
66
 
EBUILD emby-server-3.2.17.0.ebuild 3986 SHA256 c4a2d4fe35914afd41ae70931ce1bb54c830c92153e1d246725edeb7b554b7ed SHA512 ed452f440939826ac56c1950666a83f892ce5f9276730bd28f30e582227cc342b2ea2892ce4e0602be6f3ffe0acd3475fb94d20cfb2ae83407233b8e012a23b7 WHIRLPOOL 684aa3d932325047b1c9102c178b7d2a170e9e25e9721630e45018ac1215add9240f6051fdaa6f7ff3960c933bd2807a5c2cf43674212cc6ae4bbfdf30a8204f
67
 
EBUILD emby-server-3.2.19.0.ebuild 4098 SHA256 569a054bb0639a8efad4493e887aedfd9eb395199cdafba2488fec81abd3c8cc SHA512 2a9d48b361f32ed163cea56d56e2a351060c3ca6439133715de4e21da7e1af57a6a970268e8f0d4b2caf0b2c54c9d6109ddf3d33b84b2a643bcfffd54c6a2143 WHIRLPOOL b1a6eb7557ede7fca311d966fc4f5a2c0d1455170746a347ffc0e1158a66ad2d2a77b7b995dddafcc10394a3844b7cb971f1574a91f515c54086599647444e55
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
...
 
@@ -53,7 +53,7 @@ src_prepare() {
53 53
 

	
54 54
 
src_compile() {
55 55
 
	einfo "updating root certificates for mono certificate store"
56
 
	mozroots --import --sync
56
 
	cert-sync /etc/ssl/certs/ca-certificates.crt
57 57
 
	einfo "now actually compile"
58 58
 
	xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" MediaBrowser.Mono.sln || die "building failed"
59 59
 
}
 
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
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
 
DEPEND="app-arch/unzip ${RDEPEND}"
25
 

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

	
31
 
# INSTALL
32
 
# #######################################################################################################
33
 

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

	
40
 
# gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here
41
 
src_unpack() {
42
 
        unpack ${A}
43
 
        mv Emby-${PV} emby-server-${PV}
44
 
}
45
 

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

	
54
 

	
55
 
src_compile() {
56
 
	einfo "updating root certificates for mono certificate store"
57
 
	cert-sync /etc/ssl/certs/ca-certificates.crt
58
 
	einfo "compiling"
59
 
	xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" MediaBrowser.sln || die "building failed"
60
 
}
61
 

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

	
67
 
	einfo "preparing startup log file"
68
 
	dodir /var/log/
69
 
	touch ${D}${STARTUP_LOG}
70
 
	chown emby:emby ${D}${STARTUP_LOG}
71
 

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

	
78
 
	einfo "prepare data directory"
79
 
	dodir ${DATA_DIR}
80
 
}
81
 

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

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

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

	
105
 
# UNINSTALL
106
 
# #######################################################################################################
107
 

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