diff options
-rw-r--r-- | meta-oe/recipes-support/libsmi/libsmi/smi.conf | 48 | ||||
-rw-r--r-- | meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb | 12 |
2 files changed, 59 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libsmi/libsmi/smi.conf b/meta-oe/recipes-support/libsmi/libsmi/smi.conf new file mode 100644 index 0000000000..7e4da86d9a --- /dev/null +++ b/meta-oe/recipes-support/libsmi/libsmi/smi.conf | |||
@@ -0,0 +1,48 @@ | |||
1 | # | ||
2 | # smi.conf - Global/User SMI configuration file. (EXAMPLE) | ||
3 | # | ||
4 | # Copyright (c) 2000 Frank Strauss, Technical University of Braunschweig. | ||
5 | # | ||
6 | # See the file "COPYING" for information on usage and redistribution | ||
7 | # of this file, and for a DISCLAIMER OF ALL WARRANTIES. | ||
8 | # | ||
9 | # @(#) $Id: smi.conf-example 1134 2001-06-11 09:59:13Z strauss $ | ||
10 | # | ||
11 | # | ||
12 | # See smi_config(3) for detailed information on configuration files. | ||
13 | # | ||
14 | |||
15 | # Extend (note the semicolon) the libsmi default module search path. | ||
16 | path :/usr/share/mibs/iana | ||
17 | path :/usr/share/mibs/ietf | ||
18 | path :/usr/share/mibs/irtf | ||
19 | path :/usr/share/mibs/tubs | ||
20 | |||
21 | # EXPERIMENTAL: Add a caching method (works only on UNIX systems). | ||
22 | # NOTE: the cache directory must exist and permissions must be | ||
23 | # handled appropriately. A simple but insecure way is to apply | ||
24 | # a tmp flag to the directory (chmod 1777 /usr/local/share/mibs/cache). | ||
25 | #cache /usr/local/share/mibs/cache /usr/local/bin/smicache -d /usr/local/share/mibs/cache -p http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/ | ||
26 | |||
27 | # Don't show any errors by default. | ||
28 | level 0 | ||
29 | |||
30 | # Preload some basic SMIv2 modules. | ||
31 | load SNMPv2-SMI | ||
32 | load SNMPv2-TC | ||
33 | load SNMPv2-CONF | ||
34 | |||
35 | # Make smilint shout loud to report all errors and warnings. | ||
36 | smilint: level 9 | ||
37 | |||
38 | # But please don't claim about any names longer than 32 chars. | ||
39 | # (note: this is the prefix of errors `namelength-32-module, | ||
40 | # -type, -object, -enumeration, and -bit) | ||
41 | smilint: hide namelength-32 | ||
42 | |||
43 | # Preloading some more modules for special applications. | ||
44 | tcpdump: load DISMAN-SCRIPT-MIB | ||
45 | tcpdump: load IF-MIB | ||
46 | |||
47 | smiquery: load IF-MIB | ||
48 | |||
diff --git a/meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb b/meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb index 2b036f9016..227430d106 100644 --- a/meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +++ b/meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb | |||
@@ -1,16 +1,26 @@ | |||
1 | SUMMARY = "A Library to Access SMI MIB Information" | 1 | SUMMARY = "A Library to Access SMI MIB Information" |
2 | HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi" | ||
2 | 3 | ||
3 | LICENSE = "BSD" | 4 | LICENSE = "BSD" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" |
5 | 6 | ||
6 | SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/${BP}.tar.gz" | 7 | SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ |
8 | file://smi.conf \ | ||
9 | " | ||
7 | 10 | ||
8 | SRC_URI[md5sum] = "760b6b1070738158708649ed2c63425e" | 11 | SRC_URI[md5sum] = "760b6b1070738158708649ed2c63425e" |
9 | SRC_URI[sha256sum] = "f048a5270f41bc88b0c3b0a8fe70ca4d716a46b531a0ecaaa87c462f49d74849" | 12 | SRC_URI[sha256sum] = "f048a5270f41bc88b0c3b0a8fe70ca4d716a46b531a0ecaaa87c462f49d74849" |
10 | 13 | ||
11 | inherit autotools | 14 | inherit autotools |
12 | 15 | ||
16 | do_install_append () { | ||
17 | install -d ${D}${sysconfdir} | ||
18 | install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf | ||
19 | } | ||
20 | |||
13 | PACKAGES += "${PN}-mibs ${PN}-pibs" | 21 | PACKAGES += "${PN}-mibs ${PN}-pibs" |
14 | 22 | ||
15 | FILES_${PN}-mibs += "${datadir}/mibs" | 23 | FILES_${PN}-mibs += "${datadir}/mibs" |
16 | FILES_${PN}-pibs += "${datadir}/pibs" | 24 | FILES_${PN}-pibs += "${datadir}/pibs" |
25 | |||
26 | RRECOMMENDS_${PN} = "${BPN}-mibs" | ||