-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 950 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (27 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
VERSION = 1.1.0
all:
smistrip -d ./MIB src-mib/nagios*.mib
test:
smilint -p ./MIB/NAGIOS-ROOT-MIB ./MIB/NAGIOS-NOTIFY-MIB
install:
@if [ -d /usr/share/snmp/mibs ]; then \
cp ./MIB/* /usr/share/snmp/mibs; \
echo "MIBs copied to /usr/share/snmp/mibs"; \
elif [ -d /usr/share/mibs ]; then \
cp ./MIB/* /usr/share/mibs; \
echo "MIBs copied to /usr/share/mibs"; \
elif [ -d /usr/local/share/snmp/mibs ]; then \
cp ./MIB/* /usr/local/share/snmp/mibs; \
echo "MIBs copied to /usr/local/share/snmp/mibs"; \
elif [ -d /usr/local/share/mibs ]; then \
cp ./MIB/* /usr/local/share/mibs; \
echo "MIBs copied to /usr/local/share/mibs"; \
elif [ -d $HOME/.snmp/mibs ]; then \
cp ./MIB/* $HOME/.snmp/mibs; \
echo "MIBs copied to $HOME/.snmp/mibs"; \
fi
clean:
rm ./MIB/*
tarball:
tar cvzf nagiosmib-${VERSION}.tar.gz README CHANGES LEGAL LICENSE ./MIB/*MIB
md5sum nagiosmib-${VERSION}.tar.gz > nagiosmib-${VERSION}.tar.gz.md5sum