From 64260e70f25237f284e03a29b49eed8701377212 Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Mon, 20 Jun 2016 15:13:54 -0700 Subject: [PATCH] screen: 4.3.1 -> 4.4.0 Removed the patches which were specific to 4.3, and redundant configure flags The darwin specific utmp patch seems to have been accepted too, with `u->ut_time = now` the default. --- pkgs/tools/misc/screen/default.nix | 35 ++++++++++-------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/pkgs/tools/misc/screen/default.nix b/pkgs/tools/misc/screen/default.nix index 652c4f989050..8367bde6fddb 100644 --- a/pkgs/tools/misc/screen/default.nix +++ b/pkgs/tools/misc/screen/default.nix @@ -1,40 +1,29 @@ { stdenv, fetchurl, fetchpatch, ncurses, utmp, pam ? null }: stdenv.mkDerivation rec { - name = "screen-4.3.1"; + name = "screen-4.4.0"; src = fetchurl { url = "mirror://gnu/screen/${name}.tar.gz"; - sha256 = "0qwxd4axkgvxjigz9xs0kcv6qpfkrzr2gm43w9idx0z2mvw4jh7s"; + sha256 = "12r12xwhsg59mlprikbbmn60gh8lqhrvyar7mlxg4fwsfma2lwpg"; }; - preConfigure = '' - configureFlags="--enable-telnet --enable-pam --infodir=$out/share/info --mandir=$out/share/man --with-sys-screenrc=/etc/screenrc --enable-colors256" - sed -i -e "s|/usr/local|/non-existent|g" -e "s|/usr|/non-existent|g" configure Makefile.in */Makefile.in - ''; - - # TODO: remove when updating the version of screen. Only patches for 4.3.1 - patches = [ - (fetchpatch { - name = "CVE-2015-6806.patch"; - stripLen = 1; - url = "http://git.savannah.gnu.org/cgit/screen.git/patch/?id=b7484c224738247b510ed0d268cd577076958f1b"; - sha256 = "160zhpzi80qkvwib78jdvx4jcm2c2h59q5ap7hgnbz4xbkb3k37l"; - }) - ] ++ stdenv.lib.optional stdenv.isDarwin (fetchurl { - url = "http://savannah.gnu.org/file/screen-utmp.patch\?file_id=34815"; - sha256 = "192dsa8hm1zw8m638avzhwhnrddgizhyrwaxgwa96zr9vwai2nvc"; - }); + configureFlags= [ + "--enable-telnet" + "--enable-pam" + "--with-sys-screenrc=/etc/screenrc" + "--enable-colors256" + ]; buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isLinux pam ++ stdenv.lib.optional stdenv.isDarwin utmp; doCheck = true; - meta = { + meta = with stdenv.lib; { homepage = http://www.gnu.org/software/screen/; description = "A window manager that multiplexes a physical terminal"; - license = stdenv.lib.licenses.gpl2Plus; + license = licenses.gpl2Plus; longDescription = '' GNU Screen is a full-screen window manager that multiplexes a physical @@ -58,7 +47,7 @@ stdenv.mkDerivation rec { terminal. ''; - platforms = stdenv.lib.platforms.unix; - maintainers = with stdenv.lib.maintainers; [ peti jgeerds ]; + platforms = platforms.unix; + maintainers = with maintainers; [ peti jgeerds vrthra ]; }; }