-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
34 lines (28 loc) · 981 Bytes
/
Makefile
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
33
34
#Makefile for mib-downloader
#
CONFFILES= snmp-mibs-downloader.conf \
iana.conf ianalist \
rfc.conf rfclist rfcmibs.diff \
simpleweb.conf simplelist \
ianarfc.conf ianarfclist
BINFILES= download-mibs
INSTALL= /usr/bin/install
all:
install:
mkdir /usr/share/doc/mibrfcs
mkdir /usr/share/doc/mibiana
mkdir -p /usr/share/mibs/ietf
mkdir -p /usr/share/mibs/iana
mkdir /etc/snmp-mibs-downloader
$(INSTALL) -m 755 $(BINFILES) $(DESTDIR)/usr/bin
$(INSTALL) -m 644 $(CONFFILES) $(DESTDIR)/etc/snmp-mibs-downloader
cp mibrfcs/* $(DESTDIR)/usr/share/doc/mibrfcs
cp mibiana/* $(DESTDIR)/usr/share/doc/mibiana
ln -s /var/lib/mibs/ietf $(DESTDIR)/usr/share/mibs/ietf
ln -s /var/lib/mibs/iana $(DESTDIR)/usr/share/mibs/iana
clean:
rm -rf /etc/snmp-mibs-downloader
rm -rf /usr/share/doc/mibrfcs
rm -rf /usr/share/doc/mibiana
rm -rf /usr/share/mibs/ietf
rm -rf /usr/share/mibs/iana