Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/unifi-video/
Date: Wed, 24 Oct 2018 18:50:56
Message-Id: 1540406891.b38e91e9d5eba7a2536877aa7354a1b2b101f67c.bkohler@gentoo
1 commit: b38e91e9d5eba7a2536877aa7354a1b2b101f67c
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 24 18:48:11 2018 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 24 18:48:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b38e91e9
7
8 media-video/unifi-video: bump to 3.10.0_beta1
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 media-video/unifi-video/Manifest | 1 +
14 .../unifi-video/unifi-video-3.10.0_beta1.ebuild | 83 ++++++++++++++++++++++
15 2 files changed, 84 insertions(+)
16
17 diff --git a/media-video/unifi-video/Manifest b/media-video/unifi-video/Manifest
18 index 8f9e8ce366d..15a970713f9 100644
19 --- a/media-video/unifi-video/Manifest
20 +++ b/media-video/unifi-video/Manifest
21 @@ -1,3 +1,4 @@
22 +DIST unifi-video.Ubuntu16.04_amd64.v3.10.0-beta.1.deb 151614954 BLAKE2B 2c43a9f7d497164ed8bace7cd19c6ed88a8b066669ea85af2dcc3bfd7d6eb23140d32c695b48a7793b76822024190d934d651b38dbccb4cfe4de6e8f0ce5114d SHA512 c84fd0477d42fcb79a6e24f11bca593da6862987cce9e213099695a75a63930928c009ceb99c7921b1db1499a2e617a82400e941c1c069b454a9301e8e295f8f
23 DIST unifi-video.Ubuntu16.04_amd64.v3.9.10-beta.1.deb 116146196 BLAKE2B 5becd4bfe7e94066a34e809dd3485b906e39d0d79bb81a302ae9168147ef9f1517df5345ba521175b05847299abc556304f75801cd188c7868211217ef3dad59 SHA512 d5b5f9fb458a463f177212c157fdd2293b6bc696f28539347d64ed8c540408321a2683ac7cb350f4a665d1d83dc216b7f849214b6c51ee392b85451a4c9b33c2
24 DIST unifi-video.Ubuntu16.04_amd64.v3.9.7.deb 117374890 BLAKE2B b0f274da3052471472cd2405ec0a5d79fd97cbc30f014ede42a004dcffc4d27b9b5ecc36f32b4f60f8c47ba73b85795d2851345f5472b85192cf836bfb929173 SHA512 9a0f48d81f3935baad4004681cabe2ff46f4f86f8770c260c98fbd724de2949427de8ec706d86d612a9ccbcda69ca227aa4a123c3208e0a4ab7c0a51540c06f8
25 DIST unifi-video.Ubuntu16.04_amd64.v3.9.8-beta.1.deb 117380976 BLAKE2B 7fea704c3b780d51c3d0fc1de24b74654ba438b5223b368bbd6b42110b98fb22f0aa29816b6acec9961a9fa4f6dbace54361c64c4c12ae6a39b855c9e91702a1 SHA512 a4782c3b5319d7bc54d5df3dc64fdfec86e729636cc2e5479d7ca3a8f5112c57c83c0ac421be3cc0ce88975d6f47dd7bb57743d6802164531fdafed2bbe484bb
26
27 diff --git a/media-video/unifi-video/unifi-video-3.10.0_beta1.ebuild b/media-video/unifi-video/unifi-video-3.10.0_beta1.ebuild
28 new file mode 100644
29 index 00000000000..f811db81bec
30 --- /dev/null
31 +++ b/media-video/unifi-video/unifi-video-3.10.0_beta1.ebuild
32 @@ -0,0 +1,83 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit systemd user
39 +
40 +MY_PV="${PV/_beta/-beta.}"
41 +DESCRIPTION="UniFi Video Server"
42 +HOMEPAGE="https://www.ubnt.com/download/unifi-video/"
43 +SRC_URI="https://dl.ubnt.com/firmwares/ufv/v${MY_PV}/unifi-video.Ubuntu16.04_amd64.v${MY_PV}.deb"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS=""
48 +IUSE=""
49 +RESTRICT="mirror"
50 +
51 +DEPEND=""
52 +RDEPEND="dev-db/mongodb
53 + dev-java/commons-daemon
54 + sys-apps/lsb-release
55 + sys-libs/libcap
56 + virtual/jre:1.8"
57 +
58 +S=${WORKDIR}
59 +QA_PREBUILT="usr/lib*/${PN}/lib/*.so usr/lib*/${PN}/bin/*"
60 +
61 +pkg_setup() {
62 + enewuser ${PN}
63 + enewgroup ${PN}
64 +}
65 +
66 +src_unpack() {
67 + default
68 + unpack "${WORKDIR}"/data.tar.gz
69 +}
70 +
71 +src_prepare() {
72 + eapply "${FILESDIR}"/commons-daemon-move.patch
73 + sed -i usr/sbin/${PN} \
74 + -e '/require_root$/d' \
75 + -e '/update_limits$/d' \
76 + -e '/ulimit/d' \
77 + -e '/coredump_filter/d' || die
78 + default
79 +}
80 +
81 +src_install() {
82 + static_dir="/usr/$(get_libdir)/${PN}"
83 + #install static data
84 + insinto ${static_dir}
85 + doins -r usr/lib/${PN}/*
86 + fperms -R +x ${static_dir}/bin
87 + fowners -R ${PN}:${PN} ${static_dir}/conf/evostream/
88 +
89 + #wrapper to work around mongodb-3.6 compat issue
90 + exeinto ${static_dir}/bin/
91 + newexe "${FILESDIR}"/mongod-wrapper mongod
92 +
93 + #prepare runtime-data dirs which live in /var but are symlinked from static
94 + #data dir, and are writable by non-root user
95 + dodir /var/log/${PN}
96 + fowners ${PN}:${PN} /var/log/${PN}
97 + dosym ../../../var/log/${PN} ${static_dir}/logs
98 +
99 + dodir /var/lib/${PN}/work
100 + fowners ${PN}:${PN} /var/lib/${PN}/work
101 + dosym ../../../var/lib/${PN}/work ${static_dir}/work
102 +
103 + keepdir /var/lib/${PN}/data
104 + fowners ${PN}:${PN} /var/lib/${PN}/data
105 + dosym ../../../var/lib/${PN}/data ${static_dir}/data
106 +
107 + echo "CONFIG_PROTECT=\"/var/lib/${PN}/data/system.properties\"" > "${T}"/99${PN}
108 + doenvd "${T}"/99${PN}
109 +
110 + into /usr
111 + dosbin usr/sbin/${PN}
112 +
113 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
114 + systemd_dounit "${FILESDIR}"/${PN}.service
115 +}