]> git.pld-linux.org Git - packages/screen.git/blob - screen-DESTDIR.patch
- BuildRequires: autoconf
[packages/screen.git] / screen-DESTDIR.patch
1 --- screen-3.9.9/Makefile.in.orig       Fri May 25 16:50:54 2001
2 +++ screen-3.9.9/Makefile.in    Mon Jun 11 00:09:06 2001
3 @@ -18,7 +18,7 @@
4  bindir  = $(exec_prefix)/bin
5  
6  VERSION = @VERSION@
7 -SCREEN = screen-$(VERSION)
8 +SCREEN = screen
9  
10  ETCSCREENRC = `sed < config.h -n -e '/define ETCSCREENRC/s/^.*"\([^"]*\)"/\1/p'`
11  
12 @@ -70,26 +70,11 @@
13         $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CFLAGS) $<
14  
15  install_bin: .version screen
16 -       -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
17 -               then mv $(DESTDIR)$(bindir)/$(SCREEN) $(DESTDIR)$(bindir)/$(SCREEN).old; fi
18 -       $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
19 +       $(INSTALL_PROGRAM) $(SCREEN) $(DESTDIR)$(bindir)
20         -chown root $(DESTDIR)$(bindir)/$(SCREEN) && chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
21 -# This doesn't work if $(bindir)/screen is a symlink
22 -       -if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
23 -       rm -f $(DESTDIR)$(bindir)/screen
24 -       cd $(DESTDIR)$(bindir) && ln -sf $(SCREEN) screen
25  
26  ###############################################################################
27  install: installdirs install_bin
28 -       cd doc ; $(MAKE) install
29 -       -if [ -d /usr/lib/terminfo ]; then \
30 -               PATH="$$PATH:/usr/5bin" tic ${srcdir}/terminfo/screeninfo.src; \
31 -               chmod 644 /usr/lib/terminfo/s/screen*; \
32 -       fi
33 -# Better do this by hand. E.g. under RCS...
34 -#      cat ${srcdir}/terminfo/screencap >> /etc/termcap
35 -       @echo "termcap entry (${srcdir}/terminfo/screencap) should be installed manually."
36 -       @echo "You may also want to install $(srcdir)/etc/etcscreenrc in" $(ETCSCREENRC)
37  
38  installdirs:
39  # Path leading to ETCSCREENRC and Socketdirectory not checked.
This page took 0.062225 seconds and 3 git commands to generate.