Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.PHONY: all
all:
@$(MAKE) -f Makefile.apc
@$(MAKE) -f Makefile.dell_network
@$(MAKE) -f Makefile.eltex
@$(MAKE) -f Makefile.fieldserver
@$(MAKE) -f Makefile.iana
Expand All @@ -26,6 +27,7 @@ all:
.PHONY: clean
clean:
@$(MAKE) -f Makefile.apc clean
@$(MAKE) -f Makefile.dell_network clean
@$(MAKE) -f Makefile.eltex clean
@$(MAKE) -f Makefile.fieldserver clean
@$(MAKE) -f Makefile.iana clean
Expand Down
34 changes: 34 additions & 0 deletions Makefile.dell_network
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright The Prometheus Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include Makefile.curl

DELL_NET_REFERER := https://www.dell.com/support/kbdoc/en-us/000181922/dell-networking-mibs
DELL_NET_URL := https://supportkb.dell.com/attachment/ka06P000000sxzWQAQ/Current_MIBs_pkb_en_US_1.tar

all: dell_network/.done

dell_network/.done:
@echo ">> Downloading Dell network MIBs"
$(eval TMP := $(shell mktemp))
$(eval TMPDIR := $(shell mktemp -d))
@curl $(CURL_OPTS) --referer $(DELL_NET_REFERER) -o $(TMP) "$(DELL_NET_URL)"
@tar -C $(TMPDIR) -xf $(TMP)
@tar -C dell_network --wildcards -zxf $(TMPDIR)/DELL-NETWORKING-MIB-9.14.2.1.tgz "DELL-NETWORKING*.mib"
@chmod a-x dell_network/*.mib
@rm -rv $(TMP) $(TMPDIR)
@touch $@

.PHONY: clean
clean:
rm -v dell_network/DELL-NETWORKING*.mib dell_network/.done
Empty file added dell_network/.done
Empty file.
Loading