megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
comparison media-tv/emby-server-beta/emby-server-beta-3.1.25.ebuild @ 166:58a9a20ec12f
updated emby-server-beta to be able to run side by side with emby-server
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Thu, 16 Jun 2016 22:07:02 +0200 |
parents | 2d853a2caaf5 |
children |
comparison
equal
deleted
inserted
replaced
165:676a84c72a2f | 166:58a9a20ec12f |
---|---|
17 | 17 |
18 RDEPEND=">=dev-lang/mono-3.2.7 | 18 RDEPEND=">=dev-lang/mono-3.2.7 |
19 <dev-lang/mono-4.3 | 19 <dev-lang/mono-4.3 |
20 >=media-video/ffmpeg-2[vpx] | 20 >=media-video/ffmpeg-2[vpx] |
21 media-gfx/imagemagick[jpeg,jpeg2k,webp,png] | 21 media-gfx/imagemagick[jpeg,jpeg2k,webp,png] |
22 !media-tv/mediabrowser-server | |
23 !media-tv/emby-server | |
24 >=dev-db/sqlite-3.0.0" | 22 >=dev-db/sqlite-3.0.0" |
25 DEPEND="app-arch/unzip ${RDEPEND}" | 23 DEPEND="app-arch/unzip ${RDEPEND}" |
26 | 24 |
27 INSTALL_DIR="/opt/emby-server" | 25 INSTALL_DIR="/opt/emby-server-beta" |
28 DATA_DIR="/var/lib/emby-server" | 26 DATA_DIR="/var/lib/emby-server-beta" |
29 STARTUP_LOG="/var/log/emby-server_start.log" | 27 STARTUP_LOG="/var/log/emby-server-beta_start.log" |
30 INIT_SCRIPT="${ROOT}/etc/init.d/emby-server" | 28 INIT_SCRIPT="${ROOT}/etc/init.d/emby-server-beta" |
31 | 29 |
32 # INSTALL | 30 # INSTALL |
33 # ####################################################################################################### | 31 # ####################################################################################################### |
34 | 32 |
35 pkg_setup() { | 33 pkg_setup() { |
39 } | 37 } |
40 | 38 |
41 # gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here | 39 # gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here |
42 src_unpack() { | 40 src_unpack() { |
43 unpack ${A} | 41 unpack ${A} |
44 mv Emby-${PV} emby-server-${PV} | 42 mv Emby-${PV} emby-server-beta-${PV} |
45 } | 43 } |
46 | 44 |
47 src_prepare() { | 45 src_prepare() { |
48 MAGICKWAND=$(ldconfig -p | grep MagickWand.*.so$ | cut -d" " -f4) | 46 MAGICKWAND=$(ldconfig -p | grep MagickWand.*.so$ | cut -d" " -f4) |
49 MAGICKWAND=${MAGICKWAND##*/} | 47 MAGICKWAND=${MAGICKWAND##*/} |
59 xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" MediaBrowser.Mono.sln || die "building failed" | 57 xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" MediaBrowser.Mono.sln || die "building failed" |
60 } | 58 } |
61 | 59 |
62 src_install() { | 60 src_install() { |
63 einfo "preparing startup scripts" | 61 einfo "preparing startup scripts" |
64 newinitd "${FILESDIR}"/emby-server.init_2 ${PN} | 62 newinitd "${FILESDIR}"/emby-server-beta.init_2 ${PN} |
65 newconfd "${FILESDIR}"/emby-server.conf ${PN} | 63 newconfd "${FILESDIR}"/emby-server-beta.conf ${PN} |
66 | 64 |
67 einfo "preparing startup log file" | 65 einfo "preparing startup log file" |
68 dodir /var/log/ | 66 dodir /var/log/ |
69 touch ${D}${STARTUP_LOG} | 67 touch ${D}${STARTUP_LOG} |
70 chown emby:emby ${D}${STARTUP_LOG} | 68 chown emby:emby ${D}${STARTUP_LOG} |