diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-01-18 14:24:50 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-01-18 14:24:50 +0100 |
commit | a6c47831c736872a73fb0b5dd26f411b2876ac3e (patch) | |
tree | ceeee8360be0994e939417dede45721bd59c3d4f /app-misc | |
parent | app-misc/screen: Clean up patch. (diff) | |
download | gentoo-a6c47831c736872a73fb0b5dd26f411b2876ac3e.tar.gz gentoo-a6c47831c736872a73fb0b5dd26f411b2876ac3e.tar.bz2 gentoo-a6c47831c736872a73fb0b5dd26f411b2876ac3e.zip |
app-misc/screen: Update live ebuild.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/screen/metadata.xml | 1 | ||||
-rw-r--r-- | app-misc/screen/screen-9999.ebuild | 33 |
2 files changed, 24 insertions, 10 deletions
diff --git a/app-misc/screen/metadata.xml b/app-misc/screen/metadata.xml index fd200de179cf..ac31438add70 100644 --- a/app-misc/screen/metadata.xml +++ b/app-misc/screen/metadata.xml @@ -31,5 +31,6 @@ session is detached from the users terminal. <flag name="multiuser">Enable multiuser support (by setting correct permissions)</flag> <flag name="nethack">Express error messages in nethack style</flag> + <flag name="utmp">Include utmp support</flag> </use> </pkgmetadata> diff --git a/app-misc/screen/screen-9999.ebuild b/app-misc/screen/screen-9999.ebuild index 867af7142589..57c1943822b7 100644 --- a/app-misc/screen/screen-9999.ebuild +++ b/app-misc/screen/screen-9999.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 EGIT_REPO_URI="git://git.savannah.gnu.org/screen.git" EGIT_CHECKOUT_DIR="${WORKDIR}/${P}" # needed for setting S later on @@ -15,30 +15,42 @@ HOMEPAGE="https://www.gnu.org/software/screen/" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="debug nethack pam selinux multiuser" +IUSE="debug nethack pam selinux multiuser utmp" CDEPEND=" >=sys-libs/ncurses-5.2:0= pam? ( virtual/pam )" RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-screen )" + selinux? ( sec-policy/selinux-screen ) + utmp? ( + kernel_linux? ( sys-libs/libutempter ) + kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 sys-libs/libutempter ) ) + ) +" DEPEND="${CDEPEND} sys-apps/texinfo" +RESTRICT="test" S="${WORKDIR}"/${P}/src +PATCHES=( + "${FILESDIR}"/${PN}-9999-alloca.patch +) + pkg_setup() { # Make sure utmp group exists, as it's used later on. enewgroup utmp 406 } src_prepare() { - # Don't use utempter even if it is found on the system - epatch "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch + default # sched.h is a system header and causes problems with some C libraries mv sched.h _sched.h || die - sed -i '/include/ s:sched.h:_sched.h:' screen.h || die + sed -i \ + -e '/include/ s:sched.h:_sched.h:' \ + screen.h winmsg.c canvas.h sched.c || die + sed -i -e 's:sched.h:_sched.h:g' Makefile.in || die # Fix manpage. sed -i \ @@ -63,12 +75,13 @@ src_configure() { use debug && append-cppflags "-DDEBUG" econf \ - --with-socket-dir="${EPREFIX}/tmp/screen" \ - --with-sys-screenrc="${EPREFIX}/etc/screenrc" \ + --enable-socket-dir="${EPREFIX}/tmp/screen" \ + --with-system_screenrc="${EPREFIX}/etc/screenrc" \ --with-pty-mode=0620 \ --with-pty-group=5 \ --enable-telnet \ - $(use_enable pam) + $(use_enable pam) \ + $(use_enable utmp) } src_compile() { |