1 |
commit: c96a1ff2428fd1480699ffd3650c8ecce1b87c80 |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Tue Sep 17 17:27:57 2019 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 17 18:36:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c96a1ff2 |
7 |
|
8 |
net-wireless/unifi: dropped user eclass |
9 |
|
10 |
Dropped user eclass in favour of acct-* packages. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/694684 |
13 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
14 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
15 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
16 |
|
17 |
net-wireless/unifi/unifi-5.11.46-r1.ebuild | 73 ++++++++++++++++++++++++++++++ |
18 |
net-wireless/unifi/unifi-5.12.5-r1.ebuild | 73 ++++++++++++++++++++++++++++++ |
19 |
net-wireless/unifi/unifi-5.6.42-r1.ebuild | 69 ++++++++++++++++++++++++++++ |
20 |
3 files changed, 215 insertions(+) |
21 |
|
22 |
diff --git a/net-wireless/unifi/unifi-5.11.46-r1.ebuild b/net-wireless/unifi/unifi-5.11.46-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..efe877dff67 |
25 |
--- /dev/null |
26 |
+++ b/net-wireless/unifi/unifi-5.11.46-r1.ebuild |
27 |
@@ -0,0 +1,73 @@ |
28 |
+# Copyright 1999-2019 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=6 |
32 |
+ |
33 |
+# Set this var for any releases except stable |
34 |
+RC_SUFFIX="-a5113ebc10" |
35 |
+ |
36 |
+inherit systemd |
37 |
+ |
38 |
+DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs" |
39 |
+HOMEPAGE="https://www.ubnt.com" |
40 |
+SRC_URI="https://dl.ui.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip" |
41 |
+ |
42 |
+KEYWORDS="~amd64" |
43 |
+LICENSE="Apache-1.0 Apache-2.0 BSD-1 BSD-2 BSD CDDL EPL-1.0 GPL-2 LGPL-2.1 LGPL-3 MIT ubiquiti" |
44 |
+SLOT="0/5.11" |
45 |
+IUSE="systemd" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ acct-group/unifi |
49 |
+ acct-user/unifi |
50 |
+ dev-db/mongodb |
51 |
+ virtual/jre:1.8 |
52 |
+" |
53 |
+ |
54 |
+DEPEND="app-arch/unzip" |
55 |
+ |
56 |
+RESTRICT="bindist mirror" |
57 |
+ |
58 |
+S="${WORKDIR}/UniFi" |
59 |
+ |
60 |
+DOCS=( "readme.txt" ) |
61 |
+ |
62 |
+QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # Remove unneeded files Linux, Mac and Windows |
66 |
+ rm -r lib/native/Linux/{aarch64,armv7} lib/native/{Mac,Windows} || die |
67 |
+ if ! use systemd; then |
68 |
+ rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die |
69 |
+ fi |
70 |
+ |
71 |
+ default |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ # Install MongoDB wrapper script, to avoid problems with >= 3.6.0 |
76 |
+ # See https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/td-p/2195435 |
77 |
+ exeinto /usr/lib/unifi/bin |
78 |
+ newexe "${FILESDIR}"/mongod-wrapper mongod |
79 |
+ |
80 |
+ insinto /usr/lib/unifi |
81 |
+ doins -r dl lib webapps |
82 |
+ |
83 |
+ diropts -o unifi -g unifi |
84 |
+ keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi |
85 |
+ |
86 |
+ for symlink in conf data run tmp work; do |
87 |
+ dosym ../../../var/lib/unifi/${symlink} /usr/lib/unifi/${symlink} |
88 |
+ done |
89 |
+ dosym ../../../var/log/unifi /usr/lib/unifi/logs |
90 |
+ |
91 |
+ newinitd "${FILESDIR}"/unifi.initd-r1 unifi |
92 |
+ systemd_dounit "${FILESDIR}"/unifi.service |
93 |
+ |
94 |
+ newconfd "${FILESDIR}"/unifi.confd unifi |
95 |
+ |
96 |
+ echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die |
97 |
+ doenvd "${T}"/99unifi |
98 |
+ |
99 |
+ einstalldocs |
100 |
+} |
101 |
|
102 |
diff --git a/net-wireless/unifi/unifi-5.12.5-r1.ebuild b/net-wireless/unifi/unifi-5.12.5-r1.ebuild |
103 |
new file mode 100644 |
104 |
index 00000000000..8abd17d3590 |
105 |
--- /dev/null |
106 |
+++ b/net-wireless/unifi/unifi-5.12.5-r1.ebuild |
107 |
@@ -0,0 +1,73 @@ |
108 |
+# Copyright 1999-2019 Gentoo Authors |
109 |
+# Distributed under the terms of the GNU General Public License v2 |
110 |
+ |
111 |
+EAPI=6 |
112 |
+ |
113 |
+# Set this var for any releases except stable |
114 |
+RC_SUFFIX="-802c4da1a2" |
115 |
+ |
116 |
+inherit systemd |
117 |
+ |
118 |
+DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs" |
119 |
+HOMEPAGE="https://www.ubnt.com" |
120 |
+SRC_URI="https://dl.ui.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip" |
121 |
+ |
122 |
+KEYWORDS="~amd64" |
123 |
+LICENSE="Apache-1.0 Apache-2.0 BSD-1 BSD-2 BSD CDDL EPL-1.0 GPL-2 LGPL-2.1 LGPL-3 MIT ubiquiti" |
124 |
+SLOT="0/5.12" |
125 |
+IUSE="systemd" |
126 |
+ |
127 |
+RDEPEND=" |
128 |
+ acct-group/unifi |
129 |
+ acct-user/unifi |
130 |
+ dev-db/mongodb |
131 |
+ virtual/jre:1.8 |
132 |
+" |
133 |
+ |
134 |
+DEPEND="app-arch/unzip" |
135 |
+ |
136 |
+RESTRICT="bindist mirror" |
137 |
+ |
138 |
+S="${WORKDIR}/UniFi" |
139 |
+ |
140 |
+DOCS=( "readme.txt" ) |
141 |
+ |
142 |
+QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" |
143 |
+ |
144 |
+src_prepare() { |
145 |
+ # Remove unneeded files Linux, Mac and Windows |
146 |
+ rm -r lib/native/Linux/{aarch64,armv7} lib/native/{Mac,Windows} || die |
147 |
+ if ! use systemd; then |
148 |
+ rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die |
149 |
+ fi |
150 |
+ |
151 |
+ default |
152 |
+} |
153 |
+ |
154 |
+src_install() { |
155 |
+ # Install MongoDB wrapper script, to avoid problems with >= 3.6.0 |
156 |
+ # See https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/td-p/2195435 |
157 |
+ exeinto /usr/lib/unifi/bin |
158 |
+ newexe "${FILESDIR}"/mongod-wrapper mongod |
159 |
+ |
160 |
+ insinto /usr/lib/unifi |
161 |
+ doins -r dl lib webapps |
162 |
+ |
163 |
+ diropts -o unifi -g unifi |
164 |
+ keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi |
165 |
+ |
166 |
+ for symlink in conf data run tmp work; do |
167 |
+ dosym ../../../var/lib/unifi/${symlink} /usr/lib/unifi/${symlink} |
168 |
+ done |
169 |
+ dosym ../../../var/log/unifi /usr/lib/unifi/logs |
170 |
+ |
171 |
+ newinitd "${FILESDIR}"/unifi.initd-r1 unifi |
172 |
+ systemd_dounit "${FILESDIR}"/unifi.service |
173 |
+ |
174 |
+ newconfd "${FILESDIR}"/unifi.confd unifi |
175 |
+ |
176 |
+ echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die |
177 |
+ doenvd "${T}"/99unifi |
178 |
+ |
179 |
+ einstalldocs |
180 |
+} |
181 |
|
182 |
diff --git a/net-wireless/unifi/unifi-5.6.42-r1.ebuild b/net-wireless/unifi/unifi-5.6.42-r1.ebuild |
183 |
new file mode 100644 |
184 |
index 00000000000..0fc70f86f8e |
185 |
--- /dev/null |
186 |
+++ b/net-wireless/unifi/unifi-5.6.42-r1.ebuild |
187 |
@@ -0,0 +1,69 @@ |
188 |
+# Copyright 1999-2019 Gentoo Authors |
189 |
+# Distributed under the terms of the GNU General Public License v2 |
190 |
+ |
191 |
+EAPI=6 |
192 |
+ |
193 |
+# Set this var for any releases except stable |
194 |
+# RC_SUFFIX="" |
195 |
+ |
196 |
+inherit systemd |
197 |
+ |
198 |
+DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs" |
199 |
+HOMEPAGE="https://www.ubnt.com" |
200 |
+SRC_URI="https://dl.ubnt.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip" |
201 |
+ |
202 |
+KEYWORDS="~amd64" |
203 |
+LICENSE="Apache-1.0 Apache-2.0 BSD-1 BSD-2 BSD CDDL EPL-1.0 GPL-2 LGPL-2.1 LGPL-3 MIT ubiquiti" |
204 |
+SLOT="0/5.6" |
205 |
+ |
206 |
+RDEPEND=" |
207 |
+ acct-group/unifi |
208 |
+ acct-user/unifi |
209 |
+ dev-db/mongodb |
210 |
+ virtual/jre:1.8 |
211 |
+" |
212 |
+ |
213 |
+DEPEND="app-arch/unzip" |
214 |
+ |
215 |
+RESTRICT="bindist mirror" |
216 |
+ |
217 |
+S="${WORKDIR}/UniFi" |
218 |
+ |
219 |
+DOCS=( "readme.txt" ) |
220 |
+ |
221 |
+QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" |
222 |
+ |
223 |
+src_prepare() { |
224 |
+ # Remove unneeded files Linux, Mac and Windows |
225 |
+ rm -r lib/native/Linux/armhf lib/native/{Mac,Windows} || die |
226 |
+ |
227 |
+ default |
228 |
+} |
229 |
+ |
230 |
+src_install() { |
231 |
+ # Install MongoDB wrapper script, to avoid problems with >= 3.6.0 |
232 |
+ # See https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/td-p/2195435 |
233 |
+ exeinto /usr/lib/unifi/bin |
234 |
+ newexe "${FILESDIR}"/mongod-wrapper mongod |
235 |
+ |
236 |
+ insinto /usr/lib/unifi |
237 |
+ doins -r dl lib webapps |
238 |
+ |
239 |
+ diropts -o unifi -g unifi |
240 |
+ keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi |
241 |
+ |
242 |
+ for symlink in conf data run tmp work; do |
243 |
+ dosym ../../../var/lib/unifi/${symlink} /usr/lib/unifi/${symlink} |
244 |
+ done |
245 |
+ dosym ../../../var/log/unifi /usr/lib/unifi/logs |
246 |
+ |
247 |
+ newinitd "${FILESDIR}"/unifi.initd-r1 unifi |
248 |
+ systemd_dounit "${FILESDIR}"/unifi.service |
249 |
+ |
250 |
+ newconfd "${FILESDIR}"/unifi.confd unifi |
251 |
+ |
252 |
+ echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die |
253 |
+ doenvd "${T}"/99unifi |
254 |
+ |
255 |
+ einstalldocs |
256 |
+} |