diff --git a/common/shlibs b/common/shlibs index 3597fe53797..1469cffe5bc 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4355,6 +4355,7 @@ libglibutil.so.1 libglibutil-1.0.64_1 libgbinder.so.1 libgbinder-1.1.20_1 libgxml-0.20.so.2.0.2 gxml-0.20.3_1 libsunpinyin.so.3 libsunpinyin-3.0.0rc2_1 +libsmi.so.2 libsmi-0.5.0_1 libtpm2-totp.so.0 libtpm2-totp-0.3.0_1 libmujs.so.1.2.0 mujs-1.2.0_2 libiir.so.1 libiir1-1.9.3_1 diff --git a/srcpkgs/libsmi-devel b/srcpkgs/libsmi-devel new file mode 120000 index 00000000000..d415907d686 --- /dev/null +++ b/srcpkgs/libsmi-devel @@ -0,0 +1 @@ +libsmi \ No newline at end of file diff --git a/srcpkgs/libsmi/patches/implicit-function.patch b/srcpkgs/libsmi/patches/implicit-function.patch new file mode 100644 index 00000000000..c5cfcbd3ea2 --- /dev/null +++ b/srcpkgs/libsmi/patches/implicit-function.patch @@ -0,0 +1,34 @@ +--- a/lib/yang-data.h ++++ b/lib/yang-data.h +@@ -154,6 +154,7 @@ _YangNode *listNode(YangList *e); + _YangImport *listImport(YangList *e); + + _YangIdentifierRef *listIdentifierRef(YangList *e); ++void createIdentifierRef(_YangNode *node, char* prefix, char* ident); + + /* + * Node and Module functions +--- a/lib/parser-yang.c ++++ b/lib/parser-yang.c +@@ -91,7 +91,9 @@ + #include + #endif + ++#include "smi-check.h" + #include "yang.h" ++#include "yang-check.h" + #include "yang-data.h" + #include "parser-yang.h" + #include "scanner-yang.h" +--- a/lib/parser-yang.y ++++ b/lib/parser-yang.y +@@ -34,7 +34,9 @@ + #include + #endif + ++#include "smi-check.h" + #include "yang.h" ++#include "yang-check.h" + #include "yang-data.h" + #include "parser-yang.h" + #include "scanner-yang.h" diff --git a/srcpkgs/libsmi/template b/srcpkgs/libsmi/template new file mode 100644 index 00000000000..5d9308cc461 --- /dev/null +++ b/srcpkgs/libsmi/template @@ -0,0 +1,29 @@ +# Template file for 'libsmi' +pkgname=libsmi +version=0.5.0 +revision=1 +build_style=gnu-configure +configure_args="WGET=/usr/bin/wget" +hostmakedepends="" +makedepends="" +depends="" +short_desc="Library to Access SMI MIB Information" +maintainer="Đoàn Trần Công Danh " +license="TCL, BSD-3-Clause, Beerware" +homepage="https://www.ibr.cs.tu-bs.de/projects/libsmi/" +distfiles="https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-${version}.tar.gz" +checksum=f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3 +CFLAGS=-D_DEFAULT_SOURCE + +libsmi-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/share/aclocal + vmove usr/share/man/man3 + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}