1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/sysutils/screen/files/patch-aa
Kris Kennaway e5b91299c9 Don't install a screen -> screen.x.y.z symlink, this will leave behind
a setuid binary if people don't deinstall the old package properly.

Reviewed by:    ache (maintainer)
Submitted by:   Mike Silbersack <silby@silby.com>
2000-09-20 21:10:29 +00:00

29 lines
1.1 KiB
Plaintext

--- Makefile.in.orig Fri Sep 1 09:07:26 2000
+++ Makefile.in Sun Sep 17 18:29:18 2000
@@ -21,7 +21,7 @@
ETCSCREENRC = `sed < config.h -n -e '/define ETCSCREENRC/s/^.*"\([^"]*\)"/\1/p'`
CC = @CC@
-CFLAGS = -O
+#CFLAGS = -O
CPPFLAGS = @CPPFLAGS@
LDFLAGS =
LIBS = @LIBS@
@@ -68,14 +68,8 @@
$(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CFLAGS) $<
install_bin: .version screen
- -if [ -f $(bindir)/$(SCREEN) ] && [ ! -f $(bindir)/$(SCREEN).old ]; \
- then mv $(bindir)/$(SCREEN) $(bindir)/$(SCREEN).old; fi
- $(INSTALL_PROGRAM) screen $(bindir)/$(SCREEN)
- -chown root $(bindir)/$(SCREEN) && chmod 4755 $(bindir)/$(SCREEN)
-# This doesn't work if $(bindir)/screen is a symlink
- -if [ -f $(bindir)/screen ] && [ ! -f $(bindir)/screen.old ]; then mv $(bindir)/screen $(bindir)/screen.old; fi
- rm -f $(bindir)/screen
- ln -s $(SCREEN) $(bindir)/screen
+ $(INSTALL_PROGRAM) screen $(bindir)/screen
+ -chown root $(bindir)/screen && chmod 4755 $(bindir)/screen
###############################################################################
install: installdirs install_bin