libsmi: add configure file
PATCH 1/1 libsmi: add configure file
From: Kai Kang <[email protected]>
Add configure file duplicated from file smi.conf-example in source code and replace paths with mibs files directories.
Then set libsmi-mibs as runtime recommend package to provide mibs files.
Add homepage and update SRC_URI as well.
--- meta-oe/recipes-support/libsmi/libsmi/smi.conf | 48 ++++++++++++++++++++++++++ meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb | 12 ++++++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/libsmi/libsmi/smi.conf
meta-oe/recipes-support/libsmi/libsmi/smi.conf new file +48 -0
@@ -0,0 +1,48 @@ +# +# smi.conf - Global/User SMI configuration file. (EXAMPLE) +# +# Copyright (c) 2000 Frank Strauss, Technical University of Braunschweig. +# +# See the file "COPYING" for information on usage and redistribution +# of this file, and for a DISCLAIMER OF ALL WARRANTIES. +# +# @(#) $Id: smi.conf-example 1134 2001-06-11 09:59:13Z strauss $ +# +# +# See smi_config(3) for detailed information on configuration files. +# + +# Extend (note the semicolon) the libsmi default module search path. +path :/usr/share/mibs/iana +path :/usr/share/mibs/ietf +path :/usr/share/mibs/irtf +path :/usr/share/mibs/tubs + +# EXPERIMENTAL: Add a caching method (works only on UNIX systems). +# NOTE: the cache directory must exist and permissions must be +# handled appropriately. A simple but insecure way is to apply +# a tmp flag to the directory (chmod 1777 /usr/local/share/mibs/cache). +#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/ + +# Don't show any errors by default. +level 0 + +# Preload some basic SMIv2 modules. +load SNMPv2-SMI +load SNMPv2-TC +load SNMPv2-CONF + +# Make smilint shout loud to report all errors and warnings. +smilint: level 9 + +# But please don't claim about any names longer than 32 chars. +# (note: this is the prefix of errors `namelength-32-module, +# -type, -object, -enumeration, and -bit) +smilint: hide namelength-32 + +# Preloading some more modules for special applications. +tcpdump: load DISMAN-SCRIPT-MIB +tcpdump: load IF-MIB + +smiquery: load IF-MIB +
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +11 -1
@@ -1,16 +1,26 @@ SUMMARY = "A Library to Access SMI MIB Information" +HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" -SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/${BP}.tar.gz" +SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ + file://smi.conf \ + " SRC_URI[md5sum] = "760b6b1070738158708649ed2c63425e" SRC_URI[sha256sum] = "f048a5270f41bc88b0c3b0a8fe70ca4d716a46b531a0ecaaa87c462f49d74849" inherit autotools +do_install_append () { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf +} + PACKAGES += "${PN}-mibs ${PN}-pibs" FILES_${PN}-mibs += "${datadir}/mibs" FILES_${PN}-pibs += "${datadir}/pibs" + +RRECOMMENDS_${PN} = "${BPN}-mibs"
Signature · 1 line
2.6.1
Quoted 75 lines · On Wed, Nov 04, 2015 at 05:46:36PM +0800, [email protected] wrote:
From: Kai Kang <[email protected]>
Add configure file duplicated from file smi.conf-example in source code and replace paths with mibs files directories.
Then set libsmi-mibs as runtime recommend package to provide mibs files.
Add homepage and update
SRC_URIas well.Signed-off-by Kai Kang <[email protected]>--- meta-oe/recipes-support/libsmi/libsmi/smi.conf | 48 ++++++++++++++++++++++++++ meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb | 12 ++++++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/libsmi/libsmi/smi.confmeta-oe/recipes-support/libsmi/libsmi/smi.conf new file +48
-0@@ -0,0 +1,48 @@ +# +# smi.conf - Global/User SMI configuration file. (EXAMPLE) +# +# Copyright (c) 2000 Frank Strauss, Technical University of Braunschweig. +# +# See the file "COPYING" for information on usage and redistribution +# of this file, and for a DISCLAIMER OF ALL WARRANTIES. +# +# @(#) $Id: smi.conf-example 1134 2001-06-11 09:59:13Z strauss $ +# +# +# See smi_config(3) for detailed information on configuration files. +# + +# Extend (note the semicolon) the libsmi default module search path. +path :/usr/share/mibs/iana +path :/usr/share/mibs/ietf +path :/usr/share/mibs/irtf +path :/usr/share/mibs/tubs + +# EXPERIMENTAL: Add a caching method (works only on UNIX systems). +# NOTE: the cache directory must exist and permissions must be +# handled appropriately. A simple but insecure way is to apply +# a tmp flag to the directory (chmod 1777 /usr/local/share/mibs/cache). +#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/ + +# Don't show any errors by default. +level 0 + +# Preload some basic SMIv2 modules. +load SNMPv2-SMI +load SNMPv2-TC +load SNMPv2-CONF + +# Make smilint shout loud to report all errors and warnings. +smilint: level 9 + +# But please don't claim about any names longer than 32 chars. +# (note: this is the prefix of errors `namelength-32-module, +# -type, -object, -enumeration, and -bit) +smilint: hide namelength-32 + +# Preloading some more modules for special applications. +tcpdump: load DISMAN-SCRIPT-MIB +tcpdump: load IF-MIB + +smiquery: load IF-MIB +meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +0
-0
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb line 8
Quoted 9 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +3
-1@@ -1,16 +1,26 @@ SUMMARY = "A Library to Access SMI MIB Information" +HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" -SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/${BP}.tar.gz" +SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ + file://smi.conf \
4 spaces
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb line 9
Quoted 1 line
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +1
-0+ "
Closing quote should be first character.
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb line 18
Quoted 9 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +3
-0SRC_URI[md5sum] = "760b6b1070738158708649ed2c63425e" SRC_URI[sha256sum] = "f048a5270f41bc88b0c3b0a8fe70ca4d716a46b531a0ecaaa87c462f49d74849" inherit autotools +do_install_append () { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf
Sane layers are using consistent indentation with 4 spaces.
I've fixed this when cherry-picking to master.
Quoted 16 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +4
-0+} + PACKAGES += "${PN}-mibs ${PN}-pibs" FILES_${PN}-mibs += "${datadir}/mibs" FILES_${PN}-pibs += "${datadir}/pibs" + +RRECOMMENDS_${PN} = "${BPN}-mibs"Signature · 7 lines
2.6.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 94 lines · Martin Jansa
Quoted 75 lines · On Wed, Nov 04, 2015 at 05:46:36PM +0800, [email protected] wrote:
From: Kai Kang <[email protected]>
Add configure file duplicated from file smi.conf-example in source code and replace paths with mibs files directories.
Then set libsmi-mibs as runtime recommend package to provide mibs files.
Add homepage and update
SRC_URIas well.Signed-off-by Kai Kang <[email protected]>--- meta-oe/recipes-support/libsmi/libsmi/smi.conf | 48 ++++++++++++++++++++++++++ meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb | 12 ++++++- 2 files changed, 59 insertions(+), 1 deletion(-)create mode 100644
meta-oe/recipes-support/libsmi/libsmi/smi.confmeta-oe/recipes-support/libsmi/libsmi/smi.conf new file +48
-0@@ -0,0 +1,48 @@ +# +# smi.conf - Global/User SMI configuration file. (EXAMPLE) +# +# Copyright (c) 2000 Frank Strauss, Technical University of Braunschweig. +# +# See the file "COPYING" for information on usage and redistribution +# of this file, and for a DISCLAIMER OF ALL WARRANTIES. +# +# @(#) $Id: smi.conf-example 1134 2001-06-11 09:59:13Z strauss $ +# +# +# See smi_config(3) for detailed information on configuration files. +# + +# Extend (note the semicolon) the libsmi default module search path. +path :/usr/share/mibs/iana +path :/usr/share/mibs/ietf +path :/usr/share/mibs/irtf +path :/usr/share/mibs/tubs + +# EXPERIMENTAL: Add a caching method (works only on UNIX systems). +# NOTE: the cache directory must exist and permissions must be +# handled appropriately. A simple but insecure way is to apply +# a tmp flag to the directory (chmod 1777 /usr/local/share/mibs/cache). +#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/ + +# Don't show any errors by default. +level 0 + +# Preload some basic SMIv2 modules. +load SNMPv2-SMI +load SNMPv2-TC +load SNMPv2-CONF + +# Make smilint shout loud to report all errors and warnings. +smilint: level 9 + +# But please don't claim about any names longer than 32 chars. +# (note: this is the prefix of errors `namelength-32-module, +# -type, -object, -enumeration, and -bit) +smilint: hide namelength-32 + +# Preloading some more modules for special applications. +tcpdump: load DISMAN-SCRIPT-MIB +tcpdump: load IF-MIB + +smiquery: load IF-MIB +meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +0
-0meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb line 8
Quoted 9 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +3
-1@@ -1,16 +1,26 @@ SUMMARY = "A Library to Access SMI MIB Information" +HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" -SRC_URI = "ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/${BP}.tar.gz" +SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ + file://smi.conf \4 spaces
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb line 9
Quoted 1 line
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +1
-0+ "Closing quote should be first character.
Quoted 4 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +0
-0SRC_URI[md5sum] = "760b6b1070738158708649ed2c63425e" SRC_URI[sha256sum] = "f048a5270f41bc88b0c3b0a8fe70ca4d716a46b531a0ecaaa87c462f49d74849"
Quoted 8 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb line 18
Quoted 5 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +3
-0inherit autotools +do_install_append () { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.confSane layers are using consistent indentation with 4 spaces.
I've fixed this when cherry-picking to master.
Thanks. I'll follow the style next time.
--Kai
Quoted 19 lines
Quoted 17 lines
meta-oe/recipes-support/libsmi/libsmi_0.4.8.bb +4
-0+} + PACKAGES += "${PN}-mibs ${PN}-pibs" FILES_${PN}-mibs += "${datadir}/mibs" FILES_${PN}-pibs += "${datadir}/pibs" + +RRECOMMENDS_${PN} = "${BPN}-mibs"Signature · 7 lines
2.6.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
Regards, Neil | Kai Kang