[CRIU] [PATCH v2] autofs: install -- Ship scripts/systemd-autofs-restart.sh

Cyrill Gorcunov gorcunov at openvz.org
Tue Apr 19 23:07:52 PDT 2016


From: Cyrill Gorcunov <gorcunov at virtuozzo.com>

This will be installed into $(prefix)/lib/libexec/criu/scripts.

Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 Makefile.install | 4 +++-
 criu/Makefile    | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.install b/Makefile.install
index 6fcf25e25562..9e9f8e646705 100644
--- a/Makefile.install
+++ b/Makefile.install
@@ -8,6 +8,7 @@ SYSTEMDUNITDIR	?= $(PREFIX)/lib/systemd/system/
 LOGROTATEDIR	?= $(PREFIX)/etc/logrotate.d/
 LIBDIR		?= $(PREFIX)/lib
 INCLUDEDIR	?= $(PREFIX)/include/criu
+LIBEXECDIR	?= $(PREFIX)/lib/libexec
 
 #
 # For recent Debian/Ubuntu with multiarch support.
@@ -23,12 +24,13 @@ else
 endif
 
 export SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR
-export INCLUDEDIR LIBDIR DESTDIR PREFIX
+export INCLUDEDIR LIBDIR DESTDIR PREFIX LIBEXECDIR
 
 install-tree:
 	$(Q) mkdir -p $(DESTDIR)$(SYSTEMDUNITDIR)
 	$(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR)
 	$(Q) mkdir -p $(DESTDIR)$(INCLUDEDIR)
+	$(Q) mkdir -p $(DESTDIR)$(LIBEXECDIR)
 .PHONY: install-tree
 
 install-man:
diff --git a/criu/Makefile b/criu/Makefile
index 1836bde5e1d3..3d46b88bb7f9 100644
--- a/criu/Makefile
+++ b/criu/Makefile
@@ -165,6 +165,8 @@ install: criu
 	$(Q) install -m 755 criu $(DESTDIR)$(SBINDIR)
 	$(Q) mkdir -p $(DESTDIR)$(INCLUDEDIR)
 	$(Q) install -m 644 $(UAPI_HEADERS) $(DESTDIR)$(INCLUDEDIR)
+	$(Q) mkdir -p $(DESTDIR)$(LIBEXECDIR)/criu/scripts
+	$(Q) install -m 755 $(SRC_DIR)/scripts/systemd-autofs-restart.sh $(DESTDIR)$(LIBEXECDIR)/criu/scripts
 .PHONY: install
 
 #
-- 
2.5.5



More information about the CRIU mailing list