Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "A Library to Access SMI MIB Information" |
| 2 | HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi" |
| 3 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "BSD-3-Clause & TCL" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" |
| 6 | |
| 7 | SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ |
| 8 | file://smi.conf \ |
| 9 | file://libsmi-fix-the-test-dump-files.patch \ |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 10 | file://0001-Define-createIdentifierRef-prototype-in-yang-complex.patch \ |
| 11 | file://0001-parser-yang-Define-_DEFAULT_SOURCE.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | " |
| 13 | |
| 14 | SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" |
| 15 | SRC_URI[sha256sum] = "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3" |
| 16 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 17 | DEPENDS += "bison-native flex-native wget-native gawk-native" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 18 | |
Patrick Williams | 56b44a9 | 2024-01-19 08:49:29 -0600 | [diff] [blame] | 19 | inherit autotools-brokensep update-alternatives |
| 20 | ALTERNATIVE_PRIORITY = "50" |
| 21 | ALTERNATIVE:${PN}-yang = "ietf-interfaces " |
| 22 | ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 24 | EXTRA_OECONF:class-native = "ac_cv_path_SH=/bin/sh" |
| 25 | EXTRA_OECONF:class-target = "ac_cv_path_SH=/bin/sh ac_cv_path_WGET=${bindir}/wget ac_cv_path_AWK=${bindir}/awk" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | do_install:append () { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 28 | install -d ${D}${sysconfdir} |
| 29 | install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf |
| 30 | } |
| 31 | |
| 32 | PACKAGES += "${PN}-mibs ${PN}-pibs ${PN}-yang" |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | FILES:${PN}-mibs += "${datadir}/mibs" |
| 35 | FILES:${PN}-pibs += "${datadir}/pibs" |
| 36 | FILES:${PN}-yang += "${datadir}/yang" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 37 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 38 | RRECOMMENDS:${PN} = "${BPN}-mibs" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 39 | |
| 40 | BBCLASSEXTEND = "native nativesdk" |