Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/netbox/, www-apps/netbox/files/
Date: Sat, 01 Aug 2020 20:40:43
Message-Id: 1596314415.35dbc28470985d7aa32e93128ab88c1bb22c5488.mgorny@gentoo
1 commit: 35dbc28470985d7aa32e93128ab88c1bb22c5488
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 20:38:12 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 20:40:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35dbc284
7
8 www-apps/netbox: Remove old
9
10 Acked by William on IRC.
11
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 www-apps/netbox/Manifest | 9 --
15 www-apps/netbox/files/netbox-2.5.11-no-pip.patch | 27 -----
16 www-apps/netbox/files/netbox-2.5.12-no-pip.patch | 27 -----
17 www-apps/netbox/files/netbox-2.6.1-no-pip.patch | 27 -----
18 www-apps/netbox/files/netbox-2.6.4-no-pip.patch | 21 ----
19 www-apps/netbox/metadata.xml | 3 -
20 www-apps/netbox/netbox-2.5.11.ebuild | 123 ----------------------
21 www-apps/netbox/netbox-2.5.12.ebuild | 123 ----------------------
22 www-apps/netbox/netbox-2.6.1.ebuild | 126 -----------------------
23 www-apps/netbox/netbox-2.6.12.ebuild | 123 ----------------------
24 www-apps/netbox/netbox-2.6.4.ebuild | 126 -----------------------
25 www-apps/netbox/netbox-2.6.5.ebuild | 126 -----------------------
26 www-apps/netbox/netbox-2.6.6.ebuild | 126 -----------------------
27 www-apps/netbox/netbox-2.6.7.ebuild | 126 -----------------------
28 www-apps/netbox/netbox-2.6.8.ebuild | 126 -----------------------
29 15 files changed, 1239 deletions(-)
30
31 diff --git a/www-apps/netbox/Manifest b/www-apps/netbox/Manifest
32 index 671b5fa4944..cae76566f50 100644
33 --- a/www-apps/netbox/Manifest
34 +++ b/www-apps/netbox/Manifest
35 @@ -1,12 +1,3 @@
36 -DIST netbox-2.5.11.tar.gz 2364831 BLAKE2B e5117b2d4c3f33b231715a8b192e7954dc0611fcb270937c5c8abda3abc9f9925bd7db2c7306847428b5a24014d0c0b07ee404294b389a708d0dc7963c250691 SHA512 dfd19af01bf096ee7d8790981853d7e94d8926a4f0eeb00a061f805d56486670c058752b9a9fb23882b0b8d33e4a2d62f50a35b56c28eb2782be47e6f4b13b7d
37 -DIST netbox-2.5.12.tar.gz 2364874 BLAKE2B efe1360fd7c1105e5c6010ee22a882fb4fc796ff0f907974984dba35a0ab6da7724fd6042b102cebe3e3e291c3a1c65c347a5967edbaf443ece6fe61648a93be SHA512 e105a351f1150139c5bce36527ea650f95504ccc1c7b6a82c41396d69bc8671758cc3b33789c95c81785c5ff54d34c7310cd3e03e65bd006606e85021dcd1795
38 -DIST netbox-2.6.1.tar.gz 2393902 BLAKE2B 027115458cbb873cb7aa7660a6cd1df46a7768dc05c9280f94c23368336752034b8ede591ed4337f6b65ade1db7fac740533c3c2d932043172cf296ddd2e3f8a SHA512 8cfe4384ed4ad682ff5268e83d72716230683e86e858c857fd694838227a8b3eddfe02c1fc39b00cb36b33519d8cbb942dd4008544943e8b8f7f2d5904c10e5a
39 -DIST netbox-2.6.12.tar.gz 2463692 BLAKE2B 38386569b651e516cf587561f06c11be0d0e6bb9b5e664ba2403367693d29961e1379b7b0754bb2379b9af636aba03d8c9d1b611d607a2a234467b25a956bd35 SHA512 9ebb540541401a3e81a10a2345b54053c8bcb73c4e217732b2d07badf40d08bd3600b50ada13e83fdf28db447233d710b4cf0989d978117cd16a1f7220b40e4c
40 -DIST netbox-2.6.4.tar.gz 2408970 BLAKE2B 47fa3473e893e8443aace8b587df0065a3024a34f9509644deddce7c53e5ac8b3832df55604f3328d699f8f703ae15ad5b52312e1af8fcccabb7cd06377c8a09 SHA512 b137ec7f2d33bb7b48bcb38719ac9ea8cc31d7d38e33cedfb3279b8be2078c9a48ede10db1e4b4cab4a08c77e010060936e445cb6a1d2e6247bcc8d935cc9c3a
41 -DIST netbox-2.6.5.tar.gz 2408180 BLAKE2B d119a1bf8256e0d6265eda7122a1d436ecb0e8e640acd12890d242c2c93768b21b5f8ebdbaecdfa31c0eaab0150edf52f08a1f424102fd940dd359bd8eafd4af SHA512 0b76e5bc3f56effbf7493680d10d549caf36e7769e21a2c24449cbe329379369f3428354c228d0cbbbc153dc62efb5c0e56c4a0d71c99f3267acd2446f48fb8a
42 -DIST netbox-2.6.6.tar.gz 2414895 BLAKE2B b27e1bd5bf810627a4ec563b2eb5dbd7c86bf3d98e52555e511ee16492fd96a6cb7604dce8f5954120ab8b3a48d6acf7878721005bcfd2bd9e3880294dfbcd4d SHA512 9b44442cea1f76cdecb37faee8fe32012b869ff63c1b0bc678d2bb8624851941e9296854a9d85abea24e49a75fd5b31b968e4adbd56e5bc03a1c9f28fc8b846e
43 -DIST netbox-2.6.7.tar.gz 2416096 BLAKE2B 9c9744b60c3999fa7c3336539937cc20eebac67559444a4512cc4d69e8d38babc147254fd1fc49b8515203a8fd4411bc61c4c30aa3313e1ffe0d0e86abd8c9bb SHA512 63ed6a95a1f33ee5dd19dc2e43fc5c6aa09979c6f6856b28060992a8aaee956363caf20c48e72884adb84d260669d828311c0cf0d143fc0e58fed9677baf76db
44 -DIST netbox-2.6.8.tar.gz 2416523 BLAKE2B 1624415302696f47f799f8bd42b827bfdac7866e750ad71cca84a3c095aa39e403036d82257c864f0e4ecc1725087cc1253c73fa26928915e2c53213c3a3852a SHA512 12a094434c66f954cdd356a41123d5e6c2df8ba9aa846731ee439fd0bf330a003ca4b96c8889aef7be2e551c1d518e96c83182168049a76e9cf4ca3104533280
45 DIST netbox-2.7.2.tar.gz 4936914 BLAKE2B 905e2667d0637d2edb655efcba1d697eacb097ddd67c8e4586ee2a3ce5a81e4fe98a71f574ae5c732190e03e42fd4cab2f781a30622e79d5e9ea4db7c86de263 SHA512 87753ce955e296d9605e44d5f0df58c14876ca8feda3245dee166fba8a51cbfda7def8da39663570cd0e7c9195cc163d9e877b59027ea1161c7eec33702a3ea4
46 DIST netbox-2.7.6.tar.gz 4949672 BLAKE2B 1847e5a05493f55ca777737c11b4751bc63183d693f742c7f9b9e5d6a498fe786a60619d40394473488881e6ef922a343cacd796126b8c618158eea9ab26216d SHA512 065e9c4338fb876ac626f5dec5c98ba2ee798b2fd6d4d8a8d4e57fff4072c649e51a1db633c2718be9ca10b362e7ead9b70655fa77ae6da9f01706e60135e306
47 DIST netbox-2.7.8.tar.gz 5587481 BLAKE2B 9b524ca7acc1d650402a72aa65f75d7205cf29a3a5cfa9256ff47d12f240fc38903a6db76b8cee2b923947f6e31b124ba0bfdfbf4385fb6fd027634b3b8ba675 SHA512 cce73b9bbd79725e4af01a9265c0a9f14a1ac708186123c1a90f267149157a0c174cd32d5e56875b5fdb55ef87b2ec668ec542b1d3a01256544065d6a0457b54
48
49 diff --git a/www-apps/netbox/files/netbox-2.5.11-no-pip.patch b/www-apps/netbox/files/netbox-2.5.11-no-pip.patch
50 deleted file mode 100644
51 index 5d1fa595f4e..00000000000
52 --- a/www-apps/netbox/files/netbox-2.5.11-no-pip.patch
53 +++ /dev/null
54 @@ -1,27 +0,0 @@
55 -diff --git a/upgrade.sh b/upgrade.sh
56 -index 24e79f5b..248e1cb5 100755
57 ---- a/upgrade.sh
58 -+++ b/upgrade.sh
59 -@@ -8,22 +8,6 @@
60 - PYTHON="python3"
61 - PIP="pip3"
62 -
63 --# TODO: Remove this in v2.6 as it is no longer needed under Python 3
64 --# Delete stale bytecode
65 --COMMAND="find . -name \"*.pyc\" -delete"
66 --echo "Cleaning up stale Python bytecode ($COMMAND)..."
67 --eval $COMMAND
68 --
69 --# Uninstall any Python packages which are no longer needed
70 --COMMAND="${PIP} uninstall -r old_requirements.txt -y"
71 --echo "Removing old Python packages ($COMMAND)..."
72 --eval $COMMAND
73 --
74 --# Install any new Python packages
75 --COMMAND="${PIP} install -r requirements.txt --upgrade"
76 --echo "Updating required Python packages ($COMMAND)..."
77 --eval $COMMAND
78 --
79 - # Apply any database migrations
80 - COMMAND="${PYTHON} netbox/manage.py migrate"
81 - echo "Applying database migrations ($COMMAND)..."
82
83 diff --git a/www-apps/netbox/files/netbox-2.5.12-no-pip.patch b/www-apps/netbox/files/netbox-2.5.12-no-pip.patch
84 deleted file mode 100644
85 index 5d1fa595f4e..00000000000
86 --- a/www-apps/netbox/files/netbox-2.5.12-no-pip.patch
87 +++ /dev/null
88 @@ -1,27 +0,0 @@
89 -diff --git a/upgrade.sh b/upgrade.sh
90 -index 24e79f5b..248e1cb5 100755
91 ---- a/upgrade.sh
92 -+++ b/upgrade.sh
93 -@@ -8,22 +8,6 @@
94 - PYTHON="python3"
95 - PIP="pip3"
96 -
97 --# TODO: Remove this in v2.6 as it is no longer needed under Python 3
98 --# Delete stale bytecode
99 --COMMAND="find . -name \"*.pyc\" -delete"
100 --echo "Cleaning up stale Python bytecode ($COMMAND)..."
101 --eval $COMMAND
102 --
103 --# Uninstall any Python packages which are no longer needed
104 --COMMAND="${PIP} uninstall -r old_requirements.txt -y"
105 --echo "Removing old Python packages ($COMMAND)..."
106 --eval $COMMAND
107 --
108 --# Install any new Python packages
109 --COMMAND="${PIP} install -r requirements.txt --upgrade"
110 --echo "Updating required Python packages ($COMMAND)..."
111 --eval $COMMAND
112 --
113 - # Apply any database migrations
114 - COMMAND="${PYTHON} netbox/manage.py migrate"
115 - echo "Applying database migrations ($COMMAND)..."
116
117 diff --git a/www-apps/netbox/files/netbox-2.6.1-no-pip.patch b/www-apps/netbox/files/netbox-2.6.1-no-pip.patch
118 deleted file mode 100644
119 index 5d1fa595f4e..00000000000
120 --- a/www-apps/netbox/files/netbox-2.6.1-no-pip.patch
121 +++ /dev/null
122 @@ -1,27 +0,0 @@
123 -diff --git a/upgrade.sh b/upgrade.sh
124 -index 24e79f5b..248e1cb5 100755
125 ---- a/upgrade.sh
126 -+++ b/upgrade.sh
127 -@@ -8,22 +8,6 @@
128 - PYTHON="python3"
129 - PIP="pip3"
130 -
131 --# TODO: Remove this in v2.6 as it is no longer needed under Python 3
132 --# Delete stale bytecode
133 --COMMAND="find . -name \"*.pyc\" -delete"
134 --echo "Cleaning up stale Python bytecode ($COMMAND)..."
135 --eval $COMMAND
136 --
137 --# Uninstall any Python packages which are no longer needed
138 --COMMAND="${PIP} uninstall -r old_requirements.txt -y"
139 --echo "Removing old Python packages ($COMMAND)..."
140 --eval $COMMAND
141 --
142 --# Install any new Python packages
143 --COMMAND="${PIP} install -r requirements.txt --upgrade"
144 --echo "Updating required Python packages ($COMMAND)..."
145 --eval $COMMAND
146 --
147 - # Apply any database migrations
148 - COMMAND="${PYTHON} netbox/manage.py migrate"
149 - echo "Applying database migrations ($COMMAND)..."
150
151 diff --git a/www-apps/netbox/files/netbox-2.6.4-no-pip.patch b/www-apps/netbox/files/netbox-2.6.4-no-pip.patch
152 deleted file mode 100644
153 index ba281aaea5d..00000000000
154 --- a/www-apps/netbox/files/netbox-2.6.4-no-pip.patch
155 +++ /dev/null
156 @@ -1,21 +0,0 @@
157 -diff --git a/upgrade.sh b/upgrade.sh
158 -index 793e72cd..8490d713 100755
159 ---- a/upgrade.sh
160 -+++ b/upgrade.sh
161 -@@ -10,16 +10,6 @@ cd "$(dirname "$0")"
162 - PYTHON="python3"
163 - PIP="pip3"
164 -
165 --# Uninstall any Python packages which are no longer needed
166 --COMMAND="${PIP} uninstall -r old_requirements.txt -y"
167 --echo "Removing old Python packages ($COMMAND)..."
168 --eval $COMMAND
169 --
170 --# Install any new Python packages
171 --COMMAND="${PIP} install -r requirements.txt --upgrade"
172 --echo "Updating required Python packages ($COMMAND)..."
173 --eval $COMMAND
174 --
175 - # Apply any database migrations
176 - COMMAND="${PYTHON} netbox/manage.py migrate"
177 - echo "Applying database migrations ($COMMAND)..."
178
179 diff --git a/www-apps/netbox/metadata.xml b/www-apps/netbox/metadata.xml
180 index f53806a2283..c36c37139fa 100644
181 --- a/www-apps/netbox/metadata.xml
182 +++ b/www-apps/netbox/metadata.xml
183 @@ -5,7 +5,4 @@
184 <email>williamh@g.o</email>
185 <name>William Hubbs</name>
186 </maintainer>
187 - <use>
188 - <flag name="webhooks">Enable webhooks via django-rq</flag>
189 - </use>
190 </pkgmetadata>
191
192 diff --git a/www-apps/netbox/netbox-2.5.11.ebuild b/www-apps/netbox/netbox-2.5.11.ebuild
193 deleted file mode 100644
194 index 64de819ea05..00000000000
195 --- a/www-apps/netbox/netbox-2.5.11.ebuild
196 +++ /dev/null
197 @@ -1,123 +0,0 @@
198 -# Copyright 1999-2020 Gentoo Authors
199 -# Distributed under the terms of the GNU General Public License v2
200 -
201 -EAPI=7
202 -PYTHON_COMPAT=( python3_6 )
203 -inherit python-single-r1 user readme.gentoo-r1
204 -
205 -DESCRIPTION="IP address and data center infrastructure management tool"
206 -HOMEPAGE="https://github.com/digitalocean/netbox"
207 -SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
208 -
209 -LICENSE="Apache-2.0"
210 -SLOT="0"
211 -KEYWORDS="~amd64"
212 -IUSE="ldap webhooks"
213 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
214 -
215 -RDEPEND="
216 - ${PYTHON_DEPS}
217 - $(python_gen_cond_dep '
218 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
219 - >=dev-python/django-cors-headers-2.4.0[${PYTHON_MULTI_USEDEP}]
220 - >=dev-python/django-debug-toolbar-1.11[${PYTHON_MULTI_USEDEP}]
221 - >=dev-python/django-filter-2.0.0[${PYTHON_MULTI_USEDEP}]
222 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
223 - >=dev-python/django-tables2-2.0.3[${PYTHON_MULTI_USEDEP}]
224 - >=dev-python/django-taggit-0.23.0[${PYTHON_MULTI_USEDEP}]
225 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
226 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
227 - >=dev-python/djangorestframework-3.9.0[${PYTHON_MULTI_USEDEP}]
228 - >=dev-python/drf-yasg-1.14.0[${PYTHON_MULTI_USEDEP},validation]
229 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
230 - >=dev-python/jinja-2.10[${PYTHON_MULTI_USEDEP}]
231 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
232 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
233 - >=dev-python/pillow-5.3.0[${PYTHON_MULTI_USEDEP}]
234 - >=dev-python/psycopg-2.7.6.1[${PYTHON_MULTI_USEDEP}]
235 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
236 - >=dev-python/pycryptodome-3.7.2[${PYTHON_MULTI_USEDEP}]
237 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
238 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
239 - ')
240 - webhooks? ( dev-python/django-rq )"
241 -DEPEND="${RDEPEND}"
242 -
243 -PATCHES=(
244 - "${FILESDIR}"/${P}-no-pip.patch
245 - )
246 -
247 -DISABLE_AUTOFORMATTING=YES
248 -DOC_CONTENTS="
249 -netbox is installed on your system. However, there are some manual steps
250 -you need to complete from the installation guide [1].
251 -
252 -On Gentoo, the configuration files you need to edit are located in
253 -/etc/netbox, not /opt/netbox as shown in the installation guide.
254 -
255 -If this is a new installation, please follow the installation guide
256 -other than this difference. Also, if you need ldap or webhooks, set the
257 -appropriate use flags when you emerge netbox to install the
258 -dependencies.
259 -
260 -Once that is done, you should be able to add the netbox service to the
261 -default runlevel and start it.
262 -
263 -If you have webhooks turned on, you should also add the netbox-rqworker
264 -service to the default runlevel and start it.
265 -
266 -If this is an upgrade, follow these instructions:
267 -
268 -Stop the netbox service. If the netbox-rqworker service is running,
269 -stop it as well.
270 -
271 -Next, run the upgrade script as described in the upgrading guide[2].
272 -
273 -Next, check for new configuration options and set them as appropriate
274 -for your system.
275 -
276 -Next, start the netbox service.
277 -
278 -Finally, if you are using webhooks, start the netbox-rqworker service.
279 -
280 -[1] https://netbox.readthedocs.io/en/stable/installation/
281 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
282 -"
283 -
284 -pkg_setup() {
285 - enewgroup ${PN}
286 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
287 -}
288 -
289 -src_install() {
290 - dodir /opt
291 - cp -a ../${P} "${ED}"/opt
292 - dosym ${P} /opt/netbox
293 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
294 - dosym ../../../../etc/netbox/configuration.py \
295 - /opt/netbox/netbox/netbox/configuration.py
296 - dodir /etc/netbox
297 - insinto /etc/netbox
298 - newins netbox/netbox/configuration.example.py configuration.py
299 - doins "${FILESDIR}"/gunicorn_config.py
300 - fowners -R netbox:netbox /etc/netbox /opt/${P}
301 - fowners -h netbox:netbox /opt/netbox
302 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
303 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
304 - use webhooks &&
305 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
306 - keepdir /var/log/netbox
307 - fowners -R netbox:netbox /var/log/netbox
308 - readme.gentoo_create_doc
309 -}
310 -
311 -pkg_postinst() {
312 - readme.gentoo_print_elog
313 - local r
314 - for r in $REPLACING_VERSIONS; do
315 - if [[ $r = "2.5.10" ]]; then
316 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
317 - ewarn "Please adjust your system."
318 - fi
319 - done
320 -}
321
322 diff --git a/www-apps/netbox/netbox-2.5.12.ebuild b/www-apps/netbox/netbox-2.5.12.ebuild
323 deleted file mode 100644
324 index 64de819ea05..00000000000
325 --- a/www-apps/netbox/netbox-2.5.12.ebuild
326 +++ /dev/null
327 @@ -1,123 +0,0 @@
328 -# Copyright 1999-2020 Gentoo Authors
329 -# Distributed under the terms of the GNU General Public License v2
330 -
331 -EAPI=7
332 -PYTHON_COMPAT=( python3_6 )
333 -inherit python-single-r1 user readme.gentoo-r1
334 -
335 -DESCRIPTION="IP address and data center infrastructure management tool"
336 -HOMEPAGE="https://github.com/digitalocean/netbox"
337 -SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
338 -
339 -LICENSE="Apache-2.0"
340 -SLOT="0"
341 -KEYWORDS="~amd64"
342 -IUSE="ldap webhooks"
343 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
344 -
345 -RDEPEND="
346 - ${PYTHON_DEPS}
347 - $(python_gen_cond_dep '
348 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
349 - >=dev-python/django-cors-headers-2.4.0[${PYTHON_MULTI_USEDEP}]
350 - >=dev-python/django-debug-toolbar-1.11[${PYTHON_MULTI_USEDEP}]
351 - >=dev-python/django-filter-2.0.0[${PYTHON_MULTI_USEDEP}]
352 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
353 - >=dev-python/django-tables2-2.0.3[${PYTHON_MULTI_USEDEP}]
354 - >=dev-python/django-taggit-0.23.0[${PYTHON_MULTI_USEDEP}]
355 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
356 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
357 - >=dev-python/djangorestframework-3.9.0[${PYTHON_MULTI_USEDEP}]
358 - >=dev-python/drf-yasg-1.14.0[${PYTHON_MULTI_USEDEP},validation]
359 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
360 - >=dev-python/jinja-2.10[${PYTHON_MULTI_USEDEP}]
361 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
362 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
363 - >=dev-python/pillow-5.3.0[${PYTHON_MULTI_USEDEP}]
364 - >=dev-python/psycopg-2.7.6.1[${PYTHON_MULTI_USEDEP}]
365 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
366 - >=dev-python/pycryptodome-3.7.2[${PYTHON_MULTI_USEDEP}]
367 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
368 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
369 - ')
370 - webhooks? ( dev-python/django-rq )"
371 -DEPEND="${RDEPEND}"
372 -
373 -PATCHES=(
374 - "${FILESDIR}"/${P}-no-pip.patch
375 - )
376 -
377 -DISABLE_AUTOFORMATTING=YES
378 -DOC_CONTENTS="
379 -netbox is installed on your system. However, there are some manual steps
380 -you need to complete from the installation guide [1].
381 -
382 -On Gentoo, the configuration files you need to edit are located in
383 -/etc/netbox, not /opt/netbox as shown in the installation guide.
384 -
385 -If this is a new installation, please follow the installation guide
386 -other than this difference. Also, if you need ldap or webhooks, set the
387 -appropriate use flags when you emerge netbox to install the
388 -dependencies.
389 -
390 -Once that is done, you should be able to add the netbox service to the
391 -default runlevel and start it.
392 -
393 -If you have webhooks turned on, you should also add the netbox-rqworker
394 -service to the default runlevel and start it.
395 -
396 -If this is an upgrade, follow these instructions:
397 -
398 -Stop the netbox service. If the netbox-rqworker service is running,
399 -stop it as well.
400 -
401 -Next, run the upgrade script as described in the upgrading guide[2].
402 -
403 -Next, check for new configuration options and set them as appropriate
404 -for your system.
405 -
406 -Next, start the netbox service.
407 -
408 -Finally, if you are using webhooks, start the netbox-rqworker service.
409 -
410 -[1] https://netbox.readthedocs.io/en/stable/installation/
411 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
412 -"
413 -
414 -pkg_setup() {
415 - enewgroup ${PN}
416 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
417 -}
418 -
419 -src_install() {
420 - dodir /opt
421 - cp -a ../${P} "${ED}"/opt
422 - dosym ${P} /opt/netbox
423 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
424 - dosym ../../../../etc/netbox/configuration.py \
425 - /opt/netbox/netbox/netbox/configuration.py
426 - dodir /etc/netbox
427 - insinto /etc/netbox
428 - newins netbox/netbox/configuration.example.py configuration.py
429 - doins "${FILESDIR}"/gunicorn_config.py
430 - fowners -R netbox:netbox /etc/netbox /opt/${P}
431 - fowners -h netbox:netbox /opt/netbox
432 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
433 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
434 - use webhooks &&
435 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
436 - keepdir /var/log/netbox
437 - fowners -R netbox:netbox /var/log/netbox
438 - readme.gentoo_create_doc
439 -}
440 -
441 -pkg_postinst() {
442 - readme.gentoo_print_elog
443 - local r
444 - for r in $REPLACING_VERSIONS; do
445 - if [[ $r = "2.5.10" ]]; then
446 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
447 - ewarn "Please adjust your system."
448 - fi
449 - done
450 -}
451
452 diff --git a/www-apps/netbox/netbox-2.6.1.ebuild b/www-apps/netbox/netbox-2.6.1.ebuild
453 deleted file mode 100644
454 index 04c487ccf5f..00000000000
455 --- a/www-apps/netbox/netbox-2.6.1.ebuild
456 +++ /dev/null
457 @@ -1,126 +0,0 @@
458 -# Copyright 1999-2020 Gentoo Authors
459 -# Distributed under the terms of the GNU General Public License v2
460 -
461 -EAPI=7
462 -PYTHON_COMPAT=( python3_6 )
463 -inherit python-single-r1 user readme.gentoo-r1
464 -
465 -DESCRIPTION="IP address and data center infrastructure management tool"
466 -HOMEPAGE="https://github.com/digitalocean/netbox"
467 -SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
468 -
469 -LICENSE="Apache-2.0"
470 -SLOT="0"
471 -KEYWORDS="~amd64"
472 -IUSE="ldap webhooks"
473 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
474 -
475 -RDEPEND="
476 - ${PYTHON_DEPS}
477 - $(python_gen_cond_dep '
478 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
479 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
480 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
481 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
482 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
483 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
484 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
485 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
486 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
487 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
488 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
489 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
490 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
491 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
492 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
493 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
494 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
495 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
496 - >=dev-python/pillow-6.0.0[${PYTHON_MULTI_USEDEP}]
497 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
498 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
499 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
500 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
501 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
502 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
503 - ')"
504 -DEPEND="${RDEPEND}"
505 -
506 -PATCHES=(
507 - "${FILESDIR}"/${P}-no-pip.patch
508 - )
509 -
510 -DISABLE_AUTOFORMATTING=YES
511 -DOC_CONTENTS="
512 -netbox is installed on your system. However, there are some manual steps
513 -you need to complete from the installation guide [1].
514 -
515 -On Gentoo, the configuration files you need to edit are located in
516 -/etc/netbox, not /opt/netbox as shown in the installation guide.
517 -
518 -If this is a new installation, please follow the installation guide
519 -other than this difference. Also, if you need ldap or webhooks, set the
520 -appropriate use flags when you emerge netbox to install the
521 -dependencies.
522 -
523 -Once that is done, you should be able to add the netbox service to the
524 -default runlevel and start it.
525 -
526 -If you have webhooks turned on, you should also add the netbox-rqworker
527 -service to the default runlevel and start it.
528 -
529 -If this is an upgrade, follow these instructions:
530 -
531 -Stop the netbox service. If the netbox-rqworker service is running,
532 -stop it as well.
533 -
534 -Next, run the upgrade script as described in the upgrading guide[2].
535 -
536 -Next, check for new configuration options and set them as appropriate
537 -for your system.
538 -
539 -Next, start the netbox service.
540 -
541 -Finally, if you are using webhooks, start the netbox-rqworker service.
542 -
543 -[1] https://netbox.readthedocs.io/en/stable/installation/
544 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
545 -"
546 -
547 -pkg_setup() {
548 - enewgroup ${PN}
549 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
550 -}
551 -
552 -src_install() {
553 - dodir /opt
554 - cp -a ../${P} "${ED}"/opt
555 - dosym ${P} /opt/netbox
556 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
557 - dosym ../../../../etc/netbox/configuration.py \
558 - /opt/netbox/netbox/netbox/configuration.py
559 - dodir /etc/netbox
560 - insinto /etc/netbox
561 - newins netbox/netbox/configuration.example.py configuration.py
562 - doins "${FILESDIR}"/gunicorn_config.py
563 - fowners -R netbox:netbox /etc/netbox /opt/${P}
564 - fowners -h netbox:netbox /opt/netbox
565 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
566 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
567 - use webhooks &&
568 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
569 - keepdir /var/log/netbox
570 - fowners -R netbox:netbox /var/log/netbox
571 - readme.gentoo_create_doc
572 -}
573 -
574 -pkg_postinst() {
575 - readme.gentoo_print_elog
576 - local r
577 - for r in $REPLACING_VERSIONS; do
578 - if [[ $r = "2.5.10" ]]; then
579 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
580 - ewarn "Please adjust your system."
581 - fi
582 - done
583 -}
584
585 diff --git a/www-apps/netbox/netbox-2.6.12.ebuild b/www-apps/netbox/netbox-2.6.12.ebuild
586 deleted file mode 100644
587 index d6676c7aca5..00000000000
588 --- a/www-apps/netbox/netbox-2.6.12.ebuild
589 +++ /dev/null
590 @@ -1,123 +0,0 @@
591 -# Copyright 1999-2020 Gentoo Authors
592 -# Distributed under the terms of the GNU General Public License v2
593 -
594 -EAPI=7
595 -PYTHON_COMPAT=( python3_6 )
596 -inherit python-single-r1 readme.gentoo-r1
597 -
598 -DESCRIPTION="IP address and data center infrastructure management tool"
599 -HOMEPAGE="https://github.com/netbox-community/netbox"
600 -SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
601 -
602 -LICENSE="Apache-2.0"
603 -SLOT="0"
604 -KEYWORDS="~amd64"
605 -IUSE="ldap webhooks"
606 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
607 -
608 -RDEPEND="
609 - acct-group/netbox
610 - acct-user/netbox
611 - ${PYTHON_DEPS}
612 - $(python_gen_cond_dep '
613 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
614 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
615 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
616 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
617 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
618 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
619 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
620 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
621 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
622 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
623 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
624 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
625 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
626 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
627 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
628 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
629 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
630 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
631 - >=dev-python/pillow-6.2.0[${PYTHON_MULTI_USEDEP}]
632 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
633 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
634 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
635 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
636 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
637 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
638 - ')"
639 -DEPEND="${RDEPEND}"
640 -
641 -PATCHES=(
642 - "${FILESDIR}"/${PN}-2.6.7-no-pip.patch
643 - )
644 -
645 -DISABLE_AUTOFORMATTING=YES
646 -DOC_CONTENTS="
647 -netbox is installed on your system. However, there are some manual steps
648 -you need to complete from the installation guide [1].
649 -
650 -On Gentoo, the configuration files you need to edit are located in
651 -/etc/netbox, not /opt/netbox as shown in the installation guide.
652 -
653 -If this is a new installation, please follow the installation guide
654 -other than this difference. Also, if you need ldap or webhooks, set the
655 -appropriate use flags when you emerge netbox to install the
656 -dependencies.
657 -
658 -Once that is done, you should be able to add the netbox service to the
659 -default runlevel and start it.
660 -
661 -If you have webhooks turned on, you should also add the netbox-rqworker
662 -service to the default runlevel and start it.
663 -
664 -If this is an upgrade, follow these instructions:
665 -
666 -Stop the netbox service. If the netbox-rqworker service is running,
667 -stop it as well.
668 -
669 -Next, run the upgrade script as described in the upgrading guide[2].
670 -
671 -Next, check for new configuration options and set them as appropriate
672 -for your system.
673 -
674 -Next, start the netbox service.
675 -
676 -Finally, if you are using webhooks, start the netbox-rqworker service.
677 -
678 -[1] https://netbox.readthedocs.io/en/stable/installation/
679 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
680 -"
681 -
682 -src_install() {
683 - dodir /opt
684 - cp -a ../${P} "${ED}"/opt
685 - dosym ${P} /opt/netbox
686 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
687 - dosym ../../../../etc/netbox/configuration.py \
688 - /opt/netbox/netbox/netbox/configuration.py
689 - dodir /etc/netbox
690 - insinto /etc/netbox
691 - newins netbox/netbox/configuration.example.py configuration.py
692 - doins "${FILESDIR}"/gunicorn_config.py
693 - fowners -R netbox:netbox /etc/netbox /opt/${P}
694 - fowners -h netbox:netbox /opt/netbox
695 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
696 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
697 - use webhooks &&
698 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
699 - keepdir /var/log/netbox
700 - fowners -R netbox:netbox /var/log/netbox
701 - readme.gentoo_create_doc
702 -}
703 -
704 -pkg_postinst() {
705 - readme.gentoo_print_elog
706 - local r
707 - for r in $REPLACING_VERSIONS; do
708 - if [[ $r = "2.5.10" ]]; then
709 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
710 - ewarn "Please adjust your system."
711 - fi
712 - done
713 -}
714
715 diff --git a/www-apps/netbox/netbox-2.6.4.ebuild b/www-apps/netbox/netbox-2.6.4.ebuild
716 deleted file mode 100644
717 index a060ba59442..00000000000
718 --- a/www-apps/netbox/netbox-2.6.4.ebuild
719 +++ /dev/null
720 @@ -1,126 +0,0 @@
721 -# Copyright 1999-2020 Gentoo Authors
722 -# Distributed under the terms of the GNU General Public License v2
723 -
724 -EAPI=7
725 -PYTHON_COMPAT=( python3_6 )
726 -inherit python-single-r1 user readme.gentoo-r1
727 -
728 -DESCRIPTION="IP address and data center infrastructure management tool"
729 -HOMEPAGE="https://github.com/netbox-community/netbox"
730 -SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
731 -
732 -LICENSE="Apache-2.0"
733 -SLOT="0"
734 -KEYWORDS="~amd64"
735 -IUSE="ldap webhooks"
736 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
737 -
738 -RDEPEND="
739 - ${PYTHON_DEPS}
740 - $(python_gen_cond_dep '
741 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
742 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
743 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
744 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
745 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
746 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
747 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
748 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
749 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
750 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
751 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
752 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
753 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
754 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
755 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
756 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
757 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
758 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
759 - >=dev-python/pillow-6.0.0[${PYTHON_MULTI_USEDEP}]
760 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
761 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
762 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
763 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
764 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
765 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
766 - ')"
767 -DEPEND="${RDEPEND}"
768 -
769 -PATCHES=(
770 - "${FILESDIR}"/${P}-no-pip.patch
771 - )
772 -
773 -DISABLE_AUTOFORMATTING=YES
774 -DOC_CONTENTS="
775 -netbox is installed on your system. However, there are some manual steps
776 -you need to complete from the installation guide [1].
777 -
778 -On Gentoo, the configuration files you need to edit are located in
779 -/etc/netbox, not /opt/netbox as shown in the installation guide.
780 -
781 -If this is a new installation, please follow the installation guide
782 -other than this difference. Also, if you need ldap or webhooks, set the
783 -appropriate use flags when you emerge netbox to install the
784 -dependencies.
785 -
786 -Once that is done, you should be able to add the netbox service to the
787 -default runlevel and start it.
788 -
789 -If you have webhooks turned on, you should also add the netbox-rqworker
790 -service to the default runlevel and start it.
791 -
792 -If this is an upgrade, follow these instructions:
793 -
794 -Stop the netbox service. If the netbox-rqworker service is running,
795 -stop it as well.
796 -
797 -Next, run the upgrade script as described in the upgrading guide[2].
798 -
799 -Next, check for new configuration options and set them as appropriate
800 -for your system.
801 -
802 -Next, start the netbox service.
803 -
804 -Finally, if you are using webhooks, start the netbox-rqworker service.
805 -
806 -[1] https://netbox.readthedocs.io/en/stable/installation/
807 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
808 -"
809 -
810 -pkg_setup() {
811 - enewgroup ${PN}
812 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
813 -}
814 -
815 -src_install() {
816 - dodir /opt
817 - cp -a ../${P} "${ED}"/opt
818 - dosym ${P} /opt/netbox
819 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
820 - dosym ../../../../etc/netbox/configuration.py \
821 - /opt/netbox/netbox/netbox/configuration.py
822 - dodir /etc/netbox
823 - insinto /etc/netbox
824 - newins netbox/netbox/configuration.example.py configuration.py
825 - doins "${FILESDIR}"/gunicorn_config.py
826 - fowners -R netbox:netbox /etc/netbox /opt/${P}
827 - fowners -h netbox:netbox /opt/netbox
828 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
829 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
830 - use webhooks &&
831 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
832 - keepdir /var/log/netbox
833 - fowners -R netbox:netbox /var/log/netbox
834 - readme.gentoo_create_doc
835 -}
836 -
837 -pkg_postinst() {
838 - readme.gentoo_print_elog
839 - local r
840 - for r in $REPLACING_VERSIONS; do
841 - if [[ $r = "2.5.10" ]]; then
842 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
843 - ewarn "Please adjust your system."
844 - fi
845 - done
846 -}
847
848 diff --git a/www-apps/netbox/netbox-2.6.5.ebuild b/www-apps/netbox/netbox-2.6.5.ebuild
849 deleted file mode 100644
850 index c9b078880e5..00000000000
851 --- a/www-apps/netbox/netbox-2.6.5.ebuild
852 +++ /dev/null
853 @@ -1,126 +0,0 @@
854 -# Copyright 1999-2020 Gentoo Authors
855 -# Distributed under the terms of the GNU General Public License v2
856 -
857 -EAPI=7
858 -PYTHON_COMPAT=( python3_6 )
859 -inherit python-single-r1 user readme.gentoo-r1
860 -
861 -DESCRIPTION="IP address and data center infrastructure management tool"
862 -HOMEPAGE="https://github.com/netbox-community/netbox"
863 -SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
864 -
865 -LICENSE="Apache-2.0"
866 -SLOT="0"
867 -KEYWORDS="~amd64"
868 -IUSE="ldap webhooks"
869 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
870 -
871 -RDEPEND="
872 - ${PYTHON_DEPS}
873 - $(python_gen_cond_dep '
874 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
875 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
876 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
877 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
878 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
879 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
880 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
881 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
882 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
883 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
884 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
885 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
886 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
887 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
888 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
889 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
890 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
891 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
892 - >=dev-python/pillow-6.0.0[${PYTHON_MULTI_USEDEP}]
893 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
894 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
895 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
896 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
897 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
898 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
899 - ')"
900 -DEPEND="${RDEPEND}"
901 -
902 -PATCHES=(
903 - "${FILESDIR}"/${PN}-2.6.4-no-pip.patch
904 - )
905 -
906 -DISABLE_AUTOFORMATTING=YES
907 -DOC_CONTENTS="
908 -netbox is installed on your system. However, there are some manual steps
909 -you need to complete from the installation guide [1].
910 -
911 -On Gentoo, the configuration files you need to edit are located in
912 -/etc/netbox, not /opt/netbox as shown in the installation guide.
913 -
914 -If this is a new installation, please follow the installation guide
915 -other than this difference. Also, if you need ldap or webhooks, set the
916 -appropriate use flags when you emerge netbox to install the
917 -dependencies.
918 -
919 -Once that is done, you should be able to add the netbox service to the
920 -default runlevel and start it.
921 -
922 -If you have webhooks turned on, you should also add the netbox-rqworker
923 -service to the default runlevel and start it.
924 -
925 -If this is an upgrade, follow these instructions:
926 -
927 -Stop the netbox service. If the netbox-rqworker service is running,
928 -stop it as well.
929 -
930 -Next, run the upgrade script as described in the upgrading guide[2].
931 -
932 -Next, check for new configuration options and set them as appropriate
933 -for your system.
934 -
935 -Next, start the netbox service.
936 -
937 -Finally, if you are using webhooks, start the netbox-rqworker service.
938 -
939 -[1] https://netbox.readthedocs.io/en/stable/installation/
940 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
941 -"
942 -
943 -pkg_setup() {
944 - enewgroup ${PN}
945 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
946 -}
947 -
948 -src_install() {
949 - dodir /opt
950 - cp -a ../${P} "${ED}"/opt
951 - dosym ${P} /opt/netbox
952 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
953 - dosym ../../../../etc/netbox/configuration.py \
954 - /opt/netbox/netbox/netbox/configuration.py
955 - dodir /etc/netbox
956 - insinto /etc/netbox
957 - newins netbox/netbox/configuration.example.py configuration.py
958 - doins "${FILESDIR}"/gunicorn_config.py
959 - fowners -R netbox:netbox /etc/netbox /opt/${P}
960 - fowners -h netbox:netbox /opt/netbox
961 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
962 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
963 - use webhooks &&
964 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
965 - keepdir /var/log/netbox
966 - fowners -R netbox:netbox /var/log/netbox
967 - readme.gentoo_create_doc
968 -}
969 -
970 -pkg_postinst() {
971 - readme.gentoo_print_elog
972 - local r
973 - for r in $REPLACING_VERSIONS; do
974 - if [[ $r = "2.5.10" ]]; then
975 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
976 - ewarn "Please adjust your system."
977 - fi
978 - done
979 -}
980
981 diff --git a/www-apps/netbox/netbox-2.6.6.ebuild b/www-apps/netbox/netbox-2.6.6.ebuild
982 deleted file mode 100644
983 index c9b078880e5..00000000000
984 --- a/www-apps/netbox/netbox-2.6.6.ebuild
985 +++ /dev/null
986 @@ -1,126 +0,0 @@
987 -# Copyright 1999-2020 Gentoo Authors
988 -# Distributed under the terms of the GNU General Public License v2
989 -
990 -EAPI=7
991 -PYTHON_COMPAT=( python3_6 )
992 -inherit python-single-r1 user readme.gentoo-r1
993 -
994 -DESCRIPTION="IP address and data center infrastructure management tool"
995 -HOMEPAGE="https://github.com/netbox-community/netbox"
996 -SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
997 -
998 -LICENSE="Apache-2.0"
999 -SLOT="0"
1000 -KEYWORDS="~amd64"
1001 -IUSE="ldap webhooks"
1002 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
1003 -
1004 -RDEPEND="
1005 - ${PYTHON_DEPS}
1006 - $(python_gen_cond_dep '
1007 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
1008 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
1009 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
1010 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
1011 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
1012 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
1013 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
1014 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
1015 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
1016 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
1017 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
1018 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
1019 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
1020 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
1021 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
1022 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
1023 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
1024 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
1025 - >=dev-python/pillow-6.0.0[${PYTHON_MULTI_USEDEP}]
1026 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
1027 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
1028 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
1029 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
1030 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
1031 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
1032 - ')"
1033 -DEPEND="${RDEPEND}"
1034 -
1035 -PATCHES=(
1036 - "${FILESDIR}"/${PN}-2.6.4-no-pip.patch
1037 - )
1038 -
1039 -DISABLE_AUTOFORMATTING=YES
1040 -DOC_CONTENTS="
1041 -netbox is installed on your system. However, there are some manual steps
1042 -you need to complete from the installation guide [1].
1043 -
1044 -On Gentoo, the configuration files you need to edit are located in
1045 -/etc/netbox, not /opt/netbox as shown in the installation guide.
1046 -
1047 -If this is a new installation, please follow the installation guide
1048 -other than this difference. Also, if you need ldap or webhooks, set the
1049 -appropriate use flags when you emerge netbox to install the
1050 -dependencies.
1051 -
1052 -Once that is done, you should be able to add the netbox service to the
1053 -default runlevel and start it.
1054 -
1055 -If you have webhooks turned on, you should also add the netbox-rqworker
1056 -service to the default runlevel and start it.
1057 -
1058 -If this is an upgrade, follow these instructions:
1059 -
1060 -Stop the netbox service. If the netbox-rqworker service is running,
1061 -stop it as well.
1062 -
1063 -Next, run the upgrade script as described in the upgrading guide[2].
1064 -
1065 -Next, check for new configuration options and set them as appropriate
1066 -for your system.
1067 -
1068 -Next, start the netbox service.
1069 -
1070 -Finally, if you are using webhooks, start the netbox-rqworker service.
1071 -
1072 -[1] https://netbox.readthedocs.io/en/stable/installation/
1073 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
1074 -"
1075 -
1076 -pkg_setup() {
1077 - enewgroup ${PN}
1078 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
1079 -}
1080 -
1081 -src_install() {
1082 - dodir /opt
1083 - cp -a ../${P} "${ED}"/opt
1084 - dosym ${P} /opt/netbox
1085 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
1086 - dosym ../../../../etc/netbox/configuration.py \
1087 - /opt/netbox/netbox/netbox/configuration.py
1088 - dodir /etc/netbox
1089 - insinto /etc/netbox
1090 - newins netbox/netbox/configuration.example.py configuration.py
1091 - doins "${FILESDIR}"/gunicorn_config.py
1092 - fowners -R netbox:netbox /etc/netbox /opt/${P}
1093 - fowners -h netbox:netbox /opt/netbox
1094 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
1095 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
1096 - use webhooks &&
1097 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
1098 - keepdir /var/log/netbox
1099 - fowners -R netbox:netbox /var/log/netbox
1100 - readme.gentoo_create_doc
1101 -}
1102 -
1103 -pkg_postinst() {
1104 - readme.gentoo_print_elog
1105 - local r
1106 - for r in $REPLACING_VERSIONS; do
1107 - if [[ $r = "2.5.10" ]]; then
1108 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
1109 - ewarn "Please adjust your system."
1110 - fi
1111 - done
1112 -}
1113
1114 diff --git a/www-apps/netbox/netbox-2.6.7.ebuild b/www-apps/netbox/netbox-2.6.7.ebuild
1115 deleted file mode 100644
1116 index 748180d6cc2..00000000000
1117 --- a/www-apps/netbox/netbox-2.6.7.ebuild
1118 +++ /dev/null
1119 @@ -1,126 +0,0 @@
1120 -# Copyright 1999-2020 Gentoo Authors
1121 -# Distributed under the terms of the GNU General Public License v2
1122 -
1123 -EAPI=7
1124 -PYTHON_COMPAT=( python3_6 )
1125 -inherit python-single-r1 user readme.gentoo-r1
1126 -
1127 -DESCRIPTION="IP address and data center infrastructure management tool"
1128 -HOMEPAGE="https://github.com/netbox-community/netbox"
1129 -SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
1130 -
1131 -LICENSE="Apache-2.0"
1132 -SLOT="0"
1133 -KEYWORDS="~amd64"
1134 -IUSE="ldap webhooks"
1135 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
1136 -
1137 -RDEPEND="
1138 - ${PYTHON_DEPS}
1139 - $(python_gen_cond_dep '
1140 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
1141 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
1142 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
1143 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
1144 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
1145 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
1146 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
1147 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
1148 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
1149 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
1150 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
1151 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
1152 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
1153 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
1154 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
1155 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
1156 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
1157 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
1158 - >=dev-python/pillow-6.2.0[${PYTHON_MULTI_USEDEP}]
1159 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
1160 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
1161 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
1162 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
1163 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
1164 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
1165 - ')"
1166 -DEPEND="${RDEPEND}"
1167 -
1168 -PATCHES=(
1169 - "${FILESDIR}"/${P}-no-pip.patch
1170 - )
1171 -
1172 -DISABLE_AUTOFORMATTING=YES
1173 -DOC_CONTENTS="
1174 -netbox is installed on your system. However, there are some manual steps
1175 -you need to complete from the installation guide [1].
1176 -
1177 -On Gentoo, the configuration files you need to edit are located in
1178 -/etc/netbox, not /opt/netbox as shown in the installation guide.
1179 -
1180 -If this is a new installation, please follow the installation guide
1181 -other than this difference. Also, if you need ldap or webhooks, set the
1182 -appropriate use flags when you emerge netbox to install the
1183 -dependencies.
1184 -
1185 -Once that is done, you should be able to add the netbox service to the
1186 -default runlevel and start it.
1187 -
1188 -If you have webhooks turned on, you should also add the netbox-rqworker
1189 -service to the default runlevel and start it.
1190 -
1191 -If this is an upgrade, follow these instructions:
1192 -
1193 -Stop the netbox service. If the netbox-rqworker service is running,
1194 -stop it as well.
1195 -
1196 -Next, run the upgrade script as described in the upgrading guide[2].
1197 -
1198 -Next, check for new configuration options and set them as appropriate
1199 -for your system.
1200 -
1201 -Next, start the netbox service.
1202 -
1203 -Finally, if you are using webhooks, start the netbox-rqworker service.
1204 -
1205 -[1] https://netbox.readthedocs.io/en/stable/installation/
1206 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
1207 -"
1208 -
1209 -pkg_setup() {
1210 - enewgroup ${PN}
1211 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
1212 -}
1213 -
1214 -src_install() {
1215 - dodir /opt
1216 - cp -a ../${P} "${ED}"/opt
1217 - dosym ${P} /opt/netbox
1218 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
1219 - dosym ../../../../etc/netbox/configuration.py \
1220 - /opt/netbox/netbox/netbox/configuration.py
1221 - dodir /etc/netbox
1222 - insinto /etc/netbox
1223 - newins netbox/netbox/configuration.example.py configuration.py
1224 - doins "${FILESDIR}"/gunicorn_config.py
1225 - fowners -R netbox:netbox /etc/netbox /opt/${P}
1226 - fowners -h netbox:netbox /opt/netbox
1227 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
1228 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
1229 - use webhooks &&
1230 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
1231 - keepdir /var/log/netbox
1232 - fowners -R netbox:netbox /var/log/netbox
1233 - readme.gentoo_create_doc
1234 -}
1235 -
1236 -pkg_postinst() {
1237 - readme.gentoo_print_elog
1238 - local r
1239 - for r in $REPLACING_VERSIONS; do
1240 - if [[ $r = "2.5.10" ]]; then
1241 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
1242 - ewarn "Please adjust your system."
1243 - fi
1244 - done
1245 -}
1246
1247 diff --git a/www-apps/netbox/netbox-2.6.8.ebuild b/www-apps/netbox/netbox-2.6.8.ebuild
1248 deleted file mode 100644
1249 index 233c4920008..00000000000
1250 --- a/www-apps/netbox/netbox-2.6.8.ebuild
1251 +++ /dev/null
1252 @@ -1,126 +0,0 @@
1253 -# Copyright 1999-2020 Gentoo Authors
1254 -# Distributed under the terms of the GNU General Public License v2
1255 -
1256 -EAPI=7
1257 -PYTHON_COMPAT=( python3_6 )
1258 -inherit python-single-r1 user readme.gentoo-r1
1259 -
1260 -DESCRIPTION="IP address and data center infrastructure management tool"
1261 -HOMEPAGE="https://github.com/netbox-community/netbox"
1262 -SRC_URI="https://github.com/netbox-community/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
1263 -
1264 -LICENSE="Apache-2.0"
1265 -SLOT="0"
1266 -KEYWORDS="~amd64"
1267 -IUSE="ldap webhooks"
1268 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
1269 -
1270 -RDEPEND="
1271 - ${PYTHON_DEPS}
1272 - $(python_gen_cond_dep '
1273 - >=dev-python/django-2.2[${PYTHON_MULTI_USEDEP}]
1274 - >=dev-python/django-cacheops-4.1[${PYTHON_MULTI_USEDEP}]
1275 - >=dev-python/django-cors-headers-3.0.2[${PYTHON_MULTI_USEDEP}]
1276 - >=dev-python/django-debug-toolbar-2.0[${PYTHON_MULTI_USEDEP}]
1277 - >=dev-python/django-filter-2.1.0[${PYTHON_MULTI_USEDEP}]
1278 - >=dev-python/django-mptt-0.9.1[${PYTHON_MULTI_USEDEP}]
1279 - >=dev-python/django-prometheus-1.0.15[${PYTHON_MULTI_USEDEP}]
1280 - >=dev-python/django-tables2-2.0.6[${PYTHON_MULTI_USEDEP}]
1281 - >=dev-python/django-taggit-1.1.0[${PYTHON_MULTI_USEDEP}]
1282 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_MULTI_USEDEP}]
1283 - >=dev-python/django-timezone-field-3.0[${PYTHON_MULTI_USEDEP}]
1284 - >=dev-python/djangorestframework-3.9.4[${PYTHON_MULTI_USEDEP}]
1285 - >=dev-python/drf-yasg-1.16.0[${PYTHON_MULTI_USEDEP},validation]
1286 - >=dev-python/graphviz-0.10.1[${PYTHON_MULTI_USEDEP}]
1287 - >=dev-python/jinja-2.10.1[${PYTHON_MULTI_USEDEP}]
1288 - >=dev-python/markdown-2.6.11[${PYTHON_MULTI_USEDEP}]
1289 - <dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}]
1290 - >=dev-python/netaddr-0.7.19[${PYTHON_MULTI_USEDEP}]
1291 - >=dev-python/pillow-6.2.0[${PYTHON_MULTI_USEDEP}]
1292 - >=dev-python/psycopg-2.8.3[${PYTHON_MULTI_USEDEP}]
1293 - >=dev-python/py-gfm-0.1.4[${PYTHON_MULTI_USEDEP}]
1294 - >=dev-python/pycryptodome-3.8.2[${PYTHON_MULTI_USEDEP}]
1295 - www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
1296 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_MULTI_USEDEP}] )
1297 - webhooks? ( >=dev-python/django-rq-2.1.0[${PYTHON_MULTI_USEDEP}] )
1298 - ')"
1299 -DEPEND="${RDEPEND}"
1300 -
1301 -PATCHES=(
1302 - "${FILESDIR}"/${PN}-2.6.7-no-pip.patch
1303 - )
1304 -
1305 -DISABLE_AUTOFORMATTING=YES
1306 -DOC_CONTENTS="
1307 -netbox is installed on your system. However, there are some manual steps
1308 -you need to complete from the installation guide [1].
1309 -
1310 -On Gentoo, the configuration files you need to edit are located in
1311 -/etc/netbox, not /opt/netbox as shown in the installation guide.
1312 -
1313 -If this is a new installation, please follow the installation guide
1314 -other than this difference. Also, if you need ldap or webhooks, set the
1315 -appropriate use flags when you emerge netbox to install the
1316 -dependencies.
1317 -
1318 -Once that is done, you should be able to add the netbox service to the
1319 -default runlevel and start it.
1320 -
1321 -If you have webhooks turned on, you should also add the netbox-rqworker
1322 -service to the default runlevel and start it.
1323 -
1324 -If this is an upgrade, follow these instructions:
1325 -
1326 -Stop the netbox service. If the netbox-rqworker service is running,
1327 -stop it as well.
1328 -
1329 -Next, run the upgrade script as described in the upgrading guide[2].
1330 -
1331 -Next, check for new configuration options and set them as appropriate
1332 -for your system.
1333 -
1334 -Next, start the netbox service.
1335 -
1336 -Finally, if you are using webhooks, start the netbox-rqworker service.
1337 -
1338 -[1] https://netbox.readthedocs.io/en/stable/installation/
1339 -[2] https://netbox.readthedocs.io/en/stable/installation/upgrading/
1340 -"
1341 -
1342 -pkg_setup() {
1343 - enewgroup ${PN}
1344 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
1345 -}
1346 -
1347 -src_install() {
1348 - dodir /opt
1349 - cp -a ../${P} "${ED}"/opt
1350 - dosym ${P} /opt/netbox
1351 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
1352 - dosym ../../../../etc/netbox/configuration.py \
1353 - /opt/netbox/netbox/netbox/configuration.py
1354 - dodir /etc/netbox
1355 - insinto /etc/netbox
1356 - newins netbox/netbox/configuration.example.py configuration.py
1357 - doins "${FILESDIR}"/gunicorn_config.py
1358 - fowners -R netbox:netbox /etc/netbox /opt/${P}
1359 - fowners -h netbox:netbox /opt/netbox
1360 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
1361 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
1362 - use webhooks &&
1363 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
1364 - keepdir /var/log/netbox
1365 - fowners -R netbox:netbox /var/log/netbox
1366 - readme.gentoo_create_doc
1367 -}
1368 -
1369 -pkg_postinst() {
1370 - readme.gentoo_print_elog
1371 - local r
1372 - for r in $REPLACING_VERSIONS; do
1373 - if [[ $r = "2.5.10" ]]; then
1374 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
1375 - ewarn "Please adjust your system."
1376 - fi
1377 - done
1378 -}