screen ohne hardcoded socket-dir
Hanno Böck

Hanno Böck commited on 2016-08-20 21:19:26
Zeige 5 geänderte Dateien mit 565 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,5 @@
1
+AUX screen-4.3.0-no-utempter.patch 363 SHA256 c8e4b1a03175fb2af3e13fa514b8a5456b53905a7ca51587195a62cb8d60e1c9 SHA512 0b2e6a2b54e6155e217ab44a0d8314afafd97fae684fbc2875c0f4d21df29cb259ea4023343e92da16dd3a2bf11ec6d06e677d765748299d1633aa1b9261a604 WHIRLPOOL c59a0c3f32ad50e15cd5e902b7b600cda18d2b676209628e7b96120866e7aba968264fbf8b35dc3e252b9fd63f21611005c9ec46cddc5e42b30c8da29a5e5186
2
+AUX screenrc 10412 SHA256 191d91f9fd1e676525a9e1a3bdc5ac73283f948caf74b4bb6e0cfcecbe4798bb SHA512 06fbec5e28480a2c369330fac0c94faa47e5d28e037d9fefd0cb3e813002c504866dc8ac86872b7ac6f16059a219e396a9c425b578b8afe882153ddb506158f7 WHIRLPOOL e05785d9810a709ccd189bbf1557022bd91f653ddb2f138e54286fbbc11ddbbedf2276d2b8bc975a8ff1ac024ab24d955a6b3055cf5cd2dfb445c35484e90f09
3
+DIST screen-4.4.0.tar.gz 846010 SHA256 ef722a54759a3bf23aad272bbf33c414c1078cad6bcd982fada93c0d7917218b SHA512 6e43f85c419f778822ec85e4340c95769e981a3d51abdeb5f26c6ebb840da9ab11b351ecc7f380ceea39bcfaa87f1124cfebd6af4ecb62b886eb189e7b79981b WHIRLPOOL a0d68d2d50f9f50537bf73a6dbb1ecbfe8c6af5c5322003a717431734bdc86a940fc55cd8c3a28b3e5ec572aaa0ceba376d97cbb8c5090a92d499cba2889b322
4
+EBUILD screen-4.4.0.ebuild 4011 SHA256 1c5d107a8acca1a8b1f2d976b92574f8855b3bfb551d10db810cd452a9e8ec08 SHA512 6546653a5e1d01fec0620b022c992311c46ae2c98a53cf56967a182b36d001daf29ec392eb24fdde2e53d541b00c5b2109d775be1cb3c7f703421561d9559ecb WHIRLPOOL bbb6ddb35a95bc1bafa41d7e5af6deedfa4c42ff8470895381eecd2ee8092f2be5368a81d61f47a0d9520935d4fd2495a20ed6b29df678a8401a492d07a51779
5
+MISC metadata.xml 1836 SHA256 984b97ece43237c29770f80c3aa7ab62fc2d426cffa8a2c0075674e935c19ce0 SHA512 e327b61501e6b496045d552851db574b519a99f56c9203c3376b886808a422f8e4aab23b667bcab0d1388ba7ea781c9c9e9f1d07b1426f113119c60cd70d0bcf WHIRLPOOL 545db9b6f0ad028845854bb55829c39b832251e8e790e910e64c2e00c8e8f554ee5fb7d98f1919b1f327fbae9b9e4e0978acef3a534e03de4b6b30f5bced07f6
... ...
@@ -0,0 +1,14 @@
1
+--- screen-4.3.0/configure.ac
2
++++ screen-4.3.0/configure.ac
3
+@@ -878,11 +878,6 @@
4
+ #include <utmp.h>
5
+ #endif
6
+ ],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
7
+-AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
8
+-if test "$have_utempter" = yes; then
9
+-  AC_DEFINE(HAVE_UTEMPTER)
10
+-  LIBS="$LIBS -lutempter"
11
+-fi
12
+ 
13
+ dnl
14
+ dnl    ****  loadav  ****
... ...
@@ -0,0 +1,356 @@
1
+# Copyright 1999-2012 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+#
4
+# /etc/screenrc
5
+#
6
+# This is the system wide screenrc.
7
+#
8
+# You can use this file to change the default behavior of screen system wide
9
+# or copy it to ~/.screenrc and use it as a starting point for your own
10
+# settings.
11
+#
12
+# Commands in this file are used to set options, bind screen functions to
13
+# keys, redefine terminal capabilities, and to automatically establish one or
14
+# more windows at the beginning of your screen session.
15
+#
16
+# This is not a comprehensive list of options, look at the screen manual for
17
+# details on everything that you can put in this file.
18
+#
19
+#
20
+
21
+# ==============================================================================
22
+# SCREEN SETTINGS
23
+# ==============================================================================
24
+
25
+# ESCAPE - the COMMAND CHARACTER
26
+# ===============================================================
27
+# escape ^aa  # default
28
+# escape ^^^^ # suggested binding (Control-^) for Emacs users
29
+
30
+
31
+# PASSWORD
32
+# ===============================================================
33
+# This commands sets the *internal* password for the screen session.
34
+# WARNING!! If this is set then a "lock" command will only let you in to the
35
+# session after you enter the user's account password and then *also*
36
+# the internal password for that session. This gives additional safety but,
37
+# if you forget the internal password then you cannot resume your session.
38
+# Use :password to generate a password
39
+# password ODSJQf.4IJN7E    # "1234"
40
+
41
+
42
+# VARIABLES
43
+# ===============================================================
44
+# No annoying audible bell, using "visual bell"
45
+# vbell on				# default: off
46
+# vbell_msg "   -- Bell,Bell!! --   "	# default: "Wuff,Wuff!!"
47
+
48
+# Automatically detach on hangup.
49
+  autodetach on				# default: on
50
+
51
+# Don't display the copyright page
52
+  startup_message off			# default: on
53
+
54
+# Uses nethack-style messages
55
+# nethack on				# default: off
56
+
57
+# Affects the copying of text regions
58
+  crlf off				# default: off
59
+
60
+# Enable/disable multiuser mode. Standard screen operation is singleuser.
61
+# In multiuser mode the commands acladd, aclchg, aclgrp and acldel can be used
62
+# to enable (and disable) other user accessing this screen session.
63
+# Requires suid-root.
64
+  multiuser off
65
+
66
+# Change default scrollback value for new windows
67
+  defscrollback 1000			# default: 100
68
+
69
+# Define the time that all windows monitored for silence should
70
+# wait before displaying a message. Default 30 seconds.
71
+  silencewait 15			# default: 30
72
+
73
+# bufferfile:   The file to use for commands
74
+#               "readbuf" ('<') and  "writebuf" ('>'):
75
+  bufferfile            $HOME/.screen_exchange
76
+#
77
+# hardcopydir:  The directory which contains all hardcopies.
78
+# hardcopydir           ~/.hardcopy
79
+# hardcopydir           ~/.screen
80
+#
81
+# shell:  Default process started in screen's windows.
82
+# Makes it possible to use a different shell inside screen
83
+# than is set as the default login shell.
84
+# If begins with a '-' character, the shell will be started as a login shell.
85
+# shell                 zsh
86
+# shell                 bash
87
+# shell                 ksh
88
+  shell -$SHELL
89
+
90
+# shellaka '> |tcsh'
91
+# shelltitle '$ |bash'
92
+
93
+# emulate .logout message
94
+  pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
95
+
96
+# caption always " %w --- %c:%s"
97
+# caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
98
+
99
+# advertise hardstatus support to $TERMCAP
100
+# termcapinfo  * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
101
+
102
+# set every new windows hardstatus line to somenthing descriptive
103
+# defhstatus "screen: ^En (^Et)"
104
+
105
+# don't kill window after the process died
106
+# zombie "^["
107
+
108
+# ignore displays that block on output
109
+defnonblock on
110
+
111
+# XTERM TWEAKS
112
+# ===============================================================
113
+
114
+# xterm understands both im/ic and doesn't have a status line.
115
+# Note: Do not specify im and ic in the real termcap/info file as
116
+# some programs (e.g. vi) will not work anymore.
117
+  termcap  xterm* hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
118
+  terminfo xterm* hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
119
+
120
+# 80/132 column switching must be enabled for ^AW to work
121
+# change init sequence to not switch width
122
+  termcapinfo  xterm* Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
123
+
124
+# Make the output buffer large for (fast) xterms.
125
+# termcapinfo xterm* OL=10000
126
+  termcapinfo xterm* OL=100
127
+
128
+# tell screen that xterm can switch to dark background and has function
129
+# keys.
130
+  termcapinfo xterm* 'VR=\E[?5h:VN=\E[?5l'
131
+  termcapinfo xterm* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
132
+  termcapinfo xterm* 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
133
+
134
+# special xterm hardstatus: use the window title.
135
+  termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
136
+
137
+#terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
138
+  termcapinfo xterm* 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
139
+
140
+# emulate part of the 'K' charset
141
+  termcapinfo xterm* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
142
+
143
+# xterm-52 tweaks:
144
+# - uses background color for delete operations
145
+  termcapinfo xterm* be
146
+
147
+# Do not use xterm's alternative window buffer, it breaks scrollback (see bug #61195)
148
+  termcapinfo xterm*|xs ti@:te=\E[2J
149
+
150
+# WYSE TERMINALS
151
+# ===============================================================
152
+
153
+#wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
154
+#essential to have it here, as this is a slow terminal.
155
+  termcapinfo wy75-42 xo:hs@
156
+
157
+# New termcap sequences for cursor application mode.
158
+  termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
159
+
160
+
161
+# OTHER TERMINALS
162
+# ===============================================================
163
+
164
+# make hp700 termcap/info better
165
+  termcapinfo  hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
166
+
167
+# Extend the vt100 desciption by some sequences.
168
+  termcap  vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
169
+  terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
170
+  termcapinfo linux C8
171
+# old rxvt versions also need this
172
+# termcapinfo rxvt C8
173
+
174
+
175
+# KEYBINDINGS
176
+# ==============================================================
177
+# The "bind" command assign keys to (internal) commands
178
+# SCREEN checks all the keys you type; you type the key
179
+# which is known as the "command character" then SCREEN
180
+# eats this key, too, and checks whether this key is
181
+# "bound" to a command.  If so then SCREEN will execute it.
182
+#
183
+# The command "bind" allows you to chose which keys
184
+# will be assigned to the commands.
185
+#
186
+# Some commands are bound to several keys -
187
+# usually to both some letter and its corresponding
188
+# control key combination, eg the command
189
+# "(create) screen" is bound to both 'c' and '^C'.
190
+#
191
+# The following list shows the default bindings:
192
+#
193
+# break       ^B b
194
+# clear       C
195
+# colon       :
196
+# copy        ^[ [
197
+# detach      ^D d
198
+# digraph     ^V
199
+# displays    *
200
+# dumptermcap .
201
+# fit         F
202
+# flow        ^F f
203
+# focus       ^I
204
+# hardcopy    h
205
+# help        ?
206
+# history     { }
207
+# info        i
208
+# kill        K k
209
+# lastmsg     ^M m
210
+# license     ,
211
+# log         H
212
+# login       L
213
+# meta        x
214
+# monitor     M
215
+# next        ^@ ^N sp n
216
+# number      N
217
+# only        Q
218
+# other       ^X
219
+# pow_break   B
220
+# pow_detach  D
221
+# prev        ^H ^P p ^?
222
+# quit        \
223
+# readbuf     <
224
+# redisplay   ^L l
225
+# remove      X
226
+# removebuf   =
227
+# reset       Z
228
+# screen      ^C c
229
+# select      " '
230
+# silence     _
231
+# split       S
232
+# suspend     ^Z z
233
+# time        ^T t
234
+# title       A
235
+# vbell       ^G
236
+# version     v
237
+# width       W
238
+# windows     ^W w
239
+# wrap        ^R r
240
+# writebuf    >
241
+# xoff        ^S s
242
+# xon         ^Q q
243
+# ^]  paste .
244
+# -   select -
245
+# 0   select 0
246
+# 1   select 1
247
+# 2   select 2
248
+# 3   select 3
249
+# 4   select 4
250
+# 5   select 5
251
+# 6   select 6
252
+# 7   select 7
253
+# 8   select 8
254
+# 9   select 9
255
+# I   login on
256
+# O   login off
257
+# ]   paste .
258
+#
259
+
260
+# And here are the default bind commands if you need them:
261
+#
262
+# bind A title
263
+# bind C clear
264
+# bind D pow_detach
265
+# bind F fit
266
+# bind H log
267
+# bind I login on
268
+# bind K kill
269
+# bind L login
270
+# bind M monitor
271
+# bind N number
272
+# bind O login off
273
+# bind Q only
274
+# bind S split
275
+# bind W width
276
+# bind X remove
277
+# bind Z reset
278
+
279
+# Let's remove some dangerous key bindings ...
280
+  bind k
281
+  bind ^k
282
+# bind .  dumptermcap # default
283
+  bind .
284
+# bind ^\ quit        # default
285
+  bind ^\
286
+# bind \\ quit        # default
287
+  bind \\
288
+# bind ^h ???         # default
289
+  bind ^h
290
+# bind h  hardcopy    # default
291
+  bind h
292
+
293
+# ... and make them better.
294
+  bind 'K' kill
295
+  bind 'I' login on
296
+  bind 'O' login off
297
+  bind '}' history
298
+
299
+# Yet another hack:
300
+# Prepend/append register [/] to the paste if ^a^] is pressed.
301
+# This lets me have autoindent mode in vi.
302
+  register [ "\033:se noai\015a"
303
+  register ] "\033:se ai\015a"
304
+  bind ^] paste [.]
305
+
306
+
307
+# hardstatus alwaysignore
308
+# hardstatus alwayslastline "%Lw"
309
+
310
+# Resize the current region. The space will be removed from or added to
311
+# the region below or if there's not enough space from the region above.
312
+  bind = resize =
313
+  bind + resize +3
314
+  bind - resize -3
315
+# bind _ resize max
316
+#
317
+# attrcolor u "-u b"
318
+# attrcolor b "R"
319
+
320
+# STARTUP SCREENS
321
+# ===============================================================
322
+# Defines the time screen delays a new message when one message
323
+# is currently displayed. The default is 1 second.
324
+#  msgminwait 2
325
+
326
+# Time a message is displayed if screen is not disturbed by
327
+# other activity. The dafault is 5 seconds:
328
+#  msgwait 2
329
+
330
+# Briefly show the version number of this starting
331
+# screen session - but only for *one* second:
332
+#  msgwait 1
333
+#  version
334
+
335
+# Welcome the user:
336
+# echo "welcome :-)"
337
+# echo "I love you today."
338
+
339
+# Uncomment one/some following lines to automatically let
340
+# SCREEN start some programs in the given window numbers:
341
+# screen -t MAIL        0 mutt
342
+# screen -t EDIT        1 vim
343
+# screen -t GOOGLE      2 links http://www.google.com
344
+# screen -t NEWS        3 slrn
345
+# screen -t WWW         4 links http://www.math.fu-berlin.de/~guckes/
346
+# screen 5
347
+# screen 6
348
+
349
+# Set the environment variable var to value string. If only var is specified,
350
+# you'll be prompted to enter a value. If no parameters are specified,
351
+# you'll be prompted for both variable and value. The environment is
352
+# inherited by all subsequently forked shells.
353
+# setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"'
354
+
355
+# Don't you want to start programs which need a DISPLAY ?
356
+# setenv DISPLAY ''
... ...
@@ -0,0 +1,35 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+  <maintainer type="person">
5
+    <email>swegener@gentoo.org</email>
6
+    <description>Primary Maintainer</description>
7
+  </maintainer>
8
+  <maintainer type="project">
9
+    <email>shell-tools@gentoo.org</email>
10
+    <name>Gentoo Shell Tools Project</name>
11
+  </maintainer>
12
+  <longdescription>
13
+Screen is a full-screen window manager that multiplexes a physical terminal
14
+between several processes, typically interactive shells. Each virtual terminal
15
+provides the functions of the DEC VT100 terminal and, in addition, several
16
+control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g.,
17
+insert/delete line and support for multiple character sets). There is a
18
+scrollback history buffer for each virtual terminal and a copy-and-paste
19
+mechanism that allows the user to move text regions between windows. When screen
20
+is called, it creates a single window with a shell in it (or the specified
21
+command) and then gets out of your way so that you can use the program as you
22
+normally would. Then, at any time, you can create new (full-screen) windows with
23
+other programs in them (including more shells), kill the current window, view a
24
+list of the active windows, turn output logging on and off, copy text between
25
+windows, view the scrollback history, switch between windows, etc. All windows
26
+run their programs completely independent of each other. Programs continue to
27
+run when their window is currently not visible and even when the whole screen
28
+session is detached from the users terminal.
29
+</longdescription>
30
+  <use>
31
+    <flag name="multiuser">Enable multiuser support (by setting correct
32
+    permissions)</flag>
33
+    <flag name="nethack">Express error messages in nethack style</flag>
34
+  </use>
35
+</pkgmetadata>
... ...
@@ -0,0 +1,155 @@
1
+# Copyright 1999-2016 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Id$
4
+
5
+EAPI=5
6
+
7
+inherit autotools eutils flag-o-matic pam toolchain-funcs user
8
+
9
+DESCRIPTION="screen manager with VT100/ANSI terminal emulation"
10
+HOMEPAGE="https://www.gnu.org/software/screen/"
11
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12
+
13
+LICENSE="GPL-2"
14
+SLOT="0"
15
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16
+IUSE="debug nethack pam selinux multiuser"
17
+
18
+CDEPEND="
19
+	>=sys-libs/ncurses-5.2:0=
20
+	pam? ( virtual/pam )"
21
+RDEPEND="${CDEPEND}
22
+	selinux? ( sec-policy/selinux-screen )"
23
+DEPEND="${CDEPEND}
24
+	sys-apps/texinfo"
25
+
26
+# Patches:
27
+# - Don't use utempter even if it is found on the system.
28
+PATCHES=(
29
+	"${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
30
+)
31
+
32
+pkg_setup() {
33
+	# Make sure utmp group exists, as it's used later on.
34
+	enewgroup utmp 406
35
+}
36
+
37
+src_prepare() {
38
+	# Apply patches.
39
+	epatch "${PATCHES[@]}"
40
+
41
+	# sched.h is a system header and causes problems with some C libraries
42
+	mv sched.h _sched.h || die
43
+	sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
44
+
45
+	# Fix manpage.
46
+	sed -i \
47
+		-e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
48
+		-e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
49
+		-e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
50
+		-e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
51
+		-e "s:/local/screens/S\\\-:${EPREFIX}/tmp/screen/S\\\-:g" \
52
+		doc/screen.1 \
53
+		|| die
54
+
55
+	if [[ ${CHOST} == *-darwin* ]] ; then
56
+		sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
57
+	fi
58
+
59
+	# reconfigure
60
+	eautoreconf
61
+}
62
+
63
+src_configure() {
64
+	append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
65
+
66
+	if [[ ${CHOST} == *-solaris* ]] ; then
67
+		# https://lists.gnu.org/archive/html/screen-devel/2014-04/msg00095.html
68
+		append-cppflags -D_XOPEN_SOURCE \
69
+			-D_XOPEN_SOURCE_EXTENDED=1 \
70
+			-D__EXTENSIONS__
71
+		append-libs -lsocket -lnsl
72
+	fi
73
+
74
+	use nethack || append-cppflags "-DNONETHACK"
75
+	use debug && append-cppflags "-DDEBUG"
76
+
77
+	econf \
78
+		--with-sys-screenrc="${EPREFIX}/etc/screenrc" \
79
+		--with-pty-mode=0620 \
80
+		--with-pty-group=5 \
81
+		--enable-rxvt_osc \
82
+		--enable-telnet \
83
+		--enable-colors256 \
84
+		$(use_enable pam)
85
+}
86
+
87
+src_compile() {
88
+	LC_ALL=POSIX emake comm.h term.h
89
+	emake osdef.h
90
+
91
+	emake -C doc screen.info
92
+	default
93
+}
94
+
95
+src_install() {
96
+	local tmpfiles_perms tmpfiles_group
97
+
98
+	dobin screen
99
+
100
+	if use multiuser || use prefix
101
+	then
102
+		fperms 4755 /usr/bin/screen
103
+		tmpfiles_perms="0755"
104
+		tmpfiles_group="root"
105
+	else
106
+		fowners root:utmp /usr/bin/screen
107
+		fperms 2755 /usr/bin/screen
108
+		tmpfiles_perms="0775"
109
+		tmpfiles_group="utmp"
110
+	fi
111
+
112
+	dodir /etc/tmpfiles.d
113
+	echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
114
+		> "${ED}"/etc/tmpfiles.d/screen.conf
115
+
116
+	insinto /usr/share/screen
117
+	doins terminfo/{screencap,screeninfo.src}
118
+	insinto /usr/share/screen/utf8encodings
119
+	doins utf8encodings/??
120
+	insinto /etc
121
+	doins "${FILESDIR}"/screenrc
122
+
123
+	pamd_mimic_system screen auth
124
+
125
+	dodoc \
126
+		README ChangeLog INSTALL TODO NEWS* patchlevel.h \
127
+		doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
128
+
129
+	doman doc/screen.1
130
+	doinfo doc/screen.info
131
+}
132
+
133
+pkg_postinst() {
134
+	if [[ -z ${REPLACING_VERSIONS} ]]
135
+	then
136
+		elog "Some dangerous key bindings have been removed or changed to more safe values."
137
+		elog "We enable some xterm hacks in our default screenrc, which might break some"
138
+		elog "applications. Please check /etc/screenrc for information on these changes."
139
+	fi
140
+
141
+	# Add /tmp/screen in case it doesn't exist yet. This should solve
142
+	# problems like bug #508634 where tmpfiles.d isn't in effect.
143
+	local rundir="${EROOT%/}/tmp/screen"
144
+	if [[ ! -d ${rundir} ]] ; then
145
+		if use multiuser || use prefix ; then
146
+			tmpfiles_group="root"
147
+		else
148
+			tmpfiles_group="utmp"
149
+		fi
150
+		mkdir -m 0775 "${rundir}"
151
+		chgrp ${tmpfiles_group} "${rundir}"
152
+	fi
153
+
154
+	ewarn "This revision changes the screen socket location to ${rundir}"
155
+}
0 156