0002-install-no-backup-binary.patch 1.5 KB

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