Browse Source

[2854] make the default mapped_files directory by make install

JINMEI Tatuya 12 years ago
parent
commit
e65eaed0d7
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/bin/memmgr/Makefile.am

+ 9 - 0
src/bin/memmgr/Makefile.am

@@ -48,5 +48,14 @@ b10-memmgr: memmgr.py $(PYTHON_LOGMSGPKG_DIR)/work/memmgr_messages.py
 
 CLEANDIRS = __pycache__
 
+# install the default directory for memory-mapped files.  Note that the
+# path must be identical to the default value in memmgr.spec.  We'll make
+# it readable only for the owner to minimize the risk of accidents.
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)@localstatedir@/@PACKAGE@/mapped_files
+
+install-data-hook:
+	-chmod 700 $(DESTDIR)@localstatedir@/@PACKAGE@/mapped_files
+
 clean-local:
 	rm -rf $(CLEANDIRS)