2016-01-21 23:42:40 +01:00

48 lines
2.2 KiB
Plaintext

$NetBSD: patch-an,v 1.6 2015/09/01 13:34:47 kim Exp $
Remove GNU Make conditional. @ETCSCREENRC@ appears to get
replaced always. If it doesn't in some cases, please fix
configure.ac instead (and regen patch for configure as well).
Add utmp-netbsd.c (created in patch-am) and utmp-netbsd.o.
Setting the setuid bit is handled by the package Makefile.
Don't try to leave "screen.old" behind on install.
--- Makefile.in.orig 2014-04-26 10:58:35.000000000 +0000
+++ Makefile.in
@@ -26,9 +26,6 @@ GIT_REV = "`git describe --always 2>/dev
DEFS = @DEFS@ -DGIT_REV=\"$(GIT_REV)\"
ETCSCREENRC = @ETCSCREENRC@
-ifeq (${ETCSCREENRC}, )
-ETCSCREENRC=$(prefix)/etc/screenrc
-endif
SCREENENCODINGS = $(datadir)/screen/utf8encodings
CC = @CC@
@@ -65,12 +62,12 @@ CFILES= screen.c ansi.c fileio.c mark.c
termcap.c input.c attacher.c pty.c process.c display.c comm.c \
kmapdef.c acls.c braille.c braille_tsi.c logfile.c layer.c \
sched.c teln.c nethack.c encoding.c canvas.c layout.c viewport.c \
- list_display.c list_generic.c list_window.c
+ list_display.c list_generic.c list_window.c utmp-netbsd.c
OFILES= screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o \
search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o \
termcap.o input.o attacher.o pty.o process.o display.o comm.o \
kmapdef.o acls.o braille.o braille_tsi.o logfile.o layer.o \
- list_generic.o list_display.o list_window.o \
+ list_generic.o list_display.o list_window.o utmp-netbsd.o \
sched.o teln.o nethack.o encoding.o canvas.o layout.o viewport.o
all: screen
@@ -86,9 +83,6 @@ install_bin: .version screen
-if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
$(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
- -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
-# This doesn't work if $(bindir)/screen is a symlink
- -if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
rm -f $(DESTDIR)$(bindir)/screen
(cd $(DESTDIR)$(bindir) && ln -f -s $(SCREEN) screen)
cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)