Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/netbox/files/, www-apps/netbox/
Date: Wed, 01 May 2019 21:59:43
Message-Id: 1556747956.a00e5db4ee7f280d7744e3d116c815caccdf777f.williamh@gentoo
1 commit: a00e5db4ee7f280d7744e3d116c815caccdf777f
2 Author: William Hubbs <william.hubbs <AT> sony <DOT> com>
3 AuthorDate: Wed May 1 21:59:00 2019 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed May 1 21:59:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a00e5db4
7
8 www-apps/netbox: remove 2.5.10
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
13
14 www-apps/netbox/Manifest | 1 -
15 www-apps/netbox/files/netbox-2.5.10-no-pip.patch | 27 ------
16 www-apps/netbox/netbox-2.5.10-r1.ebuild | 107 -----------------------
17 www-apps/netbox/netbox-2.5.10.ebuild | 100 ---------------------
18 4 files changed, 235 deletions(-)
19
20 diff --git a/www-apps/netbox/Manifest b/www-apps/netbox/Manifest
21 index fedbeb9fccb..70891e41ba8 100644
22 --- a/www-apps/netbox/Manifest
23 +++ b/www-apps/netbox/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST netbox-2.5.10.tar.gz 2363340 BLAKE2B 9bc946398ac75b585f2bc6fdb01bfb7545c92ccbb239e9ac0309b66be435134a87cde5fcf876cec4c3354e7aedf5af1d9e1976574689dfb0af34404e9c9f907f SHA512 ed71b0efaffd8bad6e53f7b281d1933234161f031110fa901e1b789a964f000f2ff13897685e79193cbee9294c1f50b8c6edef7d0ef6f829a7357640c8034525
26 DIST netbox-2.5.11.tar.gz 2364831 BLAKE2B e5117b2d4c3f33b231715a8b192e7954dc0611fcb270937c5c8abda3abc9f9925bd7db2c7306847428b5a24014d0c0b07ee404294b389a708d0dc7963c250691 SHA512 dfd19af01bf096ee7d8790981853d7e94d8926a4f0eeb00a061f805d56486670c058752b9a9fb23882b0b8d33e4a2d62f50a35b56c28eb2782be47e6f4b13b7d
27 DIST netbox-2.5.12.tar.gz 2364874 BLAKE2B efe1360fd7c1105e5c6010ee22a882fb4fc796ff0f907974984dba35a0ab6da7724fd6042b102cebe3e3e291c3a1c65c347a5967edbaf443ece6fe61648a93be SHA512 e105a351f1150139c5bce36527ea650f95504ccc1c7b6a82c41396d69bc8671758cc3b33789c95c81785c5ff54d34c7310cd3e03e65bd006606e85021dcd1795
28
29 diff --git a/www-apps/netbox/files/netbox-2.5.10-no-pip.patch b/www-apps/netbox/files/netbox-2.5.10-no-pip.patch
30 deleted file mode 100644
31 index 5d1fa595f4e..00000000000
32 --- a/www-apps/netbox/files/netbox-2.5.10-no-pip.patch
33 +++ /dev/null
34 @@ -1,27 +0,0 @@
35 -diff --git a/upgrade.sh b/upgrade.sh
36 -index 24e79f5b..248e1cb5 100755
37 ---- a/upgrade.sh
38 -+++ b/upgrade.sh
39 -@@ -8,22 +8,6 @@
40 - PYTHON="python3"
41 - PIP="pip3"
42 -
43 --# TODO: Remove this in v2.6 as it is no longer needed under Python 3
44 --# Delete stale bytecode
45 --COMMAND="find . -name \"*.pyc\" -delete"
46 --echo "Cleaning up stale Python bytecode ($COMMAND)..."
47 --eval $COMMAND
48 --
49 --# Uninstall any Python packages which are no longer needed
50 --COMMAND="${PIP} uninstall -r old_requirements.txt -y"
51 --echo "Removing old Python packages ($COMMAND)..."
52 --eval $COMMAND
53 --
54 --# Install any new Python packages
55 --COMMAND="${PIP} install -r requirements.txt --upgrade"
56 --echo "Updating required Python packages ($COMMAND)..."
57 --eval $COMMAND
58 --
59 - # Apply any database migrations
60 - COMMAND="${PYTHON} netbox/manage.py migrate"
61 - echo "Applying database migrations ($COMMAND)..."
62
63 diff --git a/www-apps/netbox/netbox-2.5.10-r1.ebuild b/www-apps/netbox/netbox-2.5.10-r1.ebuild
64 deleted file mode 100644
65 index c12e3feb2dc..00000000000
66 --- a/www-apps/netbox/netbox-2.5.10-r1.ebuild
67 +++ /dev/null
68 @@ -1,107 +0,0 @@
69 -# Copyright 1999-2019 Gentoo Authors
70 -# Distributed under the terms of the GNU General Public License v2
71 -
72 -EAPI=7
73 -PYTHON_COMPAT=( python3_6 )
74 -inherit python-single-r1 user readme.gentoo-r1
75 -
76 -DESCRIPTION="IP address and data center infrastructure management tool"
77 -HOMEPAGE="https://github.com/digitalocean/netbox"
78 -SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
79 -
80 -LICENSE="Apache-2.0"
81 -SLOT="0"
82 -KEYWORDS="~amd64"
83 -IUSE="ldap webhooks"
84 -
85 -RDEPEND=">=dev-python/django-2.1.5[${PYTHON_USEDEP}]
86 - >=dev-python/django-cors-headers-2.4.0[${PYTHON_USEDEP}]
87 - >=dev-python/django-debug-toolbar-1.11[${PYTHON_USEDEP}]
88 - >=dev-python/django-filter-2.0.0[${PYTHON_USEDEP}]
89 - >=dev-python/django-mptt-0.9.1[${PYTHON_USEDEP}]
90 - >=dev-python/django-tables2-2.0.3[${PYTHON_USEDEP}]
91 - >=dev-python/django-taggit-0.23.0[${PYTHON_USEDEP}]
92 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_USEDEP}]
93 - >=dev-python/django-timezone-field-3.0[${PYTHON_USEDEP}]
94 - >=dev-python/djangorestframework-3.9.0[${PYTHON_USEDEP}]
95 - >=dev-python/drf-yasg-1.14.0[${PYTHON_USEDEP},validation]
96 - >=dev-python/graphviz-0.10.1[${PYTHON_USEDEP}]
97 - >=dev-python/jinja-2.10[${PYTHON_USEDEP}]
98 - >=dev-python/markdown-2.6.11[${PYTHON_USEDEP}]
99 - >=dev-python/netaddr-0.7.19[${PYTHON_USEDEP}]
100 - >=dev-python/pillow-5.3.0[${PYTHON_USEDEP}]
101 - >=dev-python/psycopg-2.7.6.1[${PYTHON_USEDEP}]
102 - >=dev-python/py-gfm-0.1.4[${PYTHON_USEDEP}]
103 - >=dev-python/pycryptodome-3.7.2[${PYTHON_USEDEP}]
104 - www-servers/gunicorn[${PYTHON_USEDEP}]
105 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_USEDEP}] )
106 - webhooks? ( dev-python/django-rq )"
107 -DEPEND="${RDEPEND}"
108 -
109 -PATCHES=(
110 - "${FILESDIR}"/${P}-no-pip.patch
111 - )
112 -
113 -DISABLE_AUTOFORMATTING=YES
114 -DOC_CONTENTS="
115 -netbox is installed on your system. However, there are some manual steps
116 -you need to complete.
117 -
118 -If this is a new installation, please follow these instructions:
119 -
120 -From the installation instructions [1], you need to configure postgres
121 -ldap and webhooks if you want to use them. Then, you need to
122 -configure and install a web server. Gunicorn is already installed, so
123 -skip that step.
124 -
125 -Once that is done, you should be able to add the netbox service to the
126 -default runlevel and start it.
127 -
128 -If you have webhooks turned on, you should also add the netbox-rqworker
129 - to the default runlevel and start it.
130 -
131 -The files you need to edit are located in /etc/netbox, not /opt/netbox,
132 -as shown in the installation instructions.
133 -
134 -If this is an upgrade, you just need to stop the netbox service,
135 - run the /opt/netbox/upgrade.sh script, check for new configuration
136 - options in the installation documentation [1] then restart the
137 - service.
138 -
139 -[1] https://netbox.readthedocs.io/en/stable/installation/
140 -"
141 -
142 -pkg_setup() {
143 - enewgroup ${PN}
144 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
145 -}
146 -
147 -src_install() {
148 - dodir /opt
149 - cp -a ../${P} "${ED}"/opt
150 - dosym ${P} /opt/netbox
151 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
152 - dosym ../../../../etc/netbox/configuration.py \
153 - /opt/netbox/netbox/netbox/configuration.py
154 - dodir /etc/netbox
155 - insinto /etc/netbox
156 - newins netbox/netbox/configuration.example.py configuration.py
157 - doins "${FILESDIR}"/gunicorn_config.py
158 - fowners -R netbox:netbox /etc/netbox
159 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
160 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
161 - use webhooks &&
162 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
163 - readme.gentoo_create_doc
164 -}
165 -
166 -pkg_postinst() {
167 - readme.gentoo_print_elog
168 - local r
169 - for r in $REPLACING_VERSIONS; do
170 - if [[ $r = "2.5.10" ]]; then
171 - ewarn "The home directory of the netbox user is now /var/lib/netbox"
172 - ewarn "Please adjust your system."
173 - fi
174 - done
175 -}
176
177 diff --git a/www-apps/netbox/netbox-2.5.10.ebuild b/www-apps/netbox/netbox-2.5.10.ebuild
178 deleted file mode 100644
179 index efa1ca65e92..00000000000
180 --- a/www-apps/netbox/netbox-2.5.10.ebuild
181 +++ /dev/null
182 @@ -1,100 +0,0 @@
183 -# Copyright 1999-2019 Gentoo Authors
184 -# Distributed under the terms of the GNU General Public License v2
185 -
186 -EAPI=7
187 -PYTHON_COMPAT=( python3_6 )
188 -inherit python-single-r1 user readme.gentoo-r1
189 -
190 -DESCRIPTION="IP address and data center infrastructure management tool"
191 -HOMEPAGE="https://github.com/digitalocean/netbox"
192 -SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
193 -
194 -LICENSE="Apache-2.0"
195 -SLOT="0"
196 -KEYWORDS="~amd64"
197 -IUSE="ldap webhooks"
198 -
199 -RDEPEND=">=dev-python/django-2.1.5[${PYTHON_USEDEP}]
200 - >=dev-python/django-cors-headers-2.4.0[${PYTHON_USEDEP}]
201 - >=dev-python/django-debug-toolbar-1.11[${PYTHON_USEDEP}]
202 - >=dev-python/django-filter-2.0.0[${PYTHON_USEDEP}]
203 - >=dev-python/django-mptt-0.9.1[${PYTHON_USEDEP}]
204 - >=dev-python/django-tables2-2.0.3[${PYTHON_USEDEP}]
205 - >=dev-python/django-taggit-0.23.0[${PYTHON_USEDEP}]
206 - >=dev-python/django-taggit-serializer-0.1.7[${PYTHON_USEDEP}]
207 - >=dev-python/django-timezone-field-3.0[${PYTHON_USEDEP}]
208 - >=dev-python/djangorestframework-3.9.0[${PYTHON_USEDEP}]
209 - >=dev-python/drf-yasg-1.14.0[${PYTHON_USEDEP},validation]
210 - >=dev-python/graphviz-0.10.1[${PYTHON_USEDEP}]
211 - >=dev-python/jinja-2.10[${PYTHON_USEDEP}]
212 - >=dev-python/markdown-2.6.11[${PYTHON_USEDEP}]
213 - >=dev-python/netaddr-0.7.19[${PYTHON_USEDEP}]
214 - >=dev-python/pillow-5.3.0[${PYTHON_USEDEP}]
215 - >=dev-python/psycopg-2.7.6.1[${PYTHON_USEDEP}]
216 - >=dev-python/py-gfm-0.1.4[${PYTHON_USEDEP}]
217 - >=dev-python/pycryptodome-3.7.2[${PYTHON_USEDEP}]
218 - www-servers/gunicorn[${PYTHON_USEDEP}]
219 - ldap? ( >=dev-python/django-auth-ldap-1.7[${PYTHON_USEDEP}] )
220 - webhooks? ( dev-python/django-rq )"
221 -DEPEND="${RDEPEND}"
222 -
223 -PATCHES=(
224 - "${FILESDIR}"/${P}-no-pip.patch
225 - )
226 -
227 -DISABLE_AUTOFORMATTING=YES
228 -DOC_CONTENTS="
229 -netbox is installed on your system. However, there are some manual steps
230 -you need to complete.
231 -
232 -If this is a new installation, please follow these instructions:
233 -
234 -From the installation instructions [1], you need to configure postgres
235 -ldap and webhooks if you want to use them. Then, you need to
236 -configure and install a web server. Gunicorn is already installed, so
237 -skip that step.
238 -
239 -Once that is done, you should be able to add the netbox service to the
240 -default runlevel and start it.
241 -
242 -If you have webhooks turned on, you should also add the netbox-rqworker
243 - to the default runlevel and start it.
244 -
245 -The files you need to edit are located in /etc/netbox, not /opt/netbox,
246 -as shown in the installation instructions.
247 -
248 -If this is an upgrade, you just need to stop the netbox service,
249 - run the /opt/netbox/upgrade.sh script, check for new configuration
250 - options in the installation documentation [1] then restart the
251 - service.
252 -
253 -[1] https://netbox.readthedocs.io/en/stable/installation/
254 -"
255 -
256 -pkg_setup() {
257 - enewgroup ${PN}
258 - enewuser ${PN} -1 -1 /opt/${PN} ${PN}
259 -}
260 -
261 -src_install() {
262 - dodir /opt
263 - cp -a ../${P} "${ED}"/opt
264 - dosym ${P} /opt/netbox
265 -dosym ../../etc/netbox/gunicorn_config.py /opt/netbox/gunicorn_config.py
266 - dosym ../../../../etc/netbox/configuration.py \
267 - /opt/netbox/netbox/netbox/configuration.py
268 - dodir /etc/netbox
269 - insinto /etc/netbox
270 - newins netbox/netbox/configuration.example.py configuration.py
271 - doins "${FILESDIR}"/gunicorn_config.py
272 - fowners -R netbox:netbox /etc/netbox
273 - fperms o= /etc/netbox/configuration.py /etc/netbox/gunicorn_config.py
274 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
275 - use webhooks &&
276 - newinitd "${FILESDIR}"/${PN}-rqworker.initd ${PN}-rqworker
277 - readme.gentoo_create_doc
278 -}
279 -
280 -pkg_postinst() {
281 - readme.gentoo_print_elog
282 -}