blob: 822b7ffc2b876a20d2c5927dd6582f31829cac86 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "A Library to Access SMI MIB Information"
2HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi"
3
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "BSD-3-Clause & TCL"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7"
6
7SRC_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 Geissler87f5cff2022-09-30 13:13:31 -050010 file://0001-Define-createIdentifierRef-prototype-in-yang-complex.patch \
11 file://0001-parser-yang-Define-_DEFAULT_SOURCE.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012 "
13
14SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11"
15SRC_URI[sha256sum] = "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3"
16
Patrick Williamsac13d5f2023-11-24 18:59:46 -060017DEPENDS += "bison-native flex-native wget-native gawk-native"
Patrick Williamsddad1a12017-02-23 20:36:32 -060018
Patrick Williams56b44a92024-01-19 08:49:29 -060019inherit autotools-brokensep update-alternatives
20ALTERNATIVE_PRIORITY = "50"
21ALTERNATIVE:${PN}-yang = "ietf-interfaces "
22ALTERNATIVE_LINK_NAME[ietf-interfaces] = "${datadir}/yang/ietf-interfaces.yang"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023
Patrick Williams73bd93f2024-02-20 08:07:48 -060024EXTRA_OECONF:class-native = "ac_cv_path_SH=/bin/sh"
25EXTRA_OECONF:class-target = "ac_cv_path_SH=/bin/sh ac_cv_path_WGET=${bindir}/wget ac_cv_path_AWK=${bindir}/awk"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050026
Patrick Williams213cb262021-08-07 19:21:33 -050027do_install:append () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028 install -d ${D}${sysconfdir}
29 install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf
30}
31
32PACKAGES += "${PN}-mibs ${PN}-pibs ${PN}-yang"
33
Patrick Williams213cb262021-08-07 19:21:33 -050034FILES:${PN}-mibs += "${datadir}/mibs"
35FILES:${PN}-pibs += "${datadir}/pibs"
36FILES:${PN}-yang += "${datadir}/yang"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050037
Patrick Williams213cb262021-08-07 19:21:33 -050038RRECOMMENDS:${PN} = "${BPN}-mibs"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060039
40BBCLASSEXTEND = "native nativesdk"