1 |
commit: 52ba26ea1d1d78feb4e7d08919432abca428e8ba |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 26 12:16:34 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 26 12:16:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52ba26ea |
7 |
|
8 |
app-misc/screen: Version bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
app-misc/screen/Manifest | 1 + |
13 |
app-misc/screen/files/screen-4.5.1-texinfo.patch | 13 ++ |
14 |
app-misc/screen/screen-4.5.1.ebuild | 161 +++++++++++++++++++++++ |
15 |
3 files changed, 175 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/screen/Manifest b/app-misc/screen/Manifest |
18 |
index 0354db6185..2f60add8ce 100644 |
19 |
--- a/app-misc/screen/Manifest |
20 |
+++ b/app-misc/screen/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST screen-4.3.1.tar.gz 845958 SHA256 fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 SHA512 8e8a25b23330a7d8e00fc9e6cc430f0eb3937ccf4183efbd6fd24e4dc04cc09b3acae45bfc24892faee433b18fa79b1cfe0211fd75c0d74ecf908f916bf774aa WHIRLPOOL b47f7538351028cc3a2ec7f69a9373e152fa7655c6ae9feb75ba46db3cdc9b7d58ce78043993b7f134da3a04754c5e52d1a77da4c30a8decda21c79cf5c50f51 |
23 |
DIST screen-4.4.0.tar.gz 846010 SHA256 ef722a54759a3bf23aad272bbf33c414c1078cad6bcd982fada93c0d7917218b SHA512 6e43f85c419f778822ec85e4340c95769e981a3d51abdeb5f26c6ebb840da9ab11b351ecc7f380ceea39bcfaa87f1124cfebd6af4ecb62b886eb189e7b79981b WHIRLPOOL a0d68d2d50f9f50537bf73a6dbb1ecbfe8c6af5c5322003a717431734bdc86a940fc55cd8c3a28b3e5ec572aaa0ceba376d97cbb8c5090a92d499cba2889b322 |
24 |
DIST screen-4.5.0.tar.gz 963233 SHA256 01c3a7c362185f35d6a95dff52d64337076496acd034d717de3c263500cfefb0 SHA512 b2705ed9604355d4153d7902f820af6131a1f2387650f5c6efeda7acf543aad48e8603c26d7c6e74213c8eece994d5d9bb0d114bc19c8d8f3d8e99c00ea4a484 WHIRLPOOL 04b26e849ae0440778f2eee1a8d8730697a0f8ee933522ec16de697ff0cc189fc67b7e46b7cb218457ab53e491fceff0d70e44417c7c3af5c934cd3fae769382 |
25 |
+DIST screen-4.5.1.tar.gz 963153 SHA256 97db2114dd963b016cd4ded34831955dcbe3251e5eee45ac2606e67e9f097b2d SHA512 ca53477ad38264be38efb1d10a1337b647dd061127162c77533b17a30d046cd0caabe38e4a9e5389aac30d5dc62eb53e7877411e69adae36d0ca869bd0a82804 WHIRLPOOL db60013141e3f426107d3f1e518b48fc0bbf89fbf51b26b5ac7208b9940448397ec0009d389365289a1d06421b403982093c8b7ee8d891eea20c704d7ad376b1 |
26 |
|
27 |
diff --git a/app-misc/screen/files/screen-4.5.1-texinfo.patch b/app-misc/screen/files/screen-4.5.1-texinfo.patch |
28 |
new file mode 100644 |
29 |
index 0000000000..8d7a5e5271 |
30 |
--- /dev/null |
31 |
+++ b/app-misc/screen/files/screen-4.5.1-texinfo.patch |
32 |
@@ -0,0 +1,13 @@ |
33 |
+--- a/doc/screen.texinfo |
34 |
++++ b/doc/screen.texinfo |
35 |
+@@ -5796,8 +5796,8 @@ |
36 |
+ ============ |
37 |
+ |
38 |
+ @example |
39 |
+- Thomas Renninger <treen@××××.com>, |
40 |
+- Axel Beckert <abe@×××××××××××.org>, |
41 |
++ Thomas Renninger <treen@@suse.com>, |
42 |
++ Axel Beckert <abe@@deuxchevaux.org>, |
43 |
+ Ken Beal <kbeal@@amber.ssd.csd.harris.com>, |
44 |
+ Rudolf Koenig <rfkoenig@@informatik.uni-erlangen.de>, |
45 |
+ Toerless Eckert <eckert@@informatik.uni-erlangen.de>, |
46 |
|
47 |
diff --git a/app-misc/screen/screen-4.5.1.ebuild b/app-misc/screen/screen-4.5.1.ebuild |
48 |
new file mode 100644 |
49 |
index 0000000000..f4a542808d |
50 |
--- /dev/null |
51 |
+++ b/app-misc/screen/screen-4.5.1.ebuild |
52 |
@@ -0,0 +1,161 @@ |
53 |
+# Copyright 1999-2017 Gentoo Foundation |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+# $Id$ |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+SCM="" |
60 |
+[[ "${PV}" = 9999 ]] && SCM="git-r3" |
61 |
+inherit autotools eutils flag-o-matic pam toolchain-funcs user ${SCM} |
62 |
+unset SCM |
63 |
+ |
64 |
+DESCRIPTION="screen manager with VT100/ANSI terminal emulation" |
65 |
+HOMEPAGE="https://www.gnu.org/software/screen/" |
66 |
+ |
67 |
+if [[ "${PV}" != 9999 ]] ; then |
68 |
+ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
69 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
70 |
+else |
71 |
+ EGIT_REPO_URI="git://git.savannah.gnu.org/screen.git" |
72 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${P}" # needed for setting S later on |
73 |
+ S="${WORKDIR}"/${P}/src |
74 |
+fi |
75 |
+ |
76 |
+LICENSE="GPL-2" |
77 |
+SLOT="0" |
78 |
+IUSE="debug nethack pam selinux multiuser" |
79 |
+ |
80 |
+CDEPEND=" |
81 |
+ >=sys-libs/ncurses-5.2:0= |
82 |
+ pam? ( virtual/pam )" |
83 |
+RDEPEND="${CDEPEND} |
84 |
+ selinux? ( sec-policy/selinux-screen )" |
85 |
+DEPEND="${CDEPEND} |
86 |
+ sys-apps/texinfo" |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ # Don't use utempter even if it is found on the system. |
90 |
+ "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch |
91 |
+ # @ => @@ |
92 |
+ "${FILESDIR}"/${PN}-4.5.1-texinfo.patch |
93 |
+) |
94 |
+ |
95 |
+pkg_setup() { |
96 |
+ # Make sure utmp group exists, as it's used later on. |
97 |
+ enewgroup utmp 406 |
98 |
+} |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ default |
102 |
+ |
103 |
+ # sched.h is a system header and causes problems with some C libraries |
104 |
+ mv sched.h _sched.h || die |
105 |
+ sed -i '/include/ s:sched.h:_sched.h:' screen.h || die |
106 |
+ |
107 |
+ # Fix manpage. |
108 |
+ sed -i \ |
109 |
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \ |
110 |
+ -e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \ |
111 |
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \ |
112 |
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \ |
113 |
+ -e "s:/local/screens/S\\\-:${EPREFIX}/tmp/screen/S\\\-:g" \ |
114 |
+ doc/screen.1 \ |
115 |
+ || die |
116 |
+ |
117 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
118 |
+ sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die |
119 |
+ fi |
120 |
+ |
121 |
+ # reconfigure |
122 |
+ eautoreconf |
123 |
+} |
124 |
+ |
125 |
+src_configure() { |
126 |
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}" |
127 |
+ |
128 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
129 |
+ # enable msg_header by upping the feature standard compatible |
130 |
+ # with c99 mode |
131 |
+ append-cppflags -D_XOPEN_SOURCE=600 |
132 |
+ fi |
133 |
+ |
134 |
+ use nethack || append-cppflags "-DNONETHACK" |
135 |
+ use debug && append-cppflags "-DDEBUG" |
136 |
+ |
137 |
+ econf \ |
138 |
+ --with-socket-dir="${EPREFIX}/tmp/screen" \ |
139 |
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \ |
140 |
+ --with-pty-mode=0620 \ |
141 |
+ --with-pty-group=5 \ |
142 |
+ --enable-rxvt_osc \ |
143 |
+ --enable-telnet \ |
144 |
+ --enable-colors256 \ |
145 |
+ $(use_enable pam) |
146 |
+} |
147 |
+ |
148 |
+src_compile() { |
149 |
+ LC_ALL=POSIX emake comm.h term.h |
150 |
+ emake osdef.h |
151 |
+ |
152 |
+ emake -C doc screen.info |
153 |
+ default |
154 |
+} |
155 |
+ |
156 |
+src_install() { |
157 |
+ local DOCS=( |
158 |
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h |
159 |
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps} |
160 |
+ ) |
161 |
+ |
162 |
+ default |
163 |
+ |
164 |
+ local tmpfiles_perms tmpfiles_group |
165 |
+ |
166 |
+ if use multiuser || use prefix |
167 |
+ then |
168 |
+ fperms 4755 /usr/bin/screen-${PV} |
169 |
+ tmpfiles_perms="0755" |
170 |
+ tmpfiles_group="root" |
171 |
+ else |
172 |
+ fowners root:utmp /usr/bin/screen-${PV} |
173 |
+ fperms 2755 /usr/bin/screen-${PV} |
174 |
+ tmpfiles_perms="0775" |
175 |
+ tmpfiles_group="utmp" |
176 |
+ fi |
177 |
+ |
178 |
+ dodir /etc/tmpfiles.d |
179 |
+ echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \ |
180 |
+ > "${ED}"/etc/tmpfiles.d/screen.conf |
181 |
+ |
182 |
+ insinto /usr/share/screen |
183 |
+ doins terminfo/{screencap,screeninfo.src} |
184 |
+ |
185 |
+ insinto /etc |
186 |
+ doins "${FILESDIR}"/screenrc |
187 |
+ |
188 |
+ pamd_mimic_system screen auth |
189 |
+} |
190 |
+ |
191 |
+pkg_postinst() { |
192 |
+ if [[ -z ${REPLACING_VERSIONS} ]] |
193 |
+ then |
194 |
+ elog "Some dangerous key bindings have been removed or changed to more safe values." |
195 |
+ elog "We enable some xterm hacks in our default screenrc, which might break some" |
196 |
+ elog "applications. Please check /etc/screenrc for information on these changes." |
197 |
+ fi |
198 |
+ |
199 |
+ # Add /tmp/screen in case it doesn't exist yet. This should solve |
200 |
+ # problems like bug #508634 where tmpfiles.d isn't in effect. |
201 |
+ local rundir="${EROOT%/}/tmp/screen" |
202 |
+ if [[ ! -d ${rundir} ]] ; then |
203 |
+ if use multiuser || use prefix ; then |
204 |
+ tmpfiles_group="root" |
205 |
+ else |
206 |
+ tmpfiles_group="utmp" |
207 |
+ fi |
208 |
+ mkdir -m 0775 "${rundir}" |
209 |
+ chgrp ${tmpfiles_group} "${rundir}" |
210 |
+ fi |
211 |
+ |
212 |
+ ewarn "This revision changes the screen socket location to ${rundir}" |
213 |
+} |