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/mediabrowser-server/mediabrowser-server-9999.ebuild @ 77:09aedc049d57
[mediabrowser-server] cleaned unused old beta builds, fixed keywordes for release, updated development ebuild to reflect recent changes
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Sun, 05 Oct 2014 21:11:36 +0200 |
parents | f336c5c11bfc |
children | 2d2f9db318d2 |
comparison
equal
deleted
inserted
replaced
76:c6f5f3270fdc | 77:09aedc049d57 |
---|---|
8 | 8 |
9 DESCRIPTION="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." | 9 DESCRIPTION="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://mediabrowser.tv/" | 10 HOMEPAGE="http://mediabrowser.tv/" |
11 KEYWORDS="-* ~9999" | 11 KEYWORDS="-* ~9999" |
12 EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/" | 12 EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/" |
13 #EGIT_REPO_URI="https://github.com/gsnerf/MediaBrowser/" | |
14 SLOT="0" | 13 SLOT="0" |
15 LICENSE="GPL-2" | 14 LICENSE="GPL-2" |
16 IUSE="" | 15 IUSE="" |
17 RESTRICT="mirror test" | 16 RESTRICT="mirror test" |
18 | 17 |
19 RDEPEND=">=dev-lang/mono-3.2.0 >=dev-dotnet/libgdiplus-2.10 >=media-libs/libmediainfo-0.7" | 18 RDEPEND=">=dev-lang/mono-3.2.7 |
19 >=dev-dotnet/libgdiplus-2.10 | |
20 media-video/ffmpeg[vpx] | |
21 >=media-libs/libmediainfo-0.7 | |
22 >=media-libs/libwebp-0.4.1[jpeg]" | |
20 DEPEND="app-arch/unzip ${RDEPEND}" | 23 DEPEND="app-arch/unzip ${RDEPEND}" |
21 | 24 |
22 INSTALL_DIR="/opt/mediabrowser-server" | 25 INSTALL_DIR="/opt/mediabrowser-server" |
23 DATA_DIR="/usr/lib/mediabrowser-server" | 26 DATA_DIR="/usr/lib/mediabrowser-server" |
24 STARTUP_LOG="/var/log/mediabrowser_start.log" | 27 STARTUP_LOG="/var/log/mediabrowser_start.log" |
25 INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server" | 28 INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server" |
26 | 29 |
27 # gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here | 30 # we don't want to use the third party drivers, so we patch the config files to use system ones instead |
28 #src_unpack() { | 31 # attention: do NOT remove the third party libraries before compiling as the build process might fail! |
29 # unpack ${A} | 32 src_prepare() { |
30 # mv MediaBrowser-master mediabrowser-server-9999 | 33 epatch "${FILESDIR}/system_libraries_1.patch" |
31 #} | 34 } |
32 | 35 |
33 src_compile() { | 36 src_compile() { |
34 einfo "updating root certificates for mono certificate store" | 37 einfo "updating root certificates for mono certificate store" |
35 mozroots --import --sync | 38 mozroots --import --sync |
36 einfo "now actually compile" | 39 einfo "now actually compile" |
44 touch ${D}${STARTUP_LOG} | 47 touch ${D}${STARTUP_LOG} |
45 chown mediabrowser:mediabrowser ${D}${STARTUP_LOG} | 48 chown mediabrowser:mediabrowser ${D}${STARTUP_LOG} |
46 | 49 |
47 einfo "installing compiled files" | 50 einfo "installing compiled files" |
48 diropts -omediabrowser -gmediabrowser | 51 diropts -omediabrowser -gmediabrowser |
49 #insopts -omediabrowser -gmediabrowser | |
50 dodir ${INSTALL_DIR} | 52 dodir ${INSTALL_DIR} |
51 #insinto ${INSTALL_DIR} | |
52 #doins -r "${S}/MediaBrowser.Server.Mono/bin/Release Mono/*" | |
53 cp -R ${S}/MediaBrowser.Server.Mono/bin/Release\ Mono/* ${D}${INSTALL_DIR}/ || die "install failed, possibly compile did not succeed earlier?" | 53 cp -R ${S}/MediaBrowser.Server.Mono/bin/Release\ Mono/* ${D}${INSTALL_DIR}/ || die "install failed, possibly compile did not succeed earlier?" |
54 chown mediabrowser:mediabrowser -R ${D}${INSTALL_DIR} | 54 chown mediabrowser:mediabrowser -R ${D}${INSTALL_DIR} |
55 | |
56 # as we use the system libraries, we delete the local ones now as we couldn't do it before | |
57 rm -R ${D}${INSTALL_DIR}/libwebp | |
58 rm -R ${D}${INSTALL_DIR}/MediaInfo | |
55 | 59 |
56 einfo "prepare data directory" | 60 einfo "prepare data directory" |
57 dodir ${DATA_DIR} | 61 dodir ${DATA_DIR} |
58 } | 62 } |
59 | 63 |
60 pkg_setup() { | 64 pkg_setup() { |
61 einfo "creating user for MediaBrowser" | 65 einfo "creating user for MediaBrowser" |
62 enewgroup mediabrowser | 66 enewgroup mediabrowser |
63 enewuser mediabrowser -1 /bin/bash /opt/mediabrowser "mediabrowser" --system | 67 enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system |
64 } | 68 } |
65 | 69 |
66 #pkg_preinst() { | 70 #pkg_preinst() { |
67 #cd ${D} | 71 #cd ${D} |
68 #einfo "preparing compiled package for install" | 72 #einfo "preparing compiled package for install" |
96 ${INIT_SCRIPT} stop | 100 ${INIT_SCRIPT} stop |
97 fi | 101 fi |
98 } | 102 } |
99 | 103 |
100 pkg_postinst() { | 104 pkg_postinst() { |
101 einfo "MediaBrowser-server was installed to /opt/mediabrowser, to start please use the init script provided." | 105 einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided." |
102 einfo "All data generated and used by MediaBrowser can be found at /var/opt/mediabrowser after the first start." | 106 einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start." |
103 einfo "" | 107 einfo "" |
104 einfo "If you just updated from an earlier version make sure to restart the service!" | 108 einfo "If you just updated from an earlier version make sure to restart the service!" |
105 } | 109 } |