[CRIU] [PATCH] autofs: install -- Ship scripts/systemd-autofs-restart.sh
Cyrill Gorcunov
gorcunov at openvz.org
Fri Apr 15 11:10:53 PDT 2016
From: Cyrill Gorcunov <gorcunov at virtuozzo.com>
This will be installed into $(prefix)/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..1c5ecb64176c 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)/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 acd44ac12136..c6e7a142ce3b 100644
--- a/criu/Makefile
+++ b/criu/Makefile
@@ -205,6 +205,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