Ravenports generated: 08 Jan 2023 20:08
[ravenports.git] / bucket_4E / NetBox
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               NetBox
4 VERSION=                3.4.1
5 KEYWORDS=               net_mgmt
6 VARIANTS=               standard
7 SDESC[standard]=        Flexible IPAM and DCIM tool with plugin support
8 HOMEPAGE=               https://github.com/netbox-community/netbox/
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/netbox-community:netbox:v3.4.1
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18                         examples
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 RUN_DEPENDS=            python-Django:single:python_default
24                         python-Jinja2:single:python_default
25                         python-Markdown:single:python_default
26                         python-Pillow:single:python_default
27                         python-PyYAML:single:python_default
28                         python-bleach:single:python_default
29                         python-chardet:single:python_default
30                         python-django-cors-headers:single:python_default
31                         python-django-debug-toolbar:single:python_default
32                         python-django-filter:single:python_default
33                         python-django-graphiql-debug-toolbar:single:python_default
34                         python-django-mptt:single:python_default
35                         python-django-pglocks:single:python_default
36                         python-django-prometheus:single:python_default
37                         python-django-redis:single:python_default
38                         python-django-rich:single:python_default
39                         python-django-rq:single:python_default
40                         python-django-tables2:single:python_default
41                         python-django-taggit:single:python_default
42                         python-django-timezone-field:single:python_default
43                         python-djangorestframework:single:python_default
44                         python-drf-yasg:single:python_default
45                         python-graphene-django:single:python_default
46                         python-gunicorn:single:python_default
47                         python-markdown-include:single:python_default
48                         python-mkdocs-material:single:python_default
49                         python-mkdocstrings:single:python_default
50                         python-netaddr:single:python_default
51                         python-psycopg2:single:python_default
52                         python-sentry-sdk:single:python_default
53                         python-social-auth-app-django:single:python_default
54                         python-social-auth-core:single:python_default
55                         python-svgwrite:single:python_default
56                         python-tablib:single:python_default
57                         python-tzdata:single:python_default
58                         redis:single:standard
59
60 USES=                   cpe
61
62 LICENSE=                APACHE20:primary
63 LICENSE_TERMS=          primary:{{WRKSRC}}/NOTICE
64 LICENSE_FILE=           APACHE20:{{WRKSRC}}/LICENSE.txt
65 LICENSE_SCHEME=         solo
66
67 CPE_PRODUCT=            netbox
68 CPE_VENDOR=             netbox_project
69 FPC_EQUIVALENT=         net-mgmt/netbox
70
71 SKIP_BUILD=             yes
72
73 SUB_FILES=              850.netbox-housekeeping.sample
74                         netbox_rq.sample
75                         netboxrc.sample
76                         pkg-message-primary
77 SUB_LIST=               PYTHON_CMD={{PYTHON_CMD}}
78                         PYTHON_VER={{PYTHON_VER}}
79
80 do-install:
81         (cd ${WRKSRC}/netbox && \
82         for src in $$( ${FIND} . ! -name '*.bak' ) ; do \
83                 DEST=${STAGEDIR}${PREFIX}/share/netbox/$${src#.} && \
84                 if ${TEST} -d "$$src" ; then \
85                         ${MKDIR} "$$DEST" ; \
86                 else \
87                         ${INSTALL_DATA} "$$src" "$$DEST" ; \
88                 fi \
89         done)
90         cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${PREFIX}/share/netbox/docs
91         ${INSTALL_DATA} ${WRKSRC}/mkdocs.yml ${STAGEDIR}${PREFIX}/share/netbox
92         ${MKDIR} -p ${STAGEDIR}${PREFIX}/share/examples/netbox/bsd
93         ${INSTALL_DATA} ${WRKSRC}/contrib/apache.conf ${STAGEDIR}${PREFIX}/share/examples/netbox
94         ${INSTALL_DATA} ${WRKSRC}/contrib/gunicorn.py ${STAGEDIR}${PREFIX}/share/examples/netbox
95         ${INSTALL_DATA} ${WRKSRC}/contrib/nginx.conf ${STAGEDIR}${PREFIX}/share/examples/netbox
96         ${INSTALL_DATA} ${WRKDIR}/850.netbox-housekeeping.sample ${STAGEDIR}${PREFIX}/share/examples/netbox/bsd
97         ${INSTALL_DATA} ${WRKDIR}/netbox_rq.sample ${STAGEDIR}${PREFIX}/share/examples/netbox/bsd
98         ${INSTALL_DATA} ${WRKDIR}/netboxrc.sample ${STAGEDIR}${PREFIX}/share/examples/netbox/bsd
99
100 [FILE:1511:descriptions/desc.primary]
101 NetBox is the leading solution for modeling and documenting modern 
102 networks. By combining the traditional disciplines of IP address 
103 management (IPAM) and datacenter infrastructure management (DCIM) with 
104 powerful APIs and extensions, NetBox provides the ideal "source of truth" 
105 to power network automation. Available as open source software under the 
106 Apache 2.0 license, NetBox is employed by thousands of organizations 
107 around the world.
108
109 Myriad infrastructure components can be modeled in NetBox, including:
110
111 - Hierarchical regions, site groups, sites and locations
112 - Racks, devices, and device components
113 - Cables and wireless connections
114 - Power distribution- Data circuits and providers
115 - Virtual machines and clusters
116 - IP prefixes, ranges and addresses
117 - VRFs and route targets
118 - L2VPN and overlays
119 - FHRP groups (VRRP, HSRP, etc.)
120 - AS numbers
121 - VLANs and scoped VLAN groups
122 - Organizational tenants and contacts
123
124 In addition to its extensive built-in models and functionality, NetBox can 
125 be customized and extended through the use of:
126
127 - Custom fields
128 - Custom links
129 - Configuration contexts
130 - Custom model validation rules
131 - Reports
132 - Custom scripts
133 - Export emplates
134 - Conditional webhooks
135 - Plugins
136 - Single sign-on (SSO) authentication
137 - NAPALM integration
138 - Detailed change logging
139
140 NetBox runs as a web application atop the Django Python framework with a 
141 PostgreSQL database. It also features a complete REST API as well as a 
142 GraphQL API for easy integrating with other tools and systems.
143
144
145 [FILE:115:distinfo]
146 153524f5fc00aff1920ebe228bfbc285fdd60f3c6e5386673749e931a4f3ecba      7361978 netbox-community-netbox-3.4.1.tar.gz
147
148
149 [FILE:23249:manifests/plist.primary]
150 share/netbox/
151  generate_secret_key.py
152  manage.py
153  mkdocs.yml
154 share/netbox/circuits/
155  __init__.py
156  apps.py
157  choices.py
158  filtersets.py
159  search.py
160  signals.py
161  urls.py
162  views.py
163 share/netbox/circuits/api/
164  __init__.py
165  nested_serializers.py
166  serializers.py
167  urls.py
168  views.py
169 share/netbox/circuits/forms/
170  __init__.py
171  bulk_edit.py
172  bulk_import.py
173  filtersets.py
174  model_forms.py
175 share/netbox/circuits/graphql/
176  __init__.py
177  schema.py
178  types.py
179 share/netbox/circuits/migrations/
180  0001_squashed.py
181  0002_squashed_0029.py
182  0003_extend_tag_support.py
183  0004_rename_cable_peer.py
184  0032_provider_service_id.py
185  0033_standardize_id_fields.py
186  0034_created_datetimefield.py
187  0035_provider_asns.py
188  0036_circuit_termination_date_tags_custom_fields.py
189  0037_new_cabling_models.py
190  0038_cabling_cleanup.py
191  0039_unique_constraints.py
192  0040_provider_remove_deprecated_fields.py
193  0041_standardize_description_comments.py
194  __init__.py
195 share/netbox/circuits/models/
196  __init__.py
197  circuits.py
198  providers.py
199 share/netbox/circuits/tables/
200  __init__.py
201  circuits.py
202  columns.py
203  providers.py
204 share/netbox/circuits/tests/
205  __init__.py
206  test_api.py
207  test_filtersets.py
208  test_views.py
209 share/netbox/dcim/
210  __init__.py
211  apps.py
212  choices.py
213  constants.py
214  fields.py
215  filtersets.py
216  lookups.py
217  search.py
218  signals.py
219  urls.py
220  utils.py
221  views.py
222 share/netbox/dcim/api/
223  __init__.py
224  exceptions.py
225  nested_serializers.py
226  serializers.py
227  urls.py
228  views.py
229 share/netbox/dcim/forms/
230  __init__.py
231  bulk_create.py
232  bulk_edit.py
233  bulk_import.py
234  common.py
235  connections.py
236  filtersets.py
237  formsets.py
238  model_forms.py
239  object_create.py
240  object_import.py
241 share/netbox/dcim/graphql/
242  __init__.py
243  gfk_mixins.py
244  mixins.py
245  schema.py
246  types.py
247 share/netbox/dcim/management/__init__.py
248 share/netbox/dcim/management/commands/
249  __init__.py
250  trace_paths.py
251 share/netbox/dcim/migrations/
252  0001_squashed.py
253  0002_squashed.py
254  0003_squashed_0130.py
255  0131_consoleport_speed.py
256  0132_cable_length.py
257  0133_port_colors.py
258  0134_interface_wwn_bridge.py
259  0135_tenancy_extensions.py
260  0136_device_airflow.py
261  0137_relax_uniqueness_constraints.py
262  0138_extend_tag_support.py
263  0139_rename_cable_peer.py
264  0140_wireless.py
265  0141_asn_model.py
266  0142_rename_128gfc_qsfp28.py
267  0143_remove_primary_for_related_name.py
268  0144_fix_cable_abs_length.py
269  0145_site_remove_deprecated_fields.py
270  0146_modules.py
271  0147_inventoryitemrole.py
272  0148_inventoryitem_component.py
273  0149_inventoryitem_templates.py
274  0150_interface_vrf.py
275  0151_interface_speed_duplex.py
276  0152_standardize_id_fields.py
277  0153_created_datetimefield.py
278  0154_half_height_rack_units.py
279  0155_interface_poe_mode_type.py
280  0156_location_status.py
281  0157_new_cabling_models.py
282  0158_populate_cable_terminations.py
283  0159_populate_cable_paths.py
284  0160_populate_cable_ends.py
285  0161_cabling_cleanup.py
286  0162_unique_constraints.py
287  0163_weight_fields.py
288  0164_rack_mounting_depth.py
289  0165_standardize_description_comments.py
290  0166_virtualdevicecontext.py
291  0167_module_status.py
292  __init__.py
293 share/netbox/dcim/models/
294  __init__.py
295  cables.py
296  device_component_templates.py
297  device_components.py
298  devices.py
299  mixins.py
300  power.py
301  racks.py
302  sites.py
303 share/netbox/dcim/svg/
304  __init__.py
305  cables.py
306  racks.py
307 share/netbox/dcim/tables/
308  __init__.py
309  cables.py
310  connections.py
311  devices.py
312  devicetypes.py
313  modules.py
314  power.py
315  racks.py
316  sites.py
317  template_code.py
318 share/netbox/dcim/tests/
319  __init__.py
320  test_api.py
321  test_cablepaths.py
322  test_filtersets.py
323  test_forms.py
324  test_models.py
325  test_natural_ordering.py
326  test_views.py
327 share/netbox/extras/
328  __init__.py
329  admin.py
330  apps.py
331  choices.py
332  conditions.py
333  constants.py
334  context_managers.py
335  filters.py
336  filtersets.py
337  lookups.py
338  querysets.py
339  reports.py
340  scripts.py
341  search.py
342  signals.py
343  urls.py
344  utils.py
345  validators.py
346  views.py
347  webhooks.py
348  webhooks_worker.py
349 share/netbox/extras/api/
350  __init__.py
351  customfields.py
352  nested_serializers.py
353  serializers.py
354  urls.py
355  views.py
356 share/netbox/extras/forms/
357  __init__.py
358  bulk_edit.py
359  bulk_import.py
360  config.py
361  filtersets.py
362  mixins.py
363  model_forms.py
364  reports.py
365  scripts.py
366 share/netbox/extras/graphql/
367  __init__.py
368  mixins.py
369  schema.py
370  types.py
371 share/netbox/extras/management/__init__.py
372 share/netbox/extras/management/commands/
373  __init__.py
374  clearcache.py
375  housekeeping.py
376  nbshell.py
377  reindex.py
378  renaturalize.py
379  rqworker.py
380  runreport.py
381  runscript.py
382  webhook_receiver.py
383 share/netbox/extras/migrations/
384  0001_squashed.py
385  0002_squashed_0059.py
386  0060_customlink_button_class.py
387  0061_extras_change_logging.py
388  0062_clear_secrets_changelog.py
389  0063_webhook_conditions.py
390  0064_configrevision.py
391  0065_imageattachment_change_logging.py
392  0066_customfield_name_validation.py
393  0067_customfield_min_max_values.py
394  0068_configcontext_cluster_types.py
395  0069_custom_object_field.py
396  0070_customlink_enabled.py
397  0071_standardize_id_fields.py
398  0072_created_datetimefield.py
399  0073_journalentry_tags_custom_fields.py
400  0074_customfield_extensions.py
401  0075_configcontext_locations.py
402  0076_tag_slug_unicode.py
403  0077_customlink_extend_text_and_url.py
404  0078_unique_constraints.py
405  0079_scheduled_jobs.py
406  0080_customlink_content_types.py
407  0081_exporttemplate_content_types.py
408  0082_savedfilter.py
409  0083_search.py
410  0084_staging.py
411  __init__.py
412 share/netbox/extras/models/
413  __init__.py
414  change_logging.py
415  configcontexts.py
416  customfields.py
417  models.py
418  search.py
419  staging.py
420  tags.py
421 share/netbox/extras/plugins/
422  __init__.py
423  navigation.py
424  registration.py
425  templates.py
426  urls.py
427  views.py
428 share/netbox/extras/tables/
429  __init__.py
430  tables.py
431  template_code.py
432 share/netbox/extras/templatetags/
433  __init__.py
434  custom_links.py
435  log_levels.py
436  plugins.py
437 share/netbox/extras/tests/
438  __init__.py
439  test_api.py
440  test_changelog.py
441  test_conditions.py
442  test_customfields.py
443  test_customvalidator.py
444  test_filtersets.py
445  test_forms.py
446  test_models.py
447  test_plugins.py
448  test_scripts.py
449  test_tags.py
450  test_views.py
451  test_webhooks.py
452 share/netbox/extras/tests/dummy_plugin/
453  __init__.py
454  admin.py
455  graphql.py
456  middleware.py
457  models.py
458  navigation.py
459  preferences.py
460  search.py
461  template_content.py
462  urls.py
463  views.py
464 share/netbox/extras/tests/dummy_plugin/api/
465  serializers.py
466  urls.py
467  views.py
468 share/netbox/extras/tests/dummy_plugin/migrations/
469  0001_initial.py
470  __init__.py
471 share/netbox/ipam/
472  __init__.py
473  apps.py
474  choices.py
475  constants.py
476  fields.py
477  filtersets.py
478  formfields.py
479  lookups.py
480  managers.py
481  querysets.py
482  search.py
483  signals.py
484  urls.py
485  utils.py
486  validators.py
487  views.py
488 share/netbox/ipam/api/
489  __init__.py
490  nested_serializers.py
491  serializers.py
492  urls.py
493  views.py
494 share/netbox/ipam/forms/
495  __init__.py
496  bulk_create.py
497  bulk_edit.py
498  bulk_import.py
499  filtersets.py
500  model_forms.py
501 share/netbox/ipam/graphql/
502  __init__.py
503  gfk_mixins.py
504  mixins.py
505  schema.py
506  types.py
507 share/netbox/ipam/management/__init__.py
508 share/netbox/ipam/management/commands/
509  __init__.py
510  rebuild_prefixes.py
511 share/netbox/ipam/migrations/
512  0001_squashed.py
513  0002_squashed_0046.py
514  0047_prefix_depth_children.py
515  0048_prefix_populate_depth_children.py
516  0049_prefix_mark_utilized.py
517  0050_iprange.py
518  0051_extend_tag_support.py
519  0052_fhrpgroup.py
520  0053_asn_model.py
521  0054_vlangroup_min_max_vids.py
522  0055_servicetemplate.py
523  0056_standardize_id_fields.py
524  0057_created_datetimefield.py
525  0058_ipaddress_nat_inside_nonunique.py
526  0059_l2vpn.py
527  0060_alter_l2vpn_slug.py
528  0061_fhrpgroup_name.py
529  0062_unique_constraints.py
530  0063_standardize_description_comments.py
531  __init__.py
532 share/netbox/ipam/models/
533  __init__.py
534  fhrp.py
535  ip.py
536  l2vpn.py
537  services.py
538  vlans.py
539  vrfs.py
540 share/netbox/ipam/tables/
541  __init__.py
542  fhrp.py
543  ip.py
544  l2vpn.py
545  services.py
546  vlans.py
547  vrfs.py
548 share/netbox/ipam/tests/
549  __init__.py
550  test_api.py
551  test_filtersets.py
552  test_models.py
553  test_ordering.py
554  test_views.py
555 share/netbox/media/devicetype-images/.gitignore
556 share/netbox/media/image-attachments/.gitignore
557 share/netbox/netbox/
558  __init__.py
559  admin.py
560  authentication.py
561  configuration_example.py
562  configuration_testing.py
563  constants.py
564  context.py
565  context_processors.py
566  denormalized.py
567  filtersets.py
568  middleware.py
569  preferences.py
570  registry.py
571  settings.py
572  signals.py
573  staging.py
574  urls.py
575  wsgi.py
576 share/netbox/netbox/api/
577  __init__.py
578  authentication.py
579  exceptions.py
580  fields.py
581  metadata.py
582  pagination.py
583  renderers.py
584  routers.py
585  views.py
586 share/netbox/netbox/api/serializers/
587  __init__.py
588  base.py
589  features.py
590  generic.py
591  nested.py
592 share/netbox/netbox/api/viewsets/
593  __init__.py
594  mixins.py
595 share/netbox/netbox/config/
596  __init__.py
597  parameters.py
598 share/netbox/netbox/forms/
599  __init__.py
600  base.py
601 share/netbox/netbox/graphql/
602  __init__.py
603  fields.py
604  scalars.py
605  schema.py
606  types.py
607  utils.py
608  views.py
609 share/netbox/netbox/models/
610  __init__.py
611  features.py
612 share/netbox/netbox/navigation/
613  __init__.py
614  menu.py
615 share/netbox/netbox/search/
616  __init__.py
617  backends.py
618 share/netbox/netbox/tables/
619  __init__.py
620  columns.py
621  tables.py
622 share/netbox/netbox/tests/
623  __init__.py
624  test_api.py
625  test_authentication.py
626  test_config.py
627  test_graphql.py
628  test_import.py
629  test_registry.py
630  test_search.py
631  test_staging.py
632  test_tables.py
633  test_views.py
634 share/netbox/netbox/views/
635  __init__.py
636  errors.py
637  misc.py
638 share/netbox/netbox/views/generic/
639  __init__.py
640  base.py
641  bulk_views.py
642  feature_views.py
643  mixins.py
644  object_views.py
645  utils.py
646 share/netbox/project-static/
647  .eslintignore
648  .eslintrc
649  .prettierignore
650  .prettierrc
651  .sassrc
652  bundle.js
653  package.json
654  tsconfig.json
655  yarn.lock
656 share/netbox/project-static/dist/
657  cable_trace.css
658  config.js
659  config.js.map
660  graphiql.css
661  graphiql.js
662  graphiql.js.map
663  lldp.js
664  lldp.js.map
665  materialdesignicons-webfont-2ZY4X5WS.woff
666  materialdesignicons-webfont-DWVXV5L5.woff
667  materialdesignicons-webfont-EH3JD4GG.ttf
668  materialdesignicons-webfont-ER2MFQKM.woff2
669  materialdesignicons-webfont-KSYPMDN6.woff2
670  materialdesignicons-webfont-LWDVGUDX.eot
671  materialdesignicons-webfont-UHEFFMSX.eot
672  materialdesignicons-webfont-WM6M6ZHQ.ttf
673  netbox-dark.css
674  netbox-external.css
675  netbox-light.css
676  netbox-print.css
677  netbox.js
678  netbox.js.map
679  rack_elevation.css
680  status.js
681  status.js.map
682 share/netbox/project-static/docs/.info
683 share/netbox/project-static/img/
684  graphql.ico
685  netbox.ico
686  netbox_icon.svg
687  netbox_logo.png
688  netbox_logo.svg
689  netbox_touch-icon-180.png
690  rest-api.ico
691  tint_20.png
692 share/netbox/project-static/js/setmode.js
693 share/netbox/project-static/netbox-graphiql/
694  graphiql.scss
695  index.ts
696  package.json
697 share/netbox/project-static/src/
698  bs.ts
699  clipboard.ts
700  colorMode.ts
701  dateSelector.ts
702  global.d.ts
703  htmx.ts
704  index.ts
705  links.ts
706  messages.ts
707  netbox.ts
708  racks.ts
709  search.ts
710  sidenav.ts
711  tableConfig.ts
712  util.ts
713 share/netbox/project-static/src/buttons/
714  connectionToggle.ts
715  depthToggle.ts
716  index.ts
717  moveOptions.ts
718  reslug.ts
719  selectAll.ts
720  selectMultiple.ts
721 share/netbox/project-static/src/device/
722  config.ts
723  lldp.ts
724  status.ts
725 share/netbox/project-static/src/forms/
726  elements.ts
727  index.ts
728  scopeSelector.ts
729  speedSelector.ts
730  vlanTags.ts
731 share/netbox/project-static/src/select/
732  color.ts
733  index.ts
734  static.ts
735  util.ts
736 share/netbox/project-static/src/select/api/
737  apiSelect.ts
738  dynamicParams.ts
739  index.ts
740  types.ts
741 share/netbox/project-static/src/state/index.ts
742 share/netbox/project-static/src/stores/
743  index.ts
744  objectDepth.ts
745  previousPkCheck.ts
746  rackImages.ts
747 share/netbox/project-static/src/tables/
748  index.ts
749  interfaceTable.ts
750 share/netbox/project-static/styles/
751  _cable_trace.scss
752  _dark.scss
753  _external.scss
754  _light.scss
755  _print.scss
756  _rack_elevation.scss
757  bootstrap.scss
758  cable-trace.scss
759  extensions.scss
760  flatpickr-dark.scss
761  netbox.scss
762  overrides.scss
763  rack-elevation.scss
764  select.scss
765  sidenav.scss
766  theme-base.scss
767  theme-dark.scss
768  theme-light.scss
769  utilities.scss
770  variables.scss
771 share/netbox/reports/__init__.py
772 share/netbox/scripts/__init__.py
773 share/netbox/templates/
774  403.html
775  404.html
776  500.html
777  graphiql.html
778  home.html
779  import_success.html
780  login.html
781  media_failure.html
782  search.html
783 share/netbox/templates/admin/index.html
784 share/netbox/templates/admin/extras/configrevision/restore.html
785 share/netbox/templates/base/
786  40x.html
787  base.html
788  layout.html
789  sidenav.html
790 share/netbox/templates/circuits/
791  circuit.html
792  circuit_terminations_swap.html
793  circuittermination_edit.html
794  circuittype.html
795  provider.html
796  providernetwork.html
797 share/netbox/templates/circuits/inc/circuit_termination.html
798 share/netbox/templates/dcim/
799  bulk_disconnect.html
800  cable.html
801  cable_edit.html
802  cable_trace.html
803  component_create.html
804  connections_list.html
805  consoleport.html
806  consoleport_delete.html
807  consoleserverport.html
808  consoleserverport_delete.html
809  device.html
810  device_edit.html
811  device_import.html
812  device_import_child.html
813  device_list.html
814  devicebay.html
815  devicebay_delete.html
816  devicebay_depopulate.html
817  devicebay_populate.html
818  devicerole.html
819  devicetype.html
820  frontport.html
821  interface.html
822  interface_delete.html
823  interface_edit.html
824  inventoryitem.html
825  inventoryitem_bulk_delete.html
826  inventoryitem_delete.html
827  inventoryitemrole.html
828  location.html
829  manufacturer.html
830  module.html
831  modulebay.html
832  moduletype.html
833  platform.html
834  powerfeed.html
835  poweroutlet.html
836  poweroutlet_delete.html
837  powerpanel.html
838  powerport.html
839  powerport_delete.html
840  rack.html
841  rack_edit.html
842  rack_elevation_list.html
843  rackreservation.html
844  rackrole.html
845  rearport.html
846  region.html
847  site.html
848  sitegroup.html
849  virtualchassis.html
850  virtualchassis_add.html
851  virtualchassis_add_member.html
852  virtualchassis_edit.html
853  virtualchassis_remove_member.html
854  virtualdevicecontext.html
855 share/netbox/templates/dcim/device/
856  base.html
857  config.html
858  consoleports.html
859  consoleserverports.html
860  devicebays.html
861  frontports.html
862  interfaces.html
863  inventory.html
864  lldp_neighbors.html
865  modulebays.html
866  poweroutlets.html
867  powerports.html
868  rearports.html
869  status.html
870 share/netbox/templates/dcim/device/inc/interface_table_controls.html
871 share/netbox/templates/dcim/devicetype/
872  base.html
873  component_templates.html
874 share/netbox/templates/dcim/inc/
875  cable_termination.html
876  cable_toggle_buttons.html
877  connection_endpoints.html
878  device_import_header.html
879  endpoint_connection.html
880  interface_vlans_table.html
881  nonracked_devices.html
882  rack_elevation.html
883 share/netbox/templates/dcim/inc/panels/inventory_items.html
884 share/netbox/templates/dcim/moduletype/
885  base.html
886  component_templates.html
887 share/netbox/templates/dcim/trace/
888  attachment.html
889  cable.html
890  circuit.html
891  device.html
892  object.html
893  powerpanel.html
894  termination.html
895 share/netbox/templates/exceptions/
896  import_error.html
897  permission_error.html
898  programming_error.html
899 share/netbox/templates/extras/
900  configcontext.html
901  customfield.html
902  customlink.html
903  exporttemplate.html
904  imageattachment_edit.html
905  journalentry.html
906  object_changelog.html
907  object_configcontext.html
908  object_journal.html
909  objectchange.html
910  objectchange_list.html
911  report.html
912  report_list.html
913  report_result.html
914  savedfilter.html
915  script.html
916  script_list.html
917  script_result.html
918  tag.html
919  webhook.html
920 share/netbox/templates/extras/admin/plugins_list.html
921 share/netbox/templates/extras/htmx/
922  report_result.html
923  script_result.html
924 share/netbox/templates/extras/inc/
925  configcontext_data.html
926  configcontext_format.html
927  job_label.html
928  result_pending.html
929 share/netbox/templates/extras/templatetags/log_level.html
930 share/netbox/templates/generic/
931  bulk_add_component.html
932  bulk_delete.html
933  bulk_edit.html
934  bulk_import.html
935  bulk_remove.html
936  bulk_rename.html
937  confirmation_form.html
938  object.html
939  object_delete.html
940  object_edit.html
941  object_list.html
942 share/netbox/templates/htmx/
943  delete_form.html
944  table.html
945 share/netbox/templates/inc/
946  filter_list.html
947  htmx_modal.html
948  messages.html
949  missing_prerequisites.html
950  paginator.html
951  paginator_htmx.html
952  panel_table.html
953  profile_button.html
954  searchbar.html
955  table.html
956  table_controls_htmx.html
957  table_htmx.html
958 share/netbox/templates/inc/panels/
959  comments.html
960  contacts.html
961  custom_fields.html
962  image_attachments.html
963  services.html
964  tags.html
965 share/netbox/templates/ipam/
966  aggregate.html
967  asn.html
968  fhrpgroup.html
969  fhrpgroup_edit.html
970  fhrpgroupassignment_edit.html
971  ipaddress.html
972  ipaddress_assign.html
973  ipaddress_bulk_add.html
974  ipaddress_edit.html
975  iprange.html
976  l2vpn.html
977  l2vpntermination.html
978  l2vpntermination_edit.html
979  prefix.html
980  prefix_list.html
981  rir.html
982  role.html
983  routetarget.html
984  service.html
985  service_create.html
986  service_edit.html
987  servicetemplate.html
988  vlan.html
989  vlan_edit.html
990  vlangroup.html
991  vrf.html
992 share/netbox/templates/ipam/aggregate/
993  base.html
994  prefixes.html
995 share/netbox/templates/ipam/inc/
996  ipaddress_edit_header.html
997  toggle_available.html
998 share/netbox/templates/ipam/inc/panels/fhrp_groups.html
999 share/netbox/templates/ipam/iprange/
1000  base.html
1001  ip_addresses.html
1002 share/netbox/templates/ipam/prefix/
1003  base.html
1004  ip_addresses.html
1005  ip_ranges.html
1006  prefixes.html
1007 share/netbox/templates/ipam/vlan/
1008  base.html
1009  interfaces.html
1010  vminterfaces.html
1011 share/netbox/templates/rest_framework/api.html
1012 share/netbox/templates/tenancy/
1013  contact.html
1014  contactassignment_edit.html
1015  contactgroup.html
1016  contactrole.html
1017  tenant.html
1018  tenantgroup.html
1019 share/netbox/templates/users/
1020  api_token.html
1021  api_tokens.html
1022  base.html
1023  password.html
1024  preferences.html
1025  profile.html
1026 share/netbox/templates/virtualization/
1027  cluster.html
1028  cluster_add_devices.html
1029  clustergroup.html
1030  clustertype.html
1031  virtualmachine.html
1032  virtualmachine_list.html
1033  vminterface.html
1034 share/netbox/templates/virtualization/cluster/
1035  base.html
1036  devices.html
1037  virtual_machines.html
1038 share/netbox/templates/virtualization/virtualmachine/
1039  base.html
1040  interfaces.html
1041 share/netbox/templates/wireless/
1042  wirelesslan.html
1043  wirelesslangroup.html
1044  wirelesslink.html
1045  wirelesslink_edit.html
1046 share/netbox/templates/wireless/inc/
1047  authentication_attrs.html
1048  wirelesslink_interface.html
1049 share/netbox/tenancy/
1050  __init__.py
1051  apps.py
1052  choices.py
1053  filtersets.py
1054  search.py
1055  urls.py
1056  views.py
1057 share/netbox/tenancy/api/
1058  __init__.py
1059  nested_serializers.py
1060  serializers.py
1061  urls.py
1062  views.py
1063 share/netbox/tenancy/forms/
1064  __init__.py
1065  bulk_edit.py
1066  bulk_import.py
1067  filtersets.py
1068  forms.py
1069  model_forms.py
1070 share/netbox/tenancy/graphql/
1071  __init__.py
1072  schema.py
1073  types.py
1074 share/netbox/tenancy/migrations/
1075  0001_squashed_0012.py
1076  0002_tenant_ordering.py
1077  0003_contacts.py
1078  0004_extend_tag_support.py
1079  0005_standardize_id_fields.py
1080  0006_created_datetimefield.py
1081  0007_contact_link.py
1082  0008_unique_constraints.py
1083  0009_standardize_description_comments.py
1084  __init__.py
1085 share/netbox/tenancy/models/
1086  __init__.py
1087  contacts.py
1088  tenants.py
1089 share/netbox/tenancy/tables/
1090  __init__.py
1091  columns.py
1092  contacts.py
1093  tenants.py
1094 share/netbox/tenancy/tests/
1095  __init__.py
1096  test_api.py
1097  test_filtersets.py
1098  test_views.py
1099 share/netbox/users/
1100  __init__.py
1101  apps.py
1102  constants.py
1103  filtersets.py
1104  forms.py
1105  models.py
1106  preferences.py
1107  signals.py
1108  tables.py
1109  urls.py
1110  utils.py
1111  views.py
1112 share/netbox/users/admin/
1113  __init__.py
1114  filters.py
1115  forms.py
1116  inlines.py
1117 share/netbox/users/api/
1118  __init__.py
1119  nested_serializers.py
1120  serializers.py
1121  urls.py
1122  views.py
1123 share/netbox/users/graphql/
1124  __init__.py
1125  schema.py
1126  types.py
1127 share/netbox/users/migrations/
1128  0001_squashed_0011.py
1129  0002_standardize_id_fields.py
1130  0003_token_allowed_ips_last_used.py
1131  __init__.py
1132 share/netbox/users/tests/
1133  __init__.py
1134  test_api.py
1135  test_filtersets.py
1136  test_models.py
1137  test_preferences.py
1138 share/netbox/utilities/
1139  __init__.py
1140  api.py
1141  choices.py
1142  constants.py
1143  custom_inspectors.py
1144  error_handlers.py
1145  exceptions.py
1146  fields.py
1147  filters.py
1148  htmx.py
1149  json.py
1150  markdown.py
1151  mptt.py
1152  ordering.py
1153  paginator.py
1154  permissions.py
1155  query_functions.py
1156  querysets.py
1157  request.py
1158  tables.py
1159  urls.py
1160  utils.py
1161  validators.py
1162  views.py
1163 share/netbox/utilities/forms/
1164  __init__.py
1165  constants.py
1166  forms.py
1167  utils.py
1168  widgets.py
1169 share/netbox/utilities/forms/fields/
1170  __init__.py
1171  content_types.py
1172  csv.py
1173  dynamic.py
1174  expandable.py
1175  fields.py
1176 share/netbox/utilities/management/__init__.py
1177 share/netbox/utilities/management/commands/
1178  __init__.py
1179  makemigrations.py
1180  migrate.py
1181 share/netbox/utilities/serializers/json.py
1182 share/netbox/utilities/templates/builtins/
1183  badge.html
1184  checkmark.html
1185  customfield_value.html
1186  tag.html
1187 share/netbox/utilities/templates/buttons/
1188  add.html
1189  bulk_delete.html
1190  bulk_edit.html
1191  clone.html
1192  delete.html
1193  edit.html
1194  export.html
1195  import.html
1196 share/netbox/utilities/templates/form_helpers/
1197  render_custom_fields.html
1198  render_errors.html
1199  render_field.html
1200  render_form.html
1201 share/netbox/utilities/templates/helpers/
1202  applied_filters.html
1203  table_config_form.html
1204  utilization_graph.html
1205 share/netbox/utilities/templates/navigation/menu.html
1206 share/netbox/utilities/templates/tabs/model_view_tabs.html
1207 share/netbox/utilities/templates/widgets/
1208  clearable_file_input.html
1209  colorselect_option.html
1210  select_duration.html
1211  select_option.html
1212  select_option_with_pk.html
1213  select_speed.html
1214  sluginput.html
1215 share/netbox/utilities/templatetags/
1216  __init__.py
1217  buttons.py
1218  form_helpers.py
1219  helpers.py
1220  navigation.py
1221  perms.py
1222  tabs.py
1223 share/netbox/utilities/templatetags/builtins/
1224  __init__.py
1225  filters.py
1226  tags.py
1227 share/netbox/utilities/testing/
1228  __init__.py
1229  api.py
1230  base.py
1231  filtersets.py
1232  utils.py
1233  views.py
1234 share/netbox/utilities/tests/
1235  __init__.py
1236  test_api.py
1237  test_choices.py
1238  test_filters.py
1239  test_forms.py
1240  test_managers.py
1241  test_ordering.py
1242  test_utils.py
1243 share/netbox/virtualization/
1244  __init__.py
1245  apps.py
1246  choices.py
1247  filtersets.py
1248  search.py
1249  urls.py
1250  views.py
1251 share/netbox/virtualization/api/
1252  __init__.py
1253  nested_serializers.py
1254  serializers.py
1255  urls.py
1256  views.py
1257 share/netbox/virtualization/forms/
1258  __init__.py
1259  bulk_create.py
1260  bulk_edit.py
1261  bulk_import.py
1262  filtersets.py
1263  model_forms.py
1264  object_create.py
1265 share/netbox/virtualization/graphql/
1266  __init__.py
1267  schema.py
1268  types.py
1269 share/netbox/virtualization/migrations/
1270  0001_squashed_0022.py
1271  0023_virtualmachine_natural_ordering.py
1272  0024_cluster_relax_uniqueness.py
1273  0025_extend_tag_support.py
1274  0026_vminterface_bridge.py
1275  0027_standardize_id_fields.py
1276  0028_vminterface_vrf.py
1277  0029_created_datetimefield.py
1278  0030_cluster_status.py
1279  0031_virtualmachine_site_device.py
1280  0032_virtualmachine_update_sites.py
1281  0033_unique_constraints.py
1282  0034_standardize_description_comments.py
1283  __init__.py
1284 share/netbox/virtualization/models/
1285  __init__.py
1286  clusters.py
1287  virtualmachines.py
1288 share/netbox/virtualization/tables/
1289  __init__.py
1290  clusters.py
1291  virtualmachines.py
1292 share/netbox/virtualization/tests/
1293  __init__.py
1294  test_api.py
1295  test_filtersets.py
1296  test_models.py
1297  test_views.py
1298 share/netbox/wireless/
1299  __init__.py
1300  apps.py
1301  choices.py
1302  constants.py
1303  filtersets.py
1304  models.py
1305  search.py
1306  signals.py
1307  urls.py
1308  utils.py
1309  views.py
1310 share/netbox/wireless/api/
1311  __init__.py
1312  nested_serializers.py
1313  serializers.py
1314  urls.py
1315  views.py
1316 share/netbox/wireless/forms/
1317  __init__.py
1318  bulk_edit.py
1319  bulk_import.py
1320  filtersets.py
1321  model_forms.py
1322 share/netbox/wireless/graphql/
1323  __init__.py
1324  schema.py
1325  types.py
1326 share/netbox/wireless/migrations/
1327  0001_wireless.py
1328  0002_standardize_id_fields.py
1329  0003_created_datetimefield.py
1330  0004_wireless_tenancy.py
1331  0005_wirelesslink_interface_types.py
1332  0006_unique_constraints.py
1333  0007_standardize_description_comments.py
1334  0008_wirelesslan_status.py
1335  __init__.py
1336 share/netbox/wireless/tables/
1337  __init__.py
1338  wirelesslan.py
1339  wirelesslink.py
1340 share/netbox/wireless/tests/
1341  __init__.py
1342  test_api.py
1343  test_filtersets.py
1344  test_views.py
1345
1346
1347 [FILE:4976:manifests/plist.docs]
1348 share/netbox/docs/docs/
1349  extra.css
1350  index.md
1351  introduction.md
1352  netbox_logo.png
1353  netbox_logo.svg
1354 share/netbox/docs/docs/_theme/main.html
1355 share/netbox/docs/docs/administration/
1356  error-reporting.md
1357  housekeeping.md
1358  netbox-shell.md
1359  permissions.md
1360  replicating-netbox.md
1361 share/netbox/docs/docs/administration/authentication/
1362  microsoft-azure-ad.md
1363  okta.md
1364  overview.md
1365 share/netbox/docs/docs/configuration/
1366  data-validation.md
1367  date-time.md
1368  default-values.md
1369  development.md
1370  error-reporting.md
1371  index.md
1372  miscellaneous.md
1373  napalm.md
1374  plugins.md
1375  remote-authentication.md
1376  required-parameters.md
1377  security.md
1378  system.md
1379 share/netbox/docs/docs/customization/
1380  custom-fields.md
1381  custom-links.md
1382  custom-scripts.md
1383  custom-validation.md
1384  export-templates.md
1385  reports.md
1386 share/netbox/docs/docs/development/
1387  adding-models.md
1388  application-registry.md
1389  extending-models.md
1390  getting-started.md
1391  git-cheat-sheet.md
1392  index.md
1393  models.md
1394  release-checklist.md
1395  search.md
1396  signals.md
1397  style-guide.md
1398  user-preferences.md
1399  web-ui.md
1400 share/netbox/docs/docs/features/
1401  api-integration.md
1402  authentication-permissions.md
1403  change-logging.md
1404  circuits.md
1405  contacts.md
1406  context-data.md
1407  customization.md
1408  devices-cabling.md
1409  facilities.md
1410  ipam.md
1411  journaling.md
1412  l2vpn-overlay.md
1413  power-tracking.md
1414  search.md
1415  tenancy.md
1416  virtualization.md
1417  vlan-management.md
1418  wireless.md
1419 share/netbox/docs/docs/getting-started/
1420  planning.md
1421  populating-data.md
1422 share/netbox/docs/docs/installation/
1423  1-postgresql.md
1424  2-redis.md
1425  3-netbox.md
1426  4-gunicorn.md
1427  5-http-server.md
1428  6-ldap.md
1429  index.md
1430  upgrading.md
1431 share/netbox/docs/docs/integrations/
1432  graphql-api.md
1433  napalm.md
1434  prometheus-metrics.md
1435  rest-api.md
1436  webhooks.md
1437 share/netbox/docs/docs/media/
1438  admin_ui_run_permission.png
1439  power_distribution.png
1440 share/netbox/docs/docs/media/authentication/
1441  azure_ad_add_app_registration.png
1442  azure_ad_add_client_secret.png
1443  azure_ad_app_registration.png
1444  azure_ad_app_registration_created.png
1445  azure_ad_client_secret.png
1446  azure_ad_client_secret_created.png
1447  azure_ad_login_portal.png
1448  netbox_azure_ad_login.png
1449  netbox_okta_login.png
1450  okta_create_app_registration.png
1451  okta_integration_parameters.png
1452  okta_login_portal.png
1453  okta_web_app_integration.png
1454 share/netbox/docs/docs/media/development/
1455  github.png
1456  github_fork_button.png
1457  github_fork_dialog.png
1458  github_new_issue.png
1459 share/netbox/docs/docs/media/installation/
1460  netbox_application_stack.png
1461  upgrade_paths.png
1462 share/netbox/docs/docs/media/models/dcim_cable_trace.png
1463 share/netbox/docs/docs/media/release-notes/netbox30_ui.png
1464 share/netbox/docs/docs/media/screenshots/
1465  cable-trace.png
1466  home-dark.png
1467  netbox-ui.png
1468  prefixes-list.png
1469  rack.png
1470 share/netbox/docs/docs/models/circuits/
1471  circuit.md
1472  circuittermination.md
1473  circuittype.md
1474  provider.md
1475  providernetwork.md
1476 share/netbox/docs/docs/models/dcim/
1477  cable.md
1478  consoleport.md
1479  consoleporttemplate.md
1480  consoleserverport.md
1481  consoleserverporttemplate.md
1482  device.md
1483  devicebay.md
1484  devicebaytemplate.md
1485  devicerole.md
1486  devicetype.md
1487  frontport.md
1488  frontporttemplate.md
1489  interface.md
1490  interfacetemplate.md
1491  inventoryitem.md
1492  inventoryitemrole.md
1493  inventoryitemtemplate.md
1494  location.md
1495  manufacturer.md
1496  module.md
1497  modulebay.md
1498  modulebaytemplate.md
1499  moduletype.md
1500  platform.md
1501  powerfeed.md
1502  poweroutlet.md
1503  poweroutlettemplate.md
1504  powerpanel.md
1505  powerport.md
1506  powerporttemplate.md
1507  rack.md
1508  rackreservation.md
1509  rackrole.md
1510  rearport.md
1511  rearporttemplate.md
1512  region.md
1513  site.md
1514  sitegroup.md
1515  virtualchassis.md
1516  virtualdevicecontext.md
1517 share/netbox/docs/docs/models/extras/
1518  branch.md
1519  configcontext.md
1520  customfield.md
1521  customlink.md
1522  exporttemplate.md
1523  imageattachment.md
1524  journalentry.md
1525  savedfilter.md
1526  stagedchange.md
1527  tag.md
1528  webhook.md
1529 share/netbox/docs/docs/models/ipam/
1530  aggregate.md
1531  asn.md
1532  fhrpgroup.md
1533  fhrpgroupassignment.md
1534  ipaddress.md
1535  iprange.md
1536  l2vpn.md
1537  l2vpntermination.md
1538  prefix.md
1539  rir.md
1540  role.md
1541  routetarget.md
1542  service.md
1543  servicetemplate.md
1544  vlan.md
1545  vlangroup.md
1546  vrf.md
1547 share/netbox/docs/docs/models/tenancy/
1548  contact.md
1549  contactgroup.md
1550  contactrole.md
1551  tenant.md
1552  tenantgroup.md
1553 share/netbox/docs/docs/models/virtualization/
1554  cluster.md
1555  clustergroup.md
1556  clustertype.md
1557  virtualmachine.md
1558  vminterface.md
1559 share/netbox/docs/docs/models/wireless/
1560  wirelesslan.md
1561  wirelesslangroup.md
1562  wirelesslink.md
1563 share/netbox/docs/docs/plugins/index.md
1564 share/netbox/docs/docs/plugins/development/
1565  background-tasks.md
1566  exceptions.md
1567  filtersets.md
1568  forms.md
1569  graphql-api.md
1570  index.md
1571  models.md
1572  navigation.md
1573  rest-api.md
1574  search.md
1575  staged-changes.md
1576  tables.md
1577  templates.md
1578  views.md
1579 share/netbox/docs/docs/reference/
1580  conditions.md
1581  filtering.md
1582  markdown.md
1583 share/netbox/docs/docs/release-notes/
1584  index.md
1585  version-2.0.md
1586  version-2.1.md
1587  version-2.10.md
1588  version-2.11.md
1589  version-2.2.md
1590  version-2.3.md
1591  version-2.4.md
1592  version-2.5.md
1593  version-2.6.md
1594  version-2.7.md
1595  version-2.8.md
1596  version-2.9.md
1597  version-3.0.md
1598  version-3.1.md
1599  version-3.2.md
1600  version-3.3.md
1601  version-3.4.md
1602
1603
1604 [FILE:155:manifests/plist.examples]
1605 share/examples/netbox/
1606  apache.conf
1607  gunicorn.py
1608  nginx.conf
1609 share/examples/netbox/bsd/
1610  850.netbox-housekeeping.sample
1611  netbox_rq.sample
1612  netboxrc.sample
1613
1614
1615 [FILE:612:patches/patch-mkdocs.yml]
1616 --- mkdocs.yml.orig     2022-04-28 19:00:11 UTC
1617 +++ mkdocs.yml
1618 @@ -1,5 +1,5 @@ site_name: NetBox Documentation
1619  site_name: NetBox Documentation
1620 -site_dir: netbox/project-static/docs
1621 +site_dir: project-static/docs
1622  site_url: https://docs.netbox.dev/
1623  repo_name: netbox-community/netbox
1624  repo_url: https://github.com/netbox-community/netbox
1625 @@ -26,7 +26,6 @@ plugins:
1626            setup_commands:
1627              - import os
1628              - import django
1629 -            - os.chdir('netbox/')
1630              - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "netbox.settings")
1631              - django.setup()
1632            rendering:
1633
1634
1635 [FILE:789:files/850.netbox-housekeeping.sample.in]
1636 #!/bin/sh
1637 # This shell script invokes NetBox's housekeeping management command, which
1638 # intended to be run nightly.
1639 #
1640 # If you want to enable this script, copy it to %%PREFIX%%/etc/periodic/daily
1641 # and place the following into /etc/periodic.conf:
1642 #
1643 # daily_netbox_housekeeping_enable="YES"
1644 #
1645 # If NetBox has been installed into a nonstandard location, update the paths
1646 # below.
1647 command="%%PYTHON_CMD%%"
1648 netbox_root="%%PREFIX%%/share/netbox"
1649
1650 # If there is a global system configuration file, suck it in.
1651 #
1652 if [ -r /etc/defaults/periodic.conf ]; then
1653         . /etc/defaults/periodic.conf
1654         source_periodic_confs
1655 fi
1656
1657 rc=0
1658
1659 case "$daily_netbox_housekeeping_enable" in
1660         [Yy][Ee][Ss])
1661         echo ""
1662         echo "Running NetBox housekeeping:"
1663         $command "$netbox_root/manage.py" housekeeping
1664         rc=$?
1665 esac
1666
1667 exit $rc
1668
1669
1670 [FILE:934:files/netbox_rq.sample.in]
1671 #!/bin/sh
1672
1673 # This sample rc script starts the RQ worker background service which is
1674 # required for Webhooks and various automation tasks.
1675
1676 #
1677 # PROVIDE: netbox_rq
1678 # REQUIRE: DAEMON
1679 # KEYWORD: shutdown
1680 #
1681 # Add the following line to /etc/rc.conf.local or /etc/rc.conf
1682 # to enable netbox-rq:
1683 #
1684 # netbox_rq_enable (bool):              Set to NO by default.
1685 #                                       Set it to YES to enable netbox_rq.
1686
1687 . /etc/rc.subr
1688
1689 name=netbox_rq
1690 rcvar=netbox_rq_enable
1691
1692 load_rc_config $name
1693
1694 start_cmd="netbox_rq_start"
1695 start_precmd="netbox_rq_precmd"
1696 command="%%PYTHON_CMD%%"
1697 command_args="%%PREFIX%%/share/netbox/manage.py rqworker"
1698 pidfile=${netbox_rq_pidfile:-/var/run/${name}/${name}.pid}
1699 netbox_rq_user=${netbox_rq_user:-www}
1700
1701
1702 netbox_rq_precmd()
1703 {
1704         install -d -o ${netbox_rq_user} `dirname ${pidfile}`
1705 }
1706
1707 netbox_rq_start()
1708 {
1709         echo "Starting netbox_rq."
1710         /usr/sbin/daemon -cf -p ${pidfile} -u ${netbox_rq_user} ${command} ${command_args}
1711 }
1712
1713 run_rc_command "$1"
1714
1715
1716 [FILE:3721:files/netboxrc.sample.in]
1717 #!/bin/sh
1718
1719 # This sample rc script eliminate the need to use sysutils/py-supervisor to
1720 # run NetBox as a system service. Only www/py-gunicorn is needed as a WSGI.
1721 #
1722 # Of course a working HTTP server like Apache/nginx is still required to make
1723 # use of the gunicorn WSGI.
1724
1725 #
1726 # PROVIDE: netbox
1727 # REQUIRE: DAEMON
1728 # KEYWORD: shutdown
1729 #
1730 # Add the following line to /etc/rc.conf.local or /etc/rc.conf
1731 # to enable netbox:
1732 #
1733 # netbox_enable (bool):                 Set to NO by default.
1734 #                                       Set it to YES to enable netbox.
1735 # netbox_use_config (bool):             Set to NO by default.
1736 #                                       If set, read the configuration parameter from file defined in
1737 #                                       "netbox_config" instead using rc variables.
1738 # netbox_config (str):                  Default to "/usr/local/etc/${name}.conf}"
1739 #                                       Config file for gunicorn's netbox config file
1740 # netbox_command (str):                 Default to "%%LOCALBASE%%/bin/gunicorn"
1741 #                                       Path to gunicorn to run netbox
1742 # netbox_bind (str):                    Default to "localhost:8001"
1743 #                                       Interface and port to bind to
1744 # netbox_workers (int):                 Default to "5"
1745 #                                       Number of gunicorn workers
1746 # netbox_threads (int):                 Default to "3"
1747 #                                       Number of worker threads per handling request
1748 # netbox_timeout (int):                 Default to "120"
1749 #                                       Worker timeout for gunicorn
1750 # netbox_max_requests (int):            Default to "5000"
1751 #                                       Maximum number of requests a worker process will process before respawning
1752 # netbox_max_requests_jitter (int):     Default to "500"
1753 #                                       Maximum number jitter to add to "netbox_max_requests"
1754 # netbox_extra_args (str):              Not set by default
1755 #                                       Extra arguments that are passed to gunicorn
1756 #
1757
1758 . /etc/rc.subr
1759
1760 name="netbox"
1761 rcvar=netbox_enable
1762 netbox_path=%%PREFIX%%/share/netbox
1763 extra_commands="upgrade"
1764
1765 load_rc_config $name
1766
1767 start_precmd="netbox_precmd"
1768 upgrade_cmd="netbox_upgrade"
1769 command=${netbox_program:-%%LOCALBASE%%/bin/gunicorn}
1770 procname=${netbox_procname:-%%PYTHON_CMD%%}
1771 netbox_chdir=${netbox_path}
1772 pidfile=${netbox_pidfile:-/var/run/${name}/${name}.pid}
1773 netbox_user=${netbox_user:-wwwraven}
1774 netbox_use_config=${netbox_use_config:-no}
1775 netbox_config=${netbox_config:-/${name}.conf}
1776 netbox_bind=${netbox_bind:-localhost:8001}
1777 netbox_workers=${netbox_workers:-5}
1778 netbox_threads=${netbox_threads:-3}
1779 netbox_timeout=${netbox_timeout:-120}
1780 netbox_max_requests=${netbox_max_requests:-5000}
1781 netbox_max_requests_jitter=${netbox_max_requests_jitter:-500}
1782
1783 # Read settings from confguration file if set
1784 if checkyesno netbox_use_config && [ -f "${netbox_config}" ]; then 
1785         command_args="${netbox_args} -D \
1786                 --log-syslog --log-syslog-prefix ${name} \
1787                 --log-syslog-to unix:///var/run/log#dgram \
1788                 --disable-redirect-access-to-syslog \
1789                 -p ${pidfile} --pythonpath ${netbox_path} \
1790                 -c ${netbox_config} \
1791                 netbox.wsgi"
1792 else
1793         command_args="${netbox_args} -D \
1794                 --log-syslog --log-syslog-prefix ${name} \
1795                 --log-syslog-to unix:///var/run/log#dgram \
1796                 --disable-redirect-access-to-syslog \
1797                 -p ${pidfile} --pythonpath ${netbox_path} \
1798                 -b ${netbox_bind} -w ${netbox_workers} --threads ${netbox_threads} -t ${netbox_timeout} \
1799                 --max-requests ${netbox_max_requests} --max-requests-jitter ${netbox_max_requests_jitter} \
1800                 ${netbox_extra_args} \
1801                 netbox.wsgi"
1802 fi
1803
1804 netbox_precmd()
1805 {
1806         install -d -o ${netbox_user} `dirname ${pidfile}`
1807 }
1808
1809 netbox_upgrade()
1810 {
1811         if [ -f ${pidfile} ]; then
1812                 cd ${netbox_path}
1813                 %%PYTHON_CMD%% manage.py migrate
1814                 %%PYTHON_CMD%% manage.py trace_paths --no-input
1815                 %%LOCALBASE%%/bin/mkdocs build
1816                 %%PYTHON_CMD%% manage.py collectstatic --no-input
1817                 %%PYTHON_CMD%% manage.py remove_stale_contenttypes --no-input
1818                 %%PYTHON_CMD%% manage.py clearsessions
1819                 %%PYTHON_CMD%% manage.py clearcache
1820                 echo "Please restart NetBox and the WSGI environment."
1821         else
1822                 echo "NetBox is not running!"
1823         fi
1824 }
1825
1826 run_rc_command "$1"
1827
1828
1829 [FILE:1152:files/pkg-message-primary.in]
1830 Please note that NetBox requires a PostgreSQL database server, which uses its
1831 built-in network address datatypes. Thus NetBox won't work with other RDBMS's,
1832 e.g. MySQL, MariaDB, etc.
1833
1834 For installation instructions please refer to the related wiki page:
1835
1836 - https://wiki.freebsd.org/Ports/net-mgmt/netbox
1837
1838 ************
1839 * Upgrades *
1840 ************
1841
1842 As always it is strongly encouraged to make a backup of the database before the
1843 database migrations will be executed.
1844
1845 The following steps are required to finish the upgrade: 
1846
1847 1. Run database migrations, trace any missing cable paths, build the embedded
1848    documentation, collect static files, remove stale content files, delete any
1849    expired user sessions and clear the cache.
1850
1851 # cd %%PREXIX%%/share/netbox
1852 # python%%PYTHON_VER%% manage.py migrate
1853 # python%%PYTHON_VER%% manage.py trace_paths --no-input
1854 # mkdocs build
1855 # python%%PYTHON_VER%% manage.py collectstatic --no-input
1856 # python%%PYTHON_VER%% manage.py remove_stale_contenttypes --no-input
1857 # python%%PYTHON_VER%% manage.py clearsessions
1858 # python%%PYTHON_VER%% manage.py clearcache
1859
1860 2. Restart WSGI/httpd environment (supervisord/apache/nginx/etc.)
1861