screen update
Hanno

Hanno commited on 2018-05-23 21:43:04
Zeige 2 geänderte Dateien mit 164 Einfügungen und 5 Löschungen.

... ...
@@ -1,5 +1,7 @@
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
1
+AUX screen-4.3.0-no-utempter.patch 363 BLAKE2B 2230c4cd52687f12f3cfd095f9d24d95fb2ec5fba283b60234779ad805d7caed740edc0ac6811b9e210483519be034c5cd799671d1fe0a4e0da1fe78ae6a305f SHA512 0b2e6a2b54e6155e217ab44a0d8314afafd97fae684fbc2875c0f4d21df29cb259ea4023343e92da16dd3a2bf11ec6d06e677d765748299d1633aa1b9261a604
2
+AUX screenrc 10412 BLAKE2B f4866f4a83b22c37484b66e4c7d52ec479fe12ae3e72e5c9e769b1b543ecf04d14ef4339e1c72064741cbf39502ef82d3beb213326a30889f128e135f60bd528 SHA512 06fbec5e28480a2c369330fac0c94faa47e5d28e037d9fefd0cb3e813002c504866dc8ac86872b7ac6f16059a219e396a9c425b578b8afe882153ddb506158f7
3
+DIST screen-4.4.0.tar.gz 846010 BLAKE2B 7c7d37b22c1993420dbd8d4083bee0a748f28ace434963b822607747879bda60c1f2f435814e9d07ea88e4bbc1b43b6f600fce204fda7fde4a52a6314a27494a SHA512 6e43f85c419f778822ec85e4340c95769e981a3d51abdeb5f26c6ebb840da9ab11b351ecc7f380ceea39bcfaa87f1124cfebd6af4ecb62b886eb189e7b79981b
4
+DIST screen-4.6.1.tar.gz 848979 BLAKE2B e78874b6d8723c52f827ab5e6b665102d7fd831f03a0006f9d31e000535ccce95ce08e2d302e34ba2d567167a917c8bd3b875843828d1951bcb38ab6ae4e0acf SHA512 e5d029400ed5b509ebddc1f55812c33536d6f5ce91119537c7d06e1fa7dee84939c43337df4638f61c818ce0412f4d08fe212202162a4483a9e84bbc4b3e4336
5
+EBUILD screen-4.4.0.ebuild 4011 BLAKE2B c826e8ac5ed4cc40cf4ae0ebce32a4fcdc893dcf6d142d8176d428b4fc6e519991ef9988fc090846c11fd7789f72f80401793b1a0fc3f01c114ba50936603e6b SHA512 6546653a5e1d01fec0620b022c992311c46ae2c98a53cf56967a182b36d001daf29ec392eb24fdde2e53d541b00c5b2109d775be1cb3c7f703421561d9559ecb
6
+EBUILD screen-4.6.1.ebuild 4019 BLAKE2B 22a3956f24d09d28a6dae3519e2134ff63dde879cc3a7322a1b7f9359d0dad8672cd2b94622b4fc3df37123032729cbb5cf5fc00dc01cbec023deec1ea43d0c7 SHA512 6882424a1fa884e65ef35051f54554674fe7a445ab1d9094557d43113e055954a257b6d273859ed2dd1c254c610c350d5c6d01d175bbbdecc3b34ca3ec9d814e
7
+MISC metadata.xml 1836 BLAKE2B 4625e11b8c3120b23e613e14d03ac88b505b412be97270159c881f56ebf674c78274a8dcf199d69ea91f6438d2661635ebbbf38fdc7ebebe8dd6e2ff88f4c6d7 SHA512 e327b61501e6b496045d552851db574b519a99f56c9203c3376b886808a422f8e4aab23b667bcab0d1388ba7ea781c9c9e9f1d07b1426f113119c60cd70d0bcf
... ...
@@ -0,0 +1,157 @@
1
+# Copyright 1999-2018 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+EAPI=6
5
+
6
+SCM=""
7
+[[ "${PV}" = 9999 ]] && SCM="git-r3"
8
+inherit autotools eutils flag-o-matic pam toolchain-funcs user ${SCM}
9
+unset SCM
10
+
11
+DESCRIPTION="screen manager with VT100/ANSI terminal emulation"
12
+HOMEPAGE="https://www.gnu.org/software/screen/"
13
+
14
+if [[ "${PV}" != 9999 ]] ; then
15
+	SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
16
+	KEYWORDS="alpha amd64 ~arm arm64 hppa ia64 m68k ~mips ~ppc ~ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17
+else
18
+	EGIT_REPO_URI="git://git.savannah.gnu.org/screen.git"
19
+	EGIT_CHECKOUT_DIR="${WORKDIR}/${P}" # needed for setting S later on
20
+	S="${WORKDIR}"/${P}/src
21
+fi
22
+
23
+LICENSE="GPL-2"
24
+SLOT="0"
25
+IUSE="debug nethack pam selinux multiuser"
26
+
27
+CDEPEND="
28
+	>=sys-libs/ncurses-5.2:0=
29
+	pam? ( virtual/pam )"
30
+RDEPEND="${CDEPEND}
31
+	selinux? ( sec-policy/selinux-screen )"
32
+DEPEND="${CDEPEND}
33
+	sys-apps/texinfo"
34
+
35
+PATCHES=(
36
+	# Don't use utempter even if it is found on the system.
37
+	"${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
38
+)
39
+
40
+pkg_setup() {
41
+	# Make sure utmp group exists, as it's used later on.
42
+	enewgroup utmp 406
43
+}
44
+
45
+src_prepare() {
46
+	default
47
+
48
+	# sched.h is a system header and causes problems with some C libraries
49
+	mv sched.h _sched.h || die
50
+	sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
51
+
52
+	# Fix manpage.
53
+	sed -i \
54
+		-e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
55
+		-e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
56
+		-e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
57
+		-e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
58
+		-e "s:/local/screens/S\\\-:${EPREFIX}/tmp/screen/S\\\-:g" \
59
+		doc/screen.1 \
60
+		|| die
61
+
62
+	if [[ ${CHOST} == *-darwin* ]] ; then
63
+		sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
64
+	fi
65
+
66
+	# reconfigure
67
+	eautoreconf
68
+}
69
+
70
+src_configure() {
71
+	append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
72
+
73
+	if [[ ${CHOST} == *-solaris* ]] ; then
74
+		# enable msg_header by upping the feature standard compatible
75
+		# with c99 mode
76
+		append-cppflags -D_XOPEN_SOURCE=600
77
+	fi
78
+
79
+	use nethack || append-cppflags "-DNONETHACK"
80
+	use debug && append-cppflags "-DDEBUG"
81
+
82
+	econf \
83
+		--with-sys-screenrc="${EPREFIX}/etc/screenrc" \
84
+		--with-pty-mode=0620 \
85
+		--with-pty-group=5 \
86
+		--enable-rxvt_osc \
87
+		--enable-telnet \
88
+		--enable-colors256 \
89
+		$(use_enable pam)
90
+}
91
+
92
+src_compile() {
93
+	LC_ALL=POSIX emake comm.h term.h
94
+	emake osdef.h
95
+
96
+	emake -C doc screen.info
97
+	default
98
+}
99
+
100
+src_install() {
101
+	local DOCS=(
102
+		README ChangeLog INSTALL TODO NEWS* patchlevel.h
103
+		doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
104
+	)
105
+
106
+	default
107
+
108
+	local tmpfiles_perms tmpfiles_group
109
+
110
+	if use multiuser || use prefix
111
+	then
112
+		fperms 4755 /usr/bin/screen-${PV}
113
+		tmpfiles_perms="0755"
114
+		tmpfiles_group="root"
115
+	else
116
+		fowners root:utmp /usr/bin/screen-${PV}
117
+		fperms 2755 /usr/bin/screen-${PV}
118
+		tmpfiles_perms="0775"
119
+		tmpfiles_group="utmp"
120
+	fi
121
+
122
+	dodir /etc/tmpfiles.d
123
+	echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
124
+		> "${ED}"/etc/tmpfiles.d/screen.conf
125
+
126
+	insinto /usr/share/screen
127
+	doins terminfo/{screencap,screeninfo.src}
128
+
129
+	insinto /etc
130
+	doins "${FILESDIR}"/screenrc
131
+
132
+	pamd_mimic_system screen auth
133
+}
134
+
135
+pkg_postinst() {
136
+	if [[ -z ${REPLACING_VERSIONS} ]]
137
+	then
138
+		elog "Some dangerous key bindings have been removed or changed to more safe values."
139
+		elog "We enable some xterm hacks in our default screenrc, which might break some"
140
+		elog "applications. Please check /etc/screenrc for information on these changes."
141
+	fi
142
+
143
+	# Add /tmp/screen in case it doesn't exist yet. This should solve
144
+	# problems like bug #508634 where tmpfiles.d isn't in effect.
145
+	local rundir="${EROOT%/}/tmp/screen"
146
+	if [[ ! -d ${rundir} ]] ; then
147
+		if use multiuser || use prefix ; then
148
+			tmpfiles_group="root"
149
+		else
150
+			tmpfiles_group="utmp"
151
+		fi
152
+		mkdir -m 0775 "${rundir}"
153
+		chgrp ${tmpfiles_group} "${rundir}"
154
+	fi
155
+
156
+	ewarn "This revision changes the screen socket location to ${rundir}"
157
+}
0 158