From 662ab1a7d75d839804df3d188251795b0aae0538 Mon Sep 17 00:00:00 2001 From: Maik Schreiber Date: Wed, 18 Dec 2002 23:19:31 +0000 Subject: changed permissions of /var/run/screen to 0755 --- app-misc/screen/ChangeLog | 13 +++-- app-misc/screen/files/digest-screen-3.9.13-r2 | 1 + app-misc/screen/screen-3.9.13-r2.ebuild | 79 +++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 4 deletions(-) create mode 100644 app-misc/screen/files/digest-screen-3.9.13-r2 create mode 100644 app-misc/screen/screen-3.9.13-r2.ebuild (limited to 'app-misc') diff --git a/app-misc/screen/ChangeLog b/app-misc/screen/ChangeLog index 86582f711bb0..dd335504440b 100644 --- a/app-misc/screen/ChangeLog +++ b/app-misc/screen/ChangeLog @@ -1,13 +1,18 @@ # ChangeLog for app-misc/screen # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/ChangeLog,v 1.17 2002/12/16 19:36:07 cretin Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/ChangeLog,v 1.18 2002/12/18 23:19:31 blizzy Exp $ - 06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords +*screen-3.9.13-r2 (19 Dec 2002) + + 19 Dec 2002; Maik Schreiber : Changed permissions of + /var/run/screen to 0755 to satisfy screen when running in multi-user mode. *screen-3.9.13-r1 (16 Dec 2002) - 16 Dec 2002; Stefan Jones : screen-3.9.13-r1.ebuild screenrc screen.pam - A new improved ebuild. Does everything! Many thanks to j2 on IRC for the ebuild. + 16 Dec 2002; Stefan Jones : A new improved ebuild. Does + everything! Many thanks to j2 on IRC for the ebuild. + + 06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords *screen-3.9.13 (18 Nov 2002) diff --git a/app-misc/screen/files/digest-screen-3.9.13-r2 b/app-misc/screen/files/digest-screen-3.9.13-r2 new file mode 100644 index 000000000000..49ce7eb61075 --- /dev/null +++ b/app-misc/screen/files/digest-screen-3.9.13-r2 @@ -0,0 +1 @@ +MD5 5a02b4bcd4d7ed64d13da683e03093a9 screen-3.9.13.tar.gz 728037 diff --git a/app-misc/screen/screen-3.9.13-r2.ebuild b/app-misc/screen/screen-3.9.13-r2.ebuild new file mode 100644 index 000000000000..b1cd715954a9 --- /dev/null +++ b/app-misc/screen/screen-3.9.13-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/screen/screen-3.9.13-r2.ebuild,v 1.1 2002/12/18 23:19:31 blizzy Exp $ + +inherit flag-o-matic + +IUSE="pam" +DESCRIPTION="Screen is a full-screen window manager that multiplexes a physical terminal between several processes" +SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/screen/${P}.tar.gz" +HOMEPAGE="http://www.math.fu-berlin.de/~guckes/screen/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ppc sparc alpha" + +DEPEND=">=sys-libs/ncurses-5.2 + pam? ( >=sys-libs/pam-0.75 )" + +src_unpack() { + unpack ${A} && cd ${S} + + # Fix manpage. + sed -i "s:/usr/local/etc/screenrc:/etc/screenrc:g; + s:/usr/local/screens:/var/run/screen:g; + s:/local/etc/screenrc:/etc/screenrc:g; + s:/etc/utmp:/var/run/utmp:g; + s:/local/screens/S-:/var/run/screen/S-:g" doc/screen.1 +} + +src_compile() { + local myconf + + addpredict "`tty`" + addpredict "${SSH_TTY}" + + # check config.h for other settings such as the + # max-number of windows allowed by screen. + append-flags "-DPTYMODE=0620 -DPTYGROUP=5" + use pam && myconf="--enable-pam" && append-flags "-DUSE_PAM" + + econf --with-socket-dir=/var/run/screen \ + --with-sys-screenrc=/etc/screenrc \ + --enable-rxvt_osc ${myconf} + + emake || die "Failed to compile" +} + +src_install () { + dobin screen + fperms 2755 /usr/bin/screen + + diropts -m 0755 ; dodir /var/run/screen + + # can't use this cause fowners do not support multiple args. + # fowners root.utmp /{usr/bin,var/run}/screen + chown root.utmp ${D}/{usr/bin,var/run}/screen + + insinto /usr/share/terminfo ; doins terminfo/screencap + insinto /usr/share/screen/utf8encodings ; doins utf8encodings/?? + insopts -m 644 ; insinto /etc ; doins ${FILESDIR}/screenrc + + use pam && { insinto /etc/pam.d ; newins ${FILESDIR}/screen.pam screen ; } + + dodoc README ChangeLog INSTALL COPYING TODO NEWS* \ + doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps} + + doman doc/screen.1 + doinfo doc/screen.info* +} + +pkg_postinst() { + einfo "Some dangerous key bindings have been removed or changed to more safe values." + einfo "For more info, please check /etc/screenrc" + echo + einfo "screen is not installed as setuid root, which effectively disables multi-user" + einfo "mode. To enable it, run:" + einfo "" + einfo "\tchmod u+s /usr/bin/screen" +} -- cgit v1.2.3-65-gdbad