0002-Do-not-create-backup-of-old-installed-binary.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 86b5c7677c5bef780bd4c28cbbdaa97eda938230 Mon Sep 17 00:00:00 2001
  2. From: Maarten ter Huurne <maarten@treewalker.org>
  3. Date: Sun, 14 Sep 2014 23:58:34 +0200
  4. Subject: [PATCH] Do not create backup of old installed binary
  5. This is a rather unusual feature that packagers will not expect.
  6. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
  7. [baruch: update for 4.6.2]
  8. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  9. [Julien: rebase on top of 4.9.1]
  10. Signed-off-by: Julien Olivain <ju.o@free.fr>
  11. ---
  12. Makefile.in | 4 ----
  13. 1 file changed, 4 deletions(-)
  14. diff --git a/Makefile.in b/Makefile.in
  15. index 26ec404..3efbbfd 100644
  16. --- a/Makefile.in
  17. +++ b/Makefile.in
  18. @@ -83,12 +83,9 @@ screen: $(OFILES)
  19. $(OPTIONS) $(CFLAGS) $<
  20. install_bin: .version screen installdirs
  21. - -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
  22. - then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
  23. $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
  24. -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
  25. # This doesn't work if $(bindir)/screen is a symlink
  26. - -if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
  27. rm -f $(DESTDIR)$(bindir)/screen
  28. (cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
  29. cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
  30. @@ -113,7 +110,6 @@ installdirs:
  31. uninstall: .version
  32. rm -f $(DESTDIR)$(bindir)/$(SCREEN)
  33. rm -f $(DESTDIR)$(bindir)/screen
  34. - -mv $(DESTDIR)$(bindir)/screen.old $(DESTDIR)$(bindir)/screen
  35. rm -f $(DESTDIR)$(ETCSCREENRC)
  36. cd doc; $(MAKE) uninstall
  37. --
  38. 2.41.0