2
1

screen-install-fix.patch 1.2 KB

123456789101112131415161718192021
  1. diff -ru screen-4.0.2_vanilla/Makefile.in screen-4.0.2_install-fixup/Makefile.in
  2. --- screen-4.0.2_vanilla/Makefile.in 2003-12-05 13:59:39.000000000 +0000
  3. +++ screen-4.0.2_install-fixup/Makefile.in 2009-01-03 15:20:22.000000000 +0000
  4. @@ -71,14 +71,9 @@
  5. $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CFLAGS) $<
  6. install_bin: .version screen
  7. - -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
  8. - then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
  9. - $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
  10. - -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
  11. -# This doesn't work if $(bindir)/screen is a symlink
  12. - -if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
  13. - rm -f $(DESTDIR)$(bindir)/screen
  14. - (cd $(DESTDIR)$(bindir) && ln -sf $(SCREEN) screen)
  15. + $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/screen
  16. + -chmod 4755 $(DESTDIR)$(bindir)/screen
  17. + mkdir -p $(DESTDIR)$(SCREENENCODINGS)
  18. cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
  19. ###############################################################################