mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
Jump from the 3.x series; the SONAME moves from libsysrepo.so.7 to libsysrepo.so.8. The protobuf-c IPC layer is gone in favour of shared memory, taking its two stub patches and the libprotobuf-c, libev and libredblack dependencies with it, and DEPENDS moves back to +libyang. Renamed cmake options are dealt with; PRINTED_CONTEXT_ADDRESS=0 and NOTIFD_SETUP=OFF skip a try_run() and an install hook that both run target binaries, which cannot work when cross-compiling. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
31 lines
508 B
Bash
Executable File
31 lines
508 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$1" in
|
|
libsysrepo)
|
|
[ -e /usr/lib/libsysrepo.so ] || {
|
|
echo "libsysrepo.so not found" >&2
|
|
exit 1
|
|
}
|
|
[ -e /usr/lib/libsysrepo.so.8 ] || {
|
|
echo "libsysrepo.so.8 not found" >&2
|
|
exit 1
|
|
}
|
|
;;
|
|
sysrepo)
|
|
[ -x /usr/bin/sysrepo-plugind ] || {
|
|
echo "sysrepo-plugind not found" >&2
|
|
exit 1
|
|
}
|
|
;;
|
|
sysrepoctl)
|
|
sysrepoctl --version | grep -F "$2"
|
|
;;
|
|
sysrepocfg)
|
|
sysrepocfg --version | grep -F "$2"
|
|
;;
|
|
*)
|
|
echo "Unsupported test target: $1" >&2
|
|
exit 1
|
|
;;
|
|
esac
|