1 |
commit: 425b5090d422e9b4214188238e5e598373e79500 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 19:30:03 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 19:31:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=425b5090 |
7 |
|
8 |
www-apps/netbox: Remove last-rited pkg |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
profiles/package.mask | 1 - |
13 |
www-apps/netbox/Manifest | 3 - |
14 |
www-apps/netbox/files/gunicorn_config.py | 5 - |
15 |
www-apps/netbox/files/netbox-2.6.7-no-pip.patch | 32 ------ |
16 |
www-apps/netbox/files/netbox-rqworker.initd | 13 --- |
17 |
www-apps/netbox/files/netbox.initd | 12 --- |
18 |
www-apps/netbox/metadata.xml | 5 - |
19 |
www-apps/netbox/netbox-2.7.2.ebuild | 122 ----------------------- |
20 |
www-apps/netbox/netbox-2.7.6.ebuild | 122 ----------------------- |
21 |
www-apps/netbox/netbox-2.7.8.ebuild | 123 ------------------------ |
22 |
10 files changed, 438 deletions(-) |
23 |
|
24 |
diff --git a/profiles/package.mask b/profiles/package.mask |
25 |
index 06cb5461e4d..5350b058c9d 100644 |
26 |
--- a/profiles/package.mask |
27 |
+++ b/profiles/package.mask |
28 |
@@ -411,7 +411,6 @@ dev-java/cldc-api |
29 |
# Removal on 2021-05-31. Relevant bugs found on tracker #701178. |
30 |
gnome-extra/gnome-dvb-daemon |
31 |
sci-chemistry/gmxapi |
32 |
-www-apps/netbox |
33 |
|
34 |
# Andreas K. Hüttel <dilfridge@g.o> (2021-04-30) |
35 |
# Superceded by dev-perl/Image-Sane. Tests hang, bug 626594 |
36 |
|
37 |
diff --git a/www-apps/netbox/Manifest b/www-apps/netbox/Manifest |
38 |
deleted file mode 100644 |
39 |
index cae76566f50..00000000000 |
40 |
--- a/www-apps/netbox/Manifest |
41 |
+++ /dev/null |
42 |
@@ -1,3 +0,0 @@ |
43 |
-DIST netbox-2.7.2.tar.gz 4936914 BLAKE2B 905e2667d0637d2edb655efcba1d697eacb097ddd67c8e4586ee2a3ce5a81e4fe98a71f574ae5c732190e03e42fd4cab2f781a30622e79d5e9ea4db7c86de263 SHA512 87753ce955e296d9605e44d5f0df58c14876ca8feda3245dee166fba8a51cbfda7def8da39663570cd0e7c9195cc163d9e877b59027ea1161c7eec33702a3ea4 |
44 |
-DIST netbox-2.7.6.tar.gz 4949672 BLAKE2B 1847e5a05493f55ca777737c11b4751bc63183d693f742c7f9b9e5d6a498fe786a60619d40394473488881e6ef922a343cacd796126b8c618158eea9ab26216d SHA512 065e9c4338fb876ac626f5dec5c98ba2ee798b2fd6d4d8a8d4e57fff4072c649e51a1db633c2718be9ca10b362e7ead9b70655fa77ae6da9f01706e60135e306 |
45 |
-DIST netbox-2.7.8.tar.gz 5587481 BLAKE2B 9b524ca7acc1d650402a72aa65f75d7205cf29a3a5cfa9256ff47d12f240fc38903a6db76b8cee2b923947f6e31b124ba0bfdfbf4385fb6fd027634b3b8ba675 SHA512 cce73b9bbd79725e4af01a9265c0a9f14a1ac708186123c1a90f267149157a0c174cd32d5e56875b5fdb55ef87b2ec668ec542b1d3a01256544065d6a0457b54 |
46 |
|
47 |
diff --git a/www-apps/netbox/files/gunicorn_config.py b/www-apps/netbox/files/gunicorn_config.py |
48 |
deleted file mode 100644 |
49 |
index 4cb7111fac4..00000000000 |
50 |
--- a/www-apps/netbox/files/gunicorn_config.py |
51 |
+++ /dev/null |
52 |
@@ -1,5 +0,0 @@ |
53 |
-command = '/usr/bin/gunicorn' |
54 |
-pythonpath = '/opt/netbox/netbox' |
55 |
-bind = '127.0.0.1:8001' |
56 |
-workers = 3 |
57 |
-user = 'netbox' |
58 |
|
59 |
diff --git a/www-apps/netbox/files/netbox-2.6.7-no-pip.patch b/www-apps/netbox/files/netbox-2.6.7-no-pip.patch |
60 |
deleted file mode 100644 |
61 |
index a47e151c084..00000000000 |
62 |
--- a/www-apps/netbox/files/netbox-2.6.7-no-pip.patch |
63 |
+++ /dev/null |
64 |
@@ -1,32 +0,0 @@ |
65 |
-diff --git a/upgrade.sh b/upgrade.sh |
66 |
-index d17dec06..6972ed2f 100755 |
67 |
---- a/upgrade.sh |
68 |
-+++ b/upgrade.sh |
69 |
-@@ -10,27 +10,6 @@ cd "$(dirname "$0")" |
70 |
- PYTHON="python3" |
71 |
- PIP="pip3" |
72 |
- |
73 |
--# Uninstall any Python packages which are no longer needed |
74 |
--COMMAND="${PIP} uninstall -r old_requirements.txt -y" |
75 |
--echo "Removing old Python packages ($COMMAND)..." |
76 |
--eval $COMMAND |
77 |
-- |
78 |
--# Install any new Python packages |
79 |
--COMMAND="${PIP} install -r requirements.txt --upgrade" |
80 |
--echo "Updating required Python packages ($COMMAND)..." |
81 |
--eval $COMMAND |
82 |
-- |
83 |
--# Validate Python dependencies |
84 |
--COMMAND="${PIP} check" |
85 |
--echo "Validating Python dependencies ($COMMAND)..." |
86 |
--eval $COMMAND || ( |
87 |
-- echo "******** PLEASE FIX THE DEPENDENCIES BEFORE CONTINUING ********" |
88 |
-- echo "* Manually install newer version(s) of the highlighted packages" |
89 |
-- echo "* so that 'pip3 check' passes. For more information see:" |
90 |
-- echo "* https://github.com/pypa/pip/issues/988" |
91 |
-- exit 1 |
92 |
--) |
93 |
-- |
94 |
- # Apply any database migrations |
95 |
- COMMAND="${PYTHON} netbox/manage.py migrate" |
96 |
- echo "Applying database migrations ($COMMAND)..." |
97 |
|
98 |
diff --git a/www-apps/netbox/files/netbox-rqworker.initd b/www-apps/netbox/files/netbox-rqworker.initd |
99 |
deleted file mode 100644 |
100 |
index 54794f26fb9..00000000000 |
101 |
--- a/www-apps/netbox/files/netbox-rqworker.initd |
102 |
+++ /dev/null |
103 |
@@ -1,13 +0,0 @@ |
104 |
-#!/sbin/openrc-run |
105 |
-# Copyright 2019 Sony Interactive Entertainment Inc. |
106 |
-# Distributed under the terms of the GNU General Public License v2 |
107 |
- |
108 |
-name="netbox-rqworker daemon" |
109 |
-description="nnetbox-rqworker daemon" |
110 |
-command=/usr/bin/python3 |
111 |
-command_args="/opt/netbox/netbox/manage.py rqworker" |
112 |
-command_user=netbox:netbox |
113 |
-directory=/opt/netbox/netbox |
114 |
-error_log=/var/log/netbox/netbox-rcworker.log |
115 |
-output_log=/var/log/netbox/"${RC_SVCNAME}".log |
116 |
-supervisor=supervise-daemon |
117 |
|
118 |
diff --git a/www-apps/netbox/files/netbox.initd b/www-apps/netbox/files/netbox.initd |
119 |
deleted file mode 100644 |
120 |
index 74e6c3b717f..00000000000 |
121 |
--- a/www-apps/netbox/files/netbox.initd |
122 |
+++ /dev/null |
123 |
@@ -1,12 +0,0 @@ |
124 |
-#!/sbin/openrc-run |
125 |
-# Copyright 2019 Sony Interactive Entertainment Inc. |
126 |
-# Distributed under the terms of the GNU General Public License v2 |
127 |
- |
128 |
-description="netbox daemon" |
129 |
-command=/usr/bin/gunicorn |
130 |
-command_args="-c /etc/netbox/gunicorn_config.py netbox.wsgi" |
131 |
-command_user=netbox:netbox |
132 |
-directory=/opt/netbox/netbox |
133 |
-error_log=/var/log/netbox/"${RC_SVCNAME}".log |
134 |
-output_log=/var/log/netbox/"${RC_SVCNAME}".log |
135 |
-supervisor=supervise-daemon |
136 |
|
137 |
diff --git a/www-apps/netbox/metadata.xml b/www-apps/netbox/metadata.xml |
138 |
deleted file mode 100644 |
139 |
index 7a38bb90096..00000000000 |
140 |
--- a/www-apps/netbox/metadata.xml |
141 |
+++ /dev/null |
142 |
@@ -1,5 +0,0 @@ |
143 |
-<?xml version="1.0" encoding="UTF-8"?> |
144 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
145 |
-<pkgmetadata> |
146 |
- <!-- maintainer-needed --> |
147 |
-</pkgmetadata> |
148 |
|
149 |
diff --git a/www-apps/netbox/netbox-2.7.2.ebuild b/www-apps/netbox/netbox-2.7.2.ebuild |
150 |
deleted file mode 100644 |
151 |
index cc78230888d..00000000000 |
152 |
--- a/www-apps/netbox/netbox-2.7.2.ebuild |
153 |
+++ /dev/null |
154 |
@@ -1,122 +0,0 @@ |
155 |
-# Copyright 1999-2020 Gentoo Authors |
156 |
-# Distributed under the terms of the GNU General Public License v2 |
157 |
- |
158 |
-EAPI=7 |
159 |
-PYTHON_COMPAT=( python3_7 ) |
160 |
-inherit python-single-r1 readme.gentoo-r1 |
161 |
- |
162 |
-DESCRIPTION="IP address and data center infrastructure management tool" |
163 |
-HOMEPAGE="https://github.com/netbox-community/netbox" |
164 |
-SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
165 |
- |
166 |
-LICENSE="Apache-2.0" |
167 |
-SLOT="0" |
168 |
-KEYWORDS="~amd64" |
169 |
-IUSE="ldap" |
170 |
-REQUIRED_USE=${PYTHON_REQUIRED_USE} |
171 |
- |
172 |
-RDEPEND=" |
173 |
- acct-group/netbox |
174 |
- acct-user/netbox |
175 |
- ${PYTHON_DEPS} |
176 |
- $(python_gen_cond_dep ' |
177 |
- >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}] |
178 |
- >=dev-python/django-cacheops-4.2[${PYTHON_MULTI_USEDEP}] |
179 |
- >=dev-python/django-cors-headers-3.2.1[${PYTHON_MULTI_USEDEP}] |
180 |
- >=dev-python/django-debug-toolbar-2.1[${PYTHON_MULTI_USEDEP}] |
181 |
- >=dev-python/django-filter-2.2.0[${PYTHON_MULTI_USEDEP}] |
182 |
- >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}] |
183 |
- >=dev-python/django-prometheus-1.1.0[${PYTHON_MULTI_USEDEP}] |
184 |
- >=dev-python/django-rq-2.2.0[${PYTHON_MULTI_USEDEP}] |
185 |
- >=dev-python/django-tables2-2.2.1[${PYTHON_MULTI_USEDEP}] |
186 |
- >=dev-python/django-taggit-1.2.0[${PYTHON_MULTI_USEDEP}] |
187 |
- >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}] |
188 |
- >=dev-python/django-timezone-field-4.0[${PYTHON_MULTI_USEDEP}] |
189 |
- >=dev-python/djangorestframework-3.10.3[${PYTHON_MULTI_USEDEP}] |
190 |
- >=dev-python/drf-yasg-1.17.0[${PYTHON_MULTI_USEDEP},validation] |
191 |
- >=dev-python/jinja-2.10.3[${PYTHON_MULTI_USEDEP}] |
192 |
- >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}] |
193 |
- <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
194 |
- >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}] |
195 |
- >=dev-python/pillow-7.0.0[${PYTHON_MULTI_USEDEP}] |
196 |
- >=dev-python/psycopg-2.8.4[${PYTHON_MULTI_USEDEP}] |
197 |
- >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}] |
198 |
- >=dev-python/pycryptodome-3.9.4[${PYTHON_MULTI_USEDEP}] |
199 |
- >=dev-python/pyyaml-5.3[${PYTHON_MULTI_USEDEP}] |
200 |
- >=dev-python/redis-py-3.3.11[${PYTHON_MULTI_USEDEP}] |
201 |
- www-servers/gunicorn[${PYTHON_MULTI_USEDEP}] |
202 |
- ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] ) |
203 |
- ')" |
204 |
-DEPEND="${RDEPEND}" |
205 |
- |
206 |
-PATCHES=( |
207 |
- "${FILESDIR}"/${PN}-2.6.7-no-pip.patch |
208 |
- ) |
209 |
- |
210 |
-DISABLE_AUTOFORMATTING=YES |
211 |
-DOC_CONTENTS=" |
212 |
-netbox is installed on your system. However, there are some manual steps |
213 |
-you need to complete from the installation guide [1]. |
214 |
- |
215 |
-On Gentoo, the configuration files you need to edit are located in |
216 |
-/etc/netbox, not /opt/netbox as shown in the installation guide. |
217 |
- |
218 |
-If this is a new installation, please follow the installation guide |
219 |
-other than this difference. Also, if you need ldap, set the appropriate |
220 |
-use flag when emerging netbox to install the dependency for it. |
221 |
- |
222 |
-Once that is done, you should be able to add the netbox service to the |
223 |
-default runlevel and start it. |
224 |
- |
225 |
-If you want to use webhooks, you should also add the netbox-rqworker |
226 |
-service to the default runlevel and start it. |
227 |
- |
228 |
-If this is an upgrade, follow these instructions: |
229 |
- |
230 |
-Stop the netbox service. If the netbox-rqworker service is running, |
231 |
-stop it as well. |
232 |
- |
233 |
-Next, run the upgrade script as described in the upgrading guide[2]. |
234 |
- |
235 |
-Next, check for new configuration options and set them as appropriate |
236 |
-for your system. |
237 |
- |
238 |
-Next, start the netbox service. |
239 |
- |
240 |
-Finally, if you are using webhooks, start the netbox-rqworker service. |
241 |
- |
242 |
-[1] https://netbox.readthedocs.io/en/stable/installation/ |
243 |
-[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/ |
244 |
-" |
245 |
- |
246 |
-src_install() { |
247 |
- dodir /opt |
248 |
- cp -a ../${P} "${ED}"/opt |
249 |
- dosym ${P} /opt/netbox |
250 |
-dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py |
251 |
- dosym ../../../../etc/netbox/configuration.py \ |
252 |
- /opt/netbox/netbox/netbox/configuration.py |
253 |
- dodir /etc/netbox |
254 |
- insinto /etc/netbox |
255 |
- newins netbox/netbox/configuration.example.py configuration.py |
256 |
- doins "${FILESDIR}"/gunicorn_config.py |
257 |
- fowners -R netbox:netbox /etc/netbox /opt/${P} |
258 |
- fowners -h netbox:netbox /opt/netbox |
259 |
- fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py |
260 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
261 |
- newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker |
262 |
- keepdir /var/log/netbox |
263 |
- fowners -R netbox:netbox /var/log/netbox |
264 |
- readme.gentoo_create_doc |
265 |
-} |
266 |
- |
267 |
-pkg_postinst() { |
268 |
- readme.gentoo_print_elog |
269 |
- local r |
270 |
- for r in $REPLACING_VERSIONS; do |
271 |
- if [[ $r = "2.5.10" ]]; then |
272 |
- ewarn "The home directory of the netbox user is now /var/lib/netbox" |
273 |
- ewarn "Please adjust your system." |
274 |
- fi |
275 |
- done |
276 |
-} |
277 |
|
278 |
diff --git a/www-apps/netbox/netbox-2.7.6.ebuild b/www-apps/netbox/netbox-2.7.6.ebuild |
279 |
deleted file mode 100644 |
280 |
index cc78230888d..00000000000 |
281 |
--- a/www-apps/netbox/netbox-2.7.6.ebuild |
282 |
+++ /dev/null |
283 |
@@ -1,122 +0,0 @@ |
284 |
-# Copyright 1999-2020 Gentoo Authors |
285 |
-# Distributed under the terms of the GNU General Public License v2 |
286 |
- |
287 |
-EAPI=7 |
288 |
-PYTHON_COMPAT=( python3_7 ) |
289 |
-inherit python-single-r1 readme.gentoo-r1 |
290 |
- |
291 |
-DESCRIPTION="IP address and data center infrastructure management tool" |
292 |
-HOMEPAGE="https://github.com/netbox-community/netbox" |
293 |
-SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
294 |
- |
295 |
-LICENSE="Apache-2.0" |
296 |
-SLOT="0" |
297 |
-KEYWORDS="~amd64" |
298 |
-IUSE="ldap" |
299 |
-REQUIRED_USE=${PYTHON_REQUIRED_USE} |
300 |
- |
301 |
-RDEPEND=" |
302 |
- acct-group/netbox |
303 |
- acct-user/netbox |
304 |
- ${PYTHON_DEPS} |
305 |
- $(python_gen_cond_dep ' |
306 |
- >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}] |
307 |
- >=dev-python/django-cacheops-4.2[${PYTHON_MULTI_USEDEP}] |
308 |
- >=dev-python/django-cors-headers-3.2.1[${PYTHON_MULTI_USEDEP}] |
309 |
- >=dev-python/django-debug-toolbar-2.1[${PYTHON_MULTI_USEDEP}] |
310 |
- >=dev-python/django-filter-2.2.0[${PYTHON_MULTI_USEDEP}] |
311 |
- >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}] |
312 |
- >=dev-python/django-prometheus-1.1.0[${PYTHON_MULTI_USEDEP}] |
313 |
- >=dev-python/django-rq-2.2.0[${PYTHON_MULTI_USEDEP}] |
314 |
- >=dev-python/django-tables2-2.2.1[${PYTHON_MULTI_USEDEP}] |
315 |
- >=dev-python/django-taggit-1.2.0[${PYTHON_MULTI_USEDEP}] |
316 |
- >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}] |
317 |
- >=dev-python/django-timezone-field-4.0[${PYTHON_MULTI_USEDEP}] |
318 |
- >=dev-python/djangorestframework-3.10.3[${PYTHON_MULTI_USEDEP}] |
319 |
- >=dev-python/drf-yasg-1.17.0[${PYTHON_MULTI_USEDEP},validation] |
320 |
- >=dev-python/jinja-2.10.3[${PYTHON_MULTI_USEDEP}] |
321 |
- >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}] |
322 |
- <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
323 |
- >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}] |
324 |
- >=dev-python/pillow-7.0.0[${PYTHON_MULTI_USEDEP}] |
325 |
- >=dev-python/psycopg-2.8.4[${PYTHON_MULTI_USEDEP}] |
326 |
- >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}] |
327 |
- >=dev-python/pycryptodome-3.9.4[${PYTHON_MULTI_USEDEP}] |
328 |
- >=dev-python/pyyaml-5.3[${PYTHON_MULTI_USEDEP}] |
329 |
- >=dev-python/redis-py-3.3.11[${PYTHON_MULTI_USEDEP}] |
330 |
- www-servers/gunicorn[${PYTHON_MULTI_USEDEP}] |
331 |
- ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] ) |
332 |
- ')" |
333 |
-DEPEND="${RDEPEND}" |
334 |
- |
335 |
-PATCHES=( |
336 |
- "${FILESDIR}"/${PN}-2.6.7-no-pip.patch |
337 |
- ) |
338 |
- |
339 |
-DISABLE_AUTOFORMATTING=YES |
340 |
-DOC_CONTENTS=" |
341 |
-netbox is installed on your system. However, there are some manual steps |
342 |
-you need to complete from the installation guide [1]. |
343 |
- |
344 |
-On Gentoo, the configuration files you need to edit are located in |
345 |
-/etc/netbox, not /opt/netbox as shown in the installation guide. |
346 |
- |
347 |
-If this is a new installation, please follow the installation guide |
348 |
-other than this difference. Also, if you need ldap, set the appropriate |
349 |
-use flag when emerging netbox to install the dependency for it. |
350 |
- |
351 |
-Once that is done, you should be able to add the netbox service to the |
352 |
-default runlevel and start it. |
353 |
- |
354 |
-If you want to use webhooks, you should also add the netbox-rqworker |
355 |
-service to the default runlevel and start it. |
356 |
- |
357 |
-If this is an upgrade, follow these instructions: |
358 |
- |
359 |
-Stop the netbox service. If the netbox-rqworker service is running, |
360 |
-stop it as well. |
361 |
- |
362 |
-Next, run the upgrade script as described in the upgrading guide[2]. |
363 |
- |
364 |
-Next, check for new configuration options and set them as appropriate |
365 |
-for your system. |
366 |
- |
367 |
-Next, start the netbox service. |
368 |
- |
369 |
-Finally, if you are using webhooks, start the netbox-rqworker service. |
370 |
- |
371 |
-[1] https://netbox.readthedocs.io/en/stable/installation/ |
372 |
-[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/ |
373 |
-" |
374 |
- |
375 |
-src_install() { |
376 |
- dodir /opt |
377 |
- cp -a ../${P} "${ED}"/opt |
378 |
- dosym ${P} /opt/netbox |
379 |
-dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py |
380 |
- dosym ../../../../etc/netbox/configuration.py \ |
381 |
- /opt/netbox/netbox/netbox/configuration.py |
382 |
- dodir /etc/netbox |
383 |
- insinto /etc/netbox |
384 |
- newins netbox/netbox/configuration.example.py configuration.py |
385 |
- doins "${FILESDIR}"/gunicorn_config.py |
386 |
- fowners -R netbox:netbox /etc/netbox /opt/${P} |
387 |
- fowners -h netbox:netbox /opt/netbox |
388 |
- fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py |
389 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
390 |
- newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker |
391 |
- keepdir /var/log/netbox |
392 |
- fowners -R netbox:netbox /var/log/netbox |
393 |
- readme.gentoo_create_doc |
394 |
-} |
395 |
- |
396 |
-pkg_postinst() { |
397 |
- readme.gentoo_print_elog |
398 |
- local r |
399 |
- for r in $REPLACING_VERSIONS; do |
400 |
- if [[ $r = "2.5.10" ]]; then |
401 |
- ewarn "The home directory of the netbox user is now /var/lib/netbox" |
402 |
- ewarn "Please adjust your system." |
403 |
- fi |
404 |
- done |
405 |
-} |
406 |
|
407 |
diff --git a/www-apps/netbox/netbox-2.7.8.ebuild b/www-apps/netbox/netbox-2.7.8.ebuild |
408 |
deleted file mode 100644 |
409 |
index d89acd9c0ad..00000000000 |
410 |
--- a/www-apps/netbox/netbox-2.7.8.ebuild |
411 |
+++ /dev/null |
412 |
@@ -1,123 +0,0 @@ |
413 |
-# Copyright 1999-2020 Gentoo Authors |
414 |
-# Distributed under the terms of the GNU General Public License v2 |
415 |
- |
416 |
-EAPI=7 |
417 |
-PYTHON_COMPAT=( python3_7 ) |
418 |
-inherit python-single-r1 readme.gentoo-r1 |
419 |
- |
420 |
-DESCRIPTION="IP address and data center infrastructure management tool" |
421 |
-HOMEPAGE="https://github.com/netbox-community/netbox" |
422 |
-SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
423 |
- |
424 |
-LICENSE="Apache-2.0" |
425 |
-SLOT="0" |
426 |
-KEYWORDS="~amd64" |
427 |
-IUSE="ldap" |
428 |
-REQUIRED_USE=${PYTHON_REQUIRED_USE} |
429 |
- |
430 |
-RDEPEND=" |
431 |
- acct-group/netbox |
432 |
- acct-user/netbox |
433 |
- ${PYTHON_DEPS} |
434 |
- $(python_gen_cond_dep ' |
435 |
- >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}] |
436 |
- >=dev-python/django-cacheops-4.2[${PYTHON_MULTI_USEDEP}] |
437 |
- >=dev-python/django-cors-headers-3.2.1[${PYTHON_MULTI_USEDEP}] |
438 |
- >=dev-python/django-debug-toolbar-2.1[${PYTHON_MULTI_USEDEP}] |
439 |
- >=dev-python/django-filter-2.2.0[${PYTHON_MULTI_USEDEP}] |
440 |
- >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}] |
441 |
- >=dev-python/django-pglocks-1.0.4[${PYTHON_MULTI_USEDEP}] |
442 |
- >=dev-python/django-prometheus-1.1.0[${PYTHON_MULTI_USEDEP}] |
443 |
- >=dev-python/django-rq-2.2.0[${PYTHON_MULTI_USEDEP}] |
444 |
- >=dev-python/django-tables2-2.2.1[${PYTHON_MULTI_USEDEP}] |
445 |
- >=dev-python/django-taggit-1.2.0[${PYTHON_MULTI_USEDEP}] |
446 |
- >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}] |
447 |
- >=dev-python/django-timezone-field-4.0[${PYTHON_MULTI_USEDEP}] |
448 |
- >=dev-python/djangorestframework-3.10.3[${PYTHON_MULTI_USEDEP}] |
449 |
- >=dev-python/drf-yasg-1.17.0[${PYTHON_MULTI_USEDEP},validation] |
450 |
- >=dev-python/jinja-2.10.3[${PYTHON_MULTI_USEDEP}] |
451 |
- >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}] |
452 |
- <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
453 |
- >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}] |
454 |
- >=dev-python/pillow-7.0.0[${PYTHON_MULTI_USEDEP}] |
455 |
- >=dev-python/psycopg-2.8.4[${PYTHON_MULTI_USEDEP}] |
456 |
- >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}] |
457 |
- >=dev-python/pycryptodome-3.9.4[${PYTHON_MULTI_USEDEP}] |
458 |
- >=dev-python/pyyaml-5.3[${PYTHON_MULTI_USEDEP}] |
459 |
- >=dev-python/redis-py-3.3.11[${PYTHON_MULTI_USEDEP}] |
460 |
- www-servers/gunicorn[${PYTHON_MULTI_USEDEP}] |
461 |
- ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] ) |
462 |
- ')" |
463 |
-DEPEND="${RDEPEND}" |
464 |
- |
465 |
-PATCHES=( |
466 |
- "${FILESDIR}"/${PN}-2.6.7-no-pip.patch |
467 |
- ) |
468 |
- |
469 |
-DISABLE_AUTOFORMATTING=YES |
470 |
-DOC_CONTENTS=" |
471 |
-netbox is installed on your system. However, there are some manual steps |
472 |
-you need to complete from the installation guide [1]. |
473 |
- |
474 |
-On Gentoo, the configuration files you need to edit are located in |
475 |
-/etc/netbox, not /opt/netbox as shown in the installation guide. |
476 |
- |
477 |
-If this is a new installation, please follow the installation guide |
478 |
-other than this difference. Also, if you need ldap, set the appropriate |
479 |
-use flag when emerging netbox to install the dependency for it. |
480 |
- |
481 |
-Once that is done, you should be able to add the netbox service to the |
482 |
-default runlevel and start it. |
483 |
- |
484 |
-If you want to use webhooks, you should also add the netbox-rqworker |
485 |
-service to the default runlevel and start it. |
486 |
- |
487 |
-If this is an upgrade, follow these instructions: |
488 |
- |
489 |
-Stop the netbox service. If the netbox-rqworker service is running, |
490 |
-stop it as well. |
491 |
- |
492 |
-Next, run the upgrade script as described in the upgrading guide[2]. |
493 |
- |
494 |
-Next, check for new configuration options and set them as appropriate |
495 |
-for your system. |
496 |
- |
497 |
-Next, start the netbox service. |
498 |
- |
499 |
-Finally, if you are using webhooks, start the netbox-rqworker service. |
500 |
- |
501 |
-[1] https://netbox.readthedocs.io/en/stable/installation/ |
502 |
-[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/ |
503 |
-" |
504 |
- |
505 |
-src_install() { |
506 |
- dodir /opt |
507 |
- cp -a ../${P} "${ED}"/opt |
508 |
- dosym ${P} /opt/netbox |
509 |
-dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py |
510 |
- dosym ../../../../etc/netbox/configuration.py \ |
511 |
- /opt/netbox/netbox/netbox/configuration.py |
512 |
- dodir /etc/netbox |
513 |
- insinto /etc/netbox |
514 |
- newins netbox/netbox/configuration.example.py configuration.py |
515 |
- doins "${FILESDIR}"/gunicorn_config.py |
516 |
- fowners -R netbox:netbox /etc/netbox /opt/${P} |
517 |
- fowners -h netbox:netbox /opt/netbox |
518 |
- fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py |
519 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
520 |
- newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker |
521 |
- keepdir /var/log/netbox |
522 |
- fowners -R netbox:netbox /var/log/netbox |
523 |
- readme.gentoo_create_doc |
524 |
-} |
525 |
- |
526 |
-pkg_postinst() { |
527 |
- readme.gentoo_print_elog |
528 |
- local r |
529 |
- for r in $REPLACING_VERSIONS; do |
530 |
- if [[ $r = "2.5.10" ]]; then |
531 |
- ewarn "The home directory of the netbox user is now /var/lib/netbox" |
532 |
- ewarn "Please adjust your system." |
533 |
- fi |
534 |
- done |
535 |
-} |