nstall optional screenrc with helpful status line instead of the
default. Submitted by: alfred, kmoore Reviewed by: rodrigc
This commit is contained in:
parent
ec988c7cc1
commit
35d023ef00
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373436
3 changed files with 27 additions and 7 deletions
|
@ -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 colour xterm
|
|||
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>
|
||||
|
|
11
sysutils/screen/files/screenrc.sample
Normal file
11
sysutils/screen/files/screenrc.sample
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue