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