1 |
polynomial-c 14/04/30 15:21:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: screen-4.2.1-r2.ebuild |
5 |
Removed: screen-4.2.1-r1.ebuild |
6 |
Log: |
7 |
Another revbump to move screen's rundir to /tmp as /var/run doesn't get wiped on reboot |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.196 app-misc/screen/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/screen/ChangeLog?rev=1.196&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/screen/ChangeLog?rev=1.196&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/screen/ChangeLog?r1=1.195&r2=1.196 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/screen/ChangeLog,v |
21 |
retrieving revision 1.195 |
22 |
retrieving revision 1.196 |
23 |
diff -u -r1.195 -r1.196 |
24 |
--- ChangeLog 30 Apr 2014 15:05:17 -0000 1.195 |
25 |
+++ ChangeLog 30 Apr 2014 15:21:13 -0000 1.196 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-misc/screen |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/ChangeLog,v 1.195 2014/04/30 15:05:17 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/ChangeLog,v 1.196 2014/04/30 15:21:13 polynomial-c Exp $ |
31 |
+ |
32 |
+*screen-4.2.1-r2 (30 Apr 2014) |
33 |
+ |
34 |
+ 30 Apr 2014; Lars Wendler <polynomial-c@g.o> -screen-4.2.1-r1.ebuild, |
35 |
+ +screen-4.2.1-r2.ebuild: |
36 |
+ Another revbump to move screen's rundir to /tmp as /var/run doesn't get wiped |
37 |
+ on reboot. |
38 |
|
39 |
*screen-4.2.1-r1 (30 Apr 2014) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-misc/screen/screen-4.2.1-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/screen/screen-4.2.1-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/screen/screen-4.2.1-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: screen-4.2.1-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/screen-4.2.1-r2.ebuild,v 1.1 2014/04/30 15:21:13 polynomial-c Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit autotools eutils flag-o-matic pam toolchain-funcs user |
58 |
|
59 |
DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes" |
60 |
HOMEPAGE="http://www.gnu.org/software/screen/" |
61 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="" |
66 |
IUSE="debug nethack pam selinux multiuser" |
67 |
|
68 |
RDEPEND=">=sys-libs/ncurses-5.2 |
69 |
pam? ( virtual/pam ) |
70 |
selinux? ( sec-policy/selinux-screen )" |
71 |
DEPEND="${RDEPEND} |
72 |
sys-apps/texinfo" |
73 |
RDEPEND="${RDEPEND} |
74 |
>=sys-apps/openrc-0.11.6" |
75 |
|
76 |
pkg_setup() { |
77 |
# Make sure utmp group exists, as it's used later on. |
78 |
enewgroup utmp 406 |
79 |
} |
80 |
|
81 |
src_prepare() { |
82 |
# Don't use utempter even if it is found on the system |
83 |
epatch "${FILESDIR}"/4.0.2-no-utempter.patch |
84 |
|
85 |
# sched.h is a system header and causes problems with some C libraries |
86 |
mv sched.h _sched.h || die |
87 |
sed -i '/include/ s:sched.h:_sched.h:' screen.h || die |
88 |
|
89 |
# Fix manpage. |
90 |
sed -i \ |
91 |
-e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \ |
92 |
-e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \ |
93 |
-e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \ |
94 |
-e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \ |
95 |
-e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \ |
96 |
doc/screen.1 \ |
97 |
|| die "sed doc/screen.1 failed" |
98 |
|
99 |
# reconfigure |
100 |
eautoreconf |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}" |
105 |
|
106 |
[[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl |
107 |
|
108 |
use nethack || append-cppflags "-DNONETHACK" |
109 |
use debug && append-cppflags "-DDEBUG" |
110 |
|
111 |
econf \ |
112 |
--with-socket-dir="${EPREFIX}/tmp/screen" \ |
113 |
--with-sys-screenrc="${EPREFIX}/etc/screenrc" \ |
114 |
--with-pty-mode=0620 \ |
115 |
--with-pty-group=5 \ |
116 |
--enable-rxvt_osc \ |
117 |
--enable-telnet \ |
118 |
--enable-colors256 \ |
119 |
$(use_enable pam) |
120 |
|
121 |
LC_ALL=POSIX emake term.h |
122 |
emake osdef.h |
123 |
|
124 |
emake -C doc screen.info |
125 |
} |
126 |
|
127 |
src_install() { |
128 |
local tmpfiles_perms tmpfiles_group |
129 |
|
130 |
dobin screen |
131 |
|
132 |
if use multiuser || use prefix |
133 |
then |
134 |
fperms 4755 /usr/bin/screen |
135 |
tmpfiles_perms="0755" |
136 |
tmpfiles_group="root" |
137 |
else |
138 |
fowners root:utmp /usr/bin/screen |
139 |
fperms 2755 /usr/bin/screen |
140 |
tmpfiles_perms="0775" |
141 |
tmpfiles_group="utmp" |
142 |
fi |
143 |
|
144 |
dodir /etc/tmpfiles.d |
145 |
echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \ |
146 |
> "${ED}"/etc/tmpfiles.d/screen.conf |
147 |
|
148 |
insinto /usr/share/screen |
149 |
doins terminfo/{screencap,screeninfo.src} |
150 |
insinto /usr/share/screen/utf8encodings |
151 |
doins utf8encodings/?? |
152 |
insinto /etc |
153 |
doins "${FILESDIR}"/screenrc |
154 |
|
155 |
pamd_mimic_system screen auth |
156 |
|
157 |
dodoc \ |
158 |
README ChangeLog INSTALL TODO NEWS* patchlevel.h \ |
159 |
doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps} |
160 |
|
161 |
doman doc/screen.1 |
162 |
doinfo doc/screen.info |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
if [[ -z ${REPLACING_VERSIONS} ]] |
167 |
then |
168 |
elog "Some dangerous key bindings have been removed or changed to more safe values." |
169 |
elog "We enable some xterm hacks in our default screenrc, which might break some" |
170 |
elog "applications. Please check /etc/screenrc for information on these changes." |
171 |
fi |
172 |
|
173 |
# add /var/run/screen in case it doesn't exist yet. This should solve |
174 |
# problems like bug #508634 where tmpfiles.d isn't in effect. |
175 |
local rundir="${EROOT%/}/tmp/screen" |
176 |
if [[ ! -d ${rundir} ]] ; then |
177 |
if use multiuser || use prefix ; then |
178 |
tmpfiles_group="root" |
179 |
else |
180 |
tmpfiles_group="utmp" |
181 |
fi |
182 |
mkdir -m 0775 "${rundir}" |
183 |
chgrp ${tmpfiles_group} "${rundir}" |
184 |
fi |
185 |
|
186 |
ewarn "This revision changes the screen socket location to ${rundir}" |
187 |
} |