mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
e5b91299c9
a setuid binary if people don't deinstall the old package properly. Reviewed by: ache (maintainer) Submitted by: Mike Silbersack <silby@silby.com>
29 lines
1.1 KiB
Plaintext
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
|