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