commit:     bc596e56ff93ca121317a12d7033c5a5f5440046
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 22 17:46:27 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Feb 22 17:52:13 2018 +0000
URL:        https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=bc596e56

Fix installation of .keep files

This partially reverts commit c4887e88316e2176dc99c173ccc6af825c10f745.
We need these .keep files.

 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index f1b0344d..e1eec2b1 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,7 @@ layout-dirs:
        # Create base filesytem layout
        for x in $(KEEP_DIRS) ; do \
                $(INSTALL_DIR) $(DESTDIR)$$x || exit $$? ; \
+               touch $(DESTDIR)$$x/.keep || exit $$? ; \
        done
 
 layout-BSD: layout-dirs
@@ -80,8 +81,11 @@ layout-Linux: layout-dirs
 layout: layout-dirs layout-$(OS)
        # Special dirs
        install -m 0700 -d $(DESTDIR)/root
+       touch $(DESTDIR)/root/.keep
        install -m 1777 -d $(DESTDIR)/var/tmp
+       touch $(DESTDIR)/var/tmp/.keep
        install -m 1777 -d $(DESTDIR)/tmp
+       touch $(DESTDIR)/tmp/.keep
        # FHS compatibility symlinks stuff
        ln -snf /var/tmp $(DESTDIR)/usr/tmp
 

Reply via email to