socketcand-replace-cp-by-install.patch 1.1 KB

12345678910111213141516171819202122232425
  1. From 9d2797ce08034aba0087e6fe45873c3ccd8db489 Mon Sep 17 00:00:00 2001
  2. From: Maxime Ripard <maxime.ripard@free-electrons.com>
  3. Date: Tue, 3 Apr 2012 10:35:09 +0200
  4. Subject: [PATCH] Remove cp -n which might not exist on old system and rely on install instead
  5. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  6. ---
  7. Makefile.in | 2 +-
  8. 1 files changed, 1 insertions(+), 1 deletions(-)
  9. diff --git a/Makefile.in b/Makefile.in
  10. index 40d8193..290a8dd 100644
  11. --- a/Makefile.in
  12. +++ b/Makefile.in
  13. @@ -38,6 +38,6 @@ install: socketcand
  14. mkdir -p $(DESTDIR)$(sysroot)$(mandir)
  15. cp $(srcdir)/socketcand.1 $(DESTDIR)$(sysroot)$(mandir)/
  16. mkdir -p $(DESTDIR)$(sysroot)/etc/
  17. - cp -n $(srcdir)/etc/socketcand.conf $(DESTDIR)$(sysroot)/etc/
  18. + install -m 0644 $(srcdir)/etc/socketcand.conf $(DESTDIR)$(sysroot)/etc/
  19. if [ $(init_script) = yes ]; then mkdir -p $(DESTDIR)$(sysroot)/etc/init.d; install --mode=755 $(srcdir)/init.d/socketcand $(DESTDIR)$(sysroot)/etc/init.d/socketcand; fi
  20. if [ $(rc_script) = yes ]; then install --mode=755 $(srcdir)/rc.d/socketcand $(DESTDIR)$(sysroot)/etc/rc.d/socketcand; fi
  21. --
  22. 1.7.4.1