aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-09-21 05:10:29 +0800
committerkris <kris@FreeBSD.org>2000-09-21 05:10:29 +0800
commit12527eb0213368347b970f55ff15b0fdfe8d0650 (patch)
tree7fed1243b5abc0400596bcdd7845dd922f2de5a8 /sysutils
parentd3d2f9fda73a60ce5c586db5b9aaf4477e0bc496 (diff)
downloadfreebsd-ports-gnome-12527eb0213368347b970f55ff15b0fdfe8d0650.tar.gz
freebsd-ports-gnome-12527eb0213368347b970f55ff15b0fdfe8d0650.tar.zst
freebsd-ports-gnome-12527eb0213368347b970f55ff15b0fdfe8d0650.zip
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>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/screen/Makefile2
-rw-r--r--sysutils/screen/files/patch-aa21
-rw-r--r--sysutils/screen/pkg-plist1
3 files changed, 20 insertions, 4 deletions
diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile
index 97bfcc464277..e59febeed226 100644
--- a/sysutils/screen/Makefile
+++ b/sysutils/screen/Makefile
@@ -7,7 +7,7 @@
PORTNAME= screen
PORTVERSION= 3.9.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU}
diff --git a/sysutils/screen/files/patch-aa b/sysutils/screen/files/patch-aa
index c6f856c9ac65..d48e06506464 100644
--- a/sysutils/screen/files/patch-aa
+++ b/sysutils/screen/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile.in.orig Fri Sep 1 20:07:26 2000
-+++ Makefile.in Tue Sep 5 18:49:17 2000
+--- 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'`
@@ -9,3 +9,20 @@
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
diff --git a/sysutils/screen/pkg-plist b/sysutils/screen/pkg-plist
index 52f72c344f4f..ebfd9dec55bc 100644
--- a/sysutils/screen/pkg-plist
+++ b/sysutils/screen/pkg-plist
@@ -1,5 +1,4 @@
bin/screen
-bin/screen-3.9.8
@unexec install-info --delete %D/info/screen.info %D/info/dir
info/screen.info
@exec install-info %D/info/screen.info %D/info/dir