Hi all,
I've sent this to the maintainer some time ago, but have not heard
from him since, so now posting here :
I've been using misc/screen for quite some time now, always with a
setgid utmp binary. This enables me, amongst other things, to talk(1)
to other users from within a screen session. I find it a handy
addition, so I made it into a flavor, perhaps it could be the default
setting with a 'no-setgid'-flavor, but
Comments ? Flames ?
Cheers,
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/
Index: Makefile
===================================================================
RCS file: /cvs/ports/misc/screen/Makefile,v
retrieving revision 1.55
diff -u -r1.55 Makefile
--- Makefile 27 Jan 2005 02:09:52 -0000 1.55
+++ Makefile 1 Nov 2005 19:54:57 -0000
@@ -2,7 +2,7 @@
COMMENT= "multi-screen window manager"
-VERSION= 4.0.2
+VERSION= 4.0.2p0
DISTNAME= screen-${VERSION}
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/
@@ -24,7 +24,7 @@
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-sys-screenrc="${SYSCONFDIR}/screenrc"
-FLAVORS= static shm
+FLAVORS= static shm setgid
FLAVOR?=
.if ${FLAVOR:L} == "static"
@@ -35,6 +35,12 @@
.if ${FLAVOR:L} == "shm"
PATCH_LIST= patch-* shmpatch-*
.endif
+.if ${FLAVOR:L} == "setgid"
+MODE= 2755
+GROUP= utmp
+.else
+MODE= 755
+.endif
ALL_TARGET= screen screen.info
@@ -43,7 +49,8 @@
post-install:
@cd ${PREFIX}/bin && mv -f screen-${VERSION} screen
- @chmod 755 ${PREFIX}/bin/screen
+ @[ X != X${GROUP} ] && chgrp ${GROUP} ${PREFIX}/bin/screen
+ @chmod ${MODE} ${PREFIX}/bin/screen
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/screen
${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
${PREFIX}/share/examples/screen/screenrc
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/misc/screen/pkg/DESCR,v
retrieving revision 1.5
diff -u -r1.5 DESCR
--- pkg/DESCR 22 Nov 2003 00:56:58 -0000 1.5
+++ pkg/DESCR 1 Nov 2005 19:54:57 -0000
@@ -10,3 +10,4 @@
Flavors:
static - Build with statically linked binaries.
shm - export screen as shared memory, useful for brltty.
+ setgid - Install screen setgid utmp