From d146e9265b43729faf77aceef98aa53c1f59ca75 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 11 Aug 2023 17:33:06 +0900 Subject: [PATCH] Makefile: Install JSON Schema files and validator When installing toolbox, neither the JSON Schemas for IPC messages nor the validator are installed. Thus, it is not possible to use the validator to validate received messages. However, the validator is necessary to implement incoming message validation in the ipc module. This commit modifies the Makefile so that the JSON Schema files and validator are installed by the `install' target. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index a3f68cb..3cc71e4 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,13 @@ install: cp toolbox.sh $(DESTDIR)/$(PREFIX)/share/toolbox/. cp -r include $(DESTDIR)/$(PREFIX)/share/toolbox/. cp -r utils $(DESTDIR)/$(PREFIX)/share/toolbox/. + cp -r spec $(DESTDIR)/$(PREFIX)/share/toolbox/. chown -R root:root $(DESTDIR)/$(PREFIX)/share/toolbox find $(DESTDIR)/$(PREFIX)/share/toolbox -type d -exec chmod 755 {} \; find $(DESTDIR)/$(PREFIX)/share/toolbox -type f -exec chmod 644 {} \; chmod -R 755 $(DESTDIR)/$(PREFIX)/share/toolbox ln -sf $(PREFIX)/share/toolbox/toolbox.sh $(DESTDIR)/$(PREFIX)/bin/toolbox.sh + ln -sf $(PREFIX)/share/toolbox/spec/validate.py $(DESTDIR)/$(PREFIX)/bin/toolbox-json-validate ln -sf $(PREFIX)/share/toolbox/utils/ipc-tap.sh $(DESTDIR)/$(PREFIX)/bin/ipc-tap ln -sf $(PREFIX)/share/toolbox/utils/ipc-inject.sh $(DESTDIR)/$(PREFIX)/bin/ipc-inject ln -sf $(PREFIX)/share/toolbox/utils/ipc-sshtunnel.sh $(DESTDIR)/$(PREFIX)/bin/ipc-sshtunnel -- 2.47.3