~ubuntu-branches/ubuntu/trusty/screen/trusty-backports

« back to all changes in this revision

Viewing changes to debian/patches/11replace_doc_paths.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-23 17:36:30 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20071023173630-6q4agogsxuzujhwd
Tags: 4.0.3-7ubuntu1
* Merge with Debian; remaining Ubuntu changes:
  - 07_norootpassword.dpatch: When locking a root-owned screen, check that
    root has a password set. If not, ask for an unlocking key. (LP#6760)
  - debian/preinst: Remove obsolete init script 'screen' on
    upgrades. The script is called 'screen-cleanup' in Debian and thus
    should be called the same in Ubuntu to avoid a permanent and pointless
    delta. This needs to be kept until after the next LTS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 11replace_doc_paths.dpatch by  <hesso@pool.math.tu-berlin.de>
 
3
##
 
4
## DP: Fix the references to configuration and pipe paths to match the
 
5
## DP: locations Debian uses.
 
6
 
 
7
@DPATCH@
 
8
--- screen-4.0.3.orig/doc/screen.1      2007-07-23 23:15:03.000000000 +0200
 
9
+++ screen-4.0.3/doc/screen.1   2007-07-23 23:15:13.000000000 +0200
 
10
@@ -99,7 +99,7 @@
 
11
 The above example would start the emacs editor (editing prog.c) and switch
 
12
 to its window.
 
13
 .PP
 
14
-If \*Q/etc/utmp\*U is writable by
 
15
+If \*Q/var/run/utmp\*U is writable by
 
16
 .IR screen ,
 
17
 an appropriate record will be written to this file for each window, and
 
18
 removed when the window is terminated.
 
19
@@ -228,7 +228,7 @@
 
20
 The use of this option is discouraged.
 
21
 .TP 5
 
22
 .BR \-l " and " \-ln
 
23
-turns login mode on or off (for /etc/utmp updating).
 
24
+turns login mode on or off (for /var/run/utmp updating).
 
25
 This can also be defined through the \*Qdeflogin\*U .screenrc command.
 
26
 .TP 5
 
27
 .BR \-ls " and " \-list
 
28
@@ -581,7 +581,7 @@
 
29
 
 
30
 .SH CUSTOMIZATION
 
31
 The \*Qsocket directory\*U defaults either to $HOME/.screen or simply to
 
32
-/tmp/screens or preferably to /usr/local/screens chosen at compile-time. If
 
33
+/tmp/screens or preferably to /var/run/screen chosen at compile-time. If
 
34
 .I screen
 
35
 is installed setuid-root, then the administrator
 
36
 should compile
 
37
@@ -594,7 +594,7 @@
 
38
 When
 
39
 .I screen
 
40
 is invoked, it executes initialization commands from the files
 
41
-\*Q/usr/local/etc/screenrc\*U and
 
42
+\*Q/etc/screenrc\*U and
 
43
 \*Q.screenrc\*U in the user's home directory. These are the \*Qprogrammer's
 
44
 defaults\*U that can be overridden in the following ways: for the
 
45
 global screenrc file 
 
46
@@ -1669,7 +1669,7 @@
 
47
 The echo command may be used to annoy 
 
48
 .I screen
 
49
 users with a 'message of the
 
50
-day'. Typically installed in a global /local/etc/screenrc. 
 
51
+day'. Typically installed in a global /etc/screenrc. 
 
52
 The option \*Q-n\*U may be used to suppress the line feed.
 
53
 See also \*Qsleep\*U.
 
54
 Echo is also useful for online checking of environment variables.
 
55
@@ -4416,14 +4416,14 @@
 
56
 .I screen
 
57
 distribution package for private and global initialization files.
 
58
 .IP $SYSSCREENRC 
 
59
-.IP /usr/local/etc/screenrc
 
60
+.IP /etc/screenrc
 
61
 .I screen
 
62
 initialization commands
 
63
 .IP $SCREENRC
 
64
 .IP $HOME/.screenrc
 
65
-Read in after /usr/local/etc/screenrc
 
66
+Read in after /etc/screenrc
 
67
 .IP $SCREENDIR/S-<login>
 
68
-.IP /local/screens/S-<login>
 
69
+.IP /var/run/screen/S-<login>
 
70
 Socket directories (default)
 
71
 .IP /usr/tmp/screens/S-<login>
 
72
 Alternate socket directories.
 
73
@@ -4442,7 +4442,7 @@
 
74
 or
 
75
 .IP /etc/termcap
 
76
 Terminal capability databases
 
77
-.IP /etc/utmp
 
78
+.IP /var/run/utmp
 
79
 Login records
 
80
 .IP $LOCKPRG
 
81
 Program that locks a terminal.
 
82
@@ -4555,9 +4555,9 @@
 
83
 must be installed as set-uid with owner root on most systems in order
 
84
 to be able to correctly change the owner of the tty device file for
 
85
 each window.
 
86
-Special permission may also be required to write the file \*Q/etc/utmp\*U.
 
87
+Special permission may also be required to write the file \*Q/var/run/utmp\*U.
 
88
 .IP \(bu
 
89
-Entries in \*Q/etc/utmp\*U are not removed when
 
90
+Entries in \*Q/var/run/utmp\*U are not removed when
 
91
 .I screen
 
92
 is killed with SIGKILL.
 
93
 This will cause some programs (like "w" or "rwho")
 
94
--- screen-4.0.3.orig/doc/screen.texinfo        2007-07-23 23:15:06.000000000 +0200
 
95
+++ screen-4.0.3/doc/screen.texinfo     2007-07-23 23:15:14.000000000 +0200
 
96
@@ -176,7 +176,7 @@
 
97
 variable) who will use it to create the new window.  The above example would 
 
98
 start the @code{emacs} editor (editing @file{prog.c}) and switch to its window.
 
99
 
 
100
-If @file{/etc/utmp} is writable by @code{screen}, an appropriate record
 
101
+If @file{/var/run/utmp} is writable by @code{screen}, an appropriate record
 
102
 will be written to this file for each window, and removed when the
 
103
 window is closed.  This is useful for working with @code{talk},
 
104
 @code{script}, @code{shutdown}, @code{rsend}, @code{sccs} and other
 
105
@@ -305,7 +305,7 @@
 
106
 
 
107
 @item -l
 
108
 @itemx -ln
 
109
-Turn login mode on or off (for @file{/etc/utmp} updating).  This option
 
110
+Turn login mode on or off (for @file{/var/run/utmp} updating).  This option
 
111
 is equivalent to the @code{deflogin} command (@pxref{Login}).
 
112
 
 
113
 @item -ls [@var{match}]
 
114
@@ -447,7 +447,7 @@
 
115
 @cindex screenrc
 
116
 When @code{screen} is invoked, it executes initialization commands from
 
117
 the files @file{.screenrc} in the user's home directory and
 
118
-@file{/usr/local/etc/screenrc}.  These defaults can be overridden in the 
 
119
+@file{/etc/screenrc}.  These defaults can be overridden in the 
 
120
 following ways:
 
121
 For the global screenrc file @code{screen} searches for the environment
 
122
 variable @code{$SYSSCREENRC} (this override feature may be disabled at
 
123
@@ -997,7 +997,7 @@
 
124
 @item logfile @var{filename}
 
125
 Place where to collect logfiles.  @xref{Log}.
 
126
 @item login [@var{state}]
 
127
-Log the window in @file{/etc/utmp}.  @xref{Login}.
 
128
+Log the window in @file{/var/run/utmp}.  @xref{Login}.
 
129
 @item logtstamp [@var{state}]
 
130
 Configure logfile time-stamps.  @xref{Log}.
 
131
 @item mapdefault
 
132
@@ -1900,7 +1900,7 @@
 
133
 * Naming Windows::             Control the name of the window
 
134
 * Console::                    See the host's console messages
 
135
 * Kill::                        Destroy an unwanted window
 
136
-* Login::                       Control @file{/etc/utmp} logging
 
137
+* Login::                       Control @file{/var/run/utmp} logging
 
138
 * Mode::                        Control the file mode of the pty
 
139
 * Monitor::                     Watch for activity in a window
 
140
 * Windows::                    List the active windows
 
141
@@ -2109,7 +2109,7 @@
 
142
 @kindex L
 
143
 @deffn Command login [state]
 
144
 (@kbd{C-a L})@*
 
145
-Adds or removes the entry in @file{/etc/utmp} for the current window.
 
146
+Adds or removes the entry in @file{/var/run/utmp} for the current window.
 
147
 This controls whether or not the window is @dfn{logged in}.  In addition
 
148
 to this toggle, it is convenient to have ``log in'' and ``log out''
 
149
 keys.  For instance, @code{bind I login on} and @code{bind O 
 
150
@@ -4962,17 +4962,17 @@
 
151
 global initialization files.
 
152
 
 
153
 @item @code{$SYSSCREENRC}
 
154
-@itemx /local/etc/screenrc
 
155
+@itemx /etc/screenrc
 
156
 @code{screen} initialization commands
 
157
 
 
158
 @item @code{$SCREENRC}
 
159
 @itemx @code{$HOME}/.iscreenrc
 
160
 @itemx @code{$HOME}/.screenrc
 
161
-Read in after /local/etc/screenrc
 
162
+Read in after /etc/screenrc
 
163
 
 
164
 @item @code{$SCREENDIR}/S-@var{login}
 
165
 
 
166
-@item /local/screens/S-@var{login}
 
167
+@item /var/run/screen/S-@var{login}
 
168
 Socket directories (default)
 
169
 
 
170
 @item /usr/tmp/screens/S-@var{login}
 
171
@@ -4995,7 +4995,7 @@
 
172
 @itemx /etc/termcap
 
173
 Terminal capability databases
 
174
 
 
175
-@item /etc/utmp
 
176
+@item /var/run/utmp
 
177
 Login records
 
178
 
 
179
 @item @code{$LOCKPRG}
 
180
@@ -5100,10 +5100,10 @@
 
181
 in order to be able to
 
182
 correctly change the owner of the tty device file for each window.
 
183
 Special permission may also be required to write the file
 
184
-@file{/etc/utmp}.
 
185
+@file{/var/run/utmp}.
 
186
 
 
187
 @item
 
188
-Entries in @file{/etc/utmp} are not removed when @code{screen} is killed
 
189
+Entries in @file{/var/run/utmp} are not removed when @code{screen} is killed
 
190
 with SIGKILL.  This will cause some programs (like "w" or "rwho") to
 
191
 advertise that a user is logged on who really isn't.
 
192
 
 
193
@@ -5184,7 +5184,7 @@
 
194
 @cindex socket directory
 
195
 
 
196
 The socket directory defaults either to @file{$HOME/.screen} or simply to 
 
197
-@file{/tmp/screens} or preferably to @file{/usr/local/screens} chosen at 
 
198
+@file{/tmp/screens} or preferably to @file{/var/run/screen} chosen at 
 
199
 compile-time. If @code{screen} is installed
 
200
 setuid root, then the administrator should compile screen with an
 
201
 adequate (not NFS mounted) @code{SOCKDIR}. If @code{screen} is not