0001-Use-DESTDIR-when-installing-mount.smb3-and-optionall.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From dbb4452787cb966cc74b2015689961875fd5d668 Mon Sep 17 00:00:00 2001
  2. From: Ryan Barnett <ryanbarnett3@gmail.com>
  3. Date: Mon, 27 Apr 2020 22:03:25 -0500
  4. Subject: [PATCH] Use DESTDIR when installing mount.smb3 and optionally install
  5. man page
  6. Properly create mount.smb3 symlink by using DESTDIR. Also use
  7. CONFIG_MAN to optionally install manpage for mount.smb3.
  8. Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
  9. ---
  10. Upstream: https://marc.info/?l=linux-cifs&m=158804444725745&w=2
  11. ---
  12. Makefile.am | 10 ++++++----
  13. 1 file changed, 6 insertions(+), 4 deletions(-)
  14. diff --git a/Makefile.am b/Makefile.am
  15. index fe9cd34..e0587f1 100644
  16. --- a/Makefile.am
  17. +++ b/Makefile.am
  18. @@ -119,11 +119,13 @@ endif
  19. SUBDIRS = contrib
  20. install-exec-hook:
  21. - (cd $(ROOTSBINDIR) && ln -sf mount.cifs mount.smb3)
  22. + (cd $(DESTDIR)$(ROOTSBINDIR) && ln -sf mount.cifs mount.smb3)
  23. +if CONFIG_MAN
  24. install-data-hook:
  25. - (cd $(man8dir) && ln -sf mount.cifs.8 mount.smb3.8)
  26. + (cd $(DESTDIR)$(man8dir) && ln -sf mount.cifs.8 mount.smb3.8)
  27. +endif
  28. uninstall-hook:
  29. - (cd $(ROOTSBINDIR) && rm -f $(ROOTSBINDIR)/mount.smb3)
  30. - (cd $(man8dir) && rm -f $(man8dir)/mount.smb3.8)
  31. + rm -f $(DESTDIR)$(ROOTSBINDIR)/mount.smb3
  32. + rm -f $(DESTDIR)$(man8dir)/mount.smb3.8
  33. --
  34. 2.17.1