Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2014 01:37:16 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373436 - in head/sysutils/screen: . files
Message-ID:  <201411260137.sAQ1bG4k013760@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Nov 26 01:37:15 2014
New Revision: 373436
URL: https://svnweb.freebsd.org/changeset/ports/373436
QAT: https://qat.redports.org/buildarchive/r373436/

Log:
  nstall optional screenrc with helpful status line instead of the
  default.
  
  Submitted by:	alfred, kmoore
  Reviewed by:	rodrigc

Added:
  head/sysutils/screen/files/screenrc.sample   (contents, props changed)
Modified:
  head/sysutils/screen/Makefile
  head/sysutils/screen/pkg-plist

Modified: head/sysutils/screen/Makefile
==============================================================================
--- head/sysutils/screen/Makefile	Wed Nov 26 00:32:10 2014	(r373435)
+++ head/sysutils/screen/Makefile	Wed Nov 26 01:37:15 2014	(r373436)
@@ -20,8 +20,8 @@ COMMENT=	Multi-screen window manager
 
 LICENSE=	GPLv3
 
-OPTIONS_DEFINE=		INFO MAN NETHACK XTERM_256 SHOWENC
-OPTIONS_DEFAULT=	INFO MAN NETHACK XTERM_256 SOCKETS
+OPTIONS_DEFINE=		INFO MAN NETHACK XTERM_256 SHOWENC SYSTEM_SCREENRC
+OPTIONS_DEFAULT=	INFO MAN NETHACK XTERM_256 SOCKETS SYSTEM_SCREENRC
 OPTIONS_SINGLE=		IPC
 OPTIONS_SINGLE_IPC=	SOCKETS NAMED_PIPES
 INFO_DESC=		Build and install info documentation
@@ -31,6 +31,7 @@ XTERM_256_DESC=		Enable support for 256 
 SHOWENC_DESC=		Show encoding on the status line
 SOCKETS_DESC=		Use new (4.2.1+) sockets for IPC (default)
 NAMED_PIPES_DESC=	Use legacy (4.0.3) named pipes for IPC (override)
+SYSTEM_SCREENRC_DESC=	Install system screenrc with helpful status line
 
 OPTIONS_SUB=
 
@@ -85,9 +86,16 @@ post-configure:
 	@${ECHO_CMD} User selected named pipes override set.
 .endif
 
+ETCDIR?=	${PREFIX}/etc
+
 post-install:
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${ETCDIR}
+.if ${PORT_OPTIONS:MSYSTEM_SCREENRC}
+	${INSTALL_DATA} ${FILESDIR}/screenrc.sample \
+		${STAGEDIR}${ETCDIR}/screenrc.sample
+.else
 	${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \
-		${STAGEDIR}${EXAMPLESDIR}/screenrc
+		${STAGEDIR}${ETCDIR}/screenrc.sample
+.endif
 
 .include <bsd.port.mk>

Added: head/sysutils/screen/files/screenrc.sample
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/screen/files/screenrc.sample	Wed Nov 26 01:37:15 2014	(r373436)
@@ -0,0 +1,11 @@
+startup_message off
+defscrollback 5000
+termcapinfo xterm ti@:te@
+termcapinfo xterm-color ti@:te@
+hardstatus alwayslastline
+hardstatus string '%{gk}[%{G}%H%{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}]%{=b C}[%m/%d/%y %C %A]%{W}'
+vbell off
+shell -$SHELL
+logtstamp on
+logtstamp after 1
+logfile flush

Modified: head/sysutils/screen/pkg-plist
==============================================================================
--- head/sysutils/screen/pkg-plist	Wed Nov 26 00:32:10 2014	(r373435)
+++ head/sysutils/screen/pkg-plist	Wed Nov 26 01:37:15 2014	(r373436)
@@ -1,8 +1,5 @@
 bin/screen
 %%MAN%%man/man1/screen.1.gz
-@unexec if cmp -s %D/etc/screenrc %D/%%EXAMPLESDIR%%/screenrc; then rm -f %D/etc/screenrc; else echo If permanently deleting this package, %%PREFIX%%/etc/screenrc must be removed manually; fi
-%%EXAMPLESDIR%%/screenrc
-@exec [ -f %D/etc/screenrc ] || cp %B/%f %D/etc/screenrc
 %%DATADIR%%/utf8encodings/01
 %%DATADIR%%/utf8encodings/02
 %%DATADIR%%/utf8encodings/03
@@ -20,3 +17,7 @@ bin/screen
 %%DATADIR%%/utf8encodings/cc
 %%DATADIR%%/utf8encodings/cd
 %%DATADIR%%/utf8encodings/d6
+@comment We always install the same screenrc it just depends on if we
+@comment are installing the the one bundled with source, or the one from
+@comment FILESDIR/screenrc.sample
+@sample %%ETCDIR%%/screenrc.sample



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411260137.sAQ1bG4k013760>