openafsClient: 1.6.14 -> 1.6.17

According to the changelog, the delta between these versions contains
fixes for several CVEs.

See https://www.openafs.org/dl/openafs/1.6.17/RELNOTES-1.6.17
and https://www.openafs.org/dl/openafs/1.6.16/RELNOTES-1.6.16
and https://www.openafs.org/dl/openafs/1.6.15/RELNOTES-1.6.15
This commit is contained in:
Joachim Fasting 2016-03-26 22:53:41 +01:00
parent f955728295
commit df0481276d

View file

@ -1,27 +1,18 @@
{ stdenv, fetchurl, fetchgit, which, autoconf, automake, flex, yacc,
kernel, glibc, ncurses, perl, kerberos }:
let
version = if stdenv.lib.versionAtLeast kernel.version "4.2"
then "1.6.14-1-602130"
else "1.6.14";
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "openafs-${version}-${kernel.version}";
version = "1.6.17";
src = if version == "1.6.14-1-602130"
# 1.6.14 + patches to run on linux 4.2 that will get into 1.6.15
then fetchgit {
url = "git://git.openafs.org/openafs.git";
rev = "feab09080ec050b3026eff966352b058e2c2295b";
sha256 = "03j71c7y487jbjmm6ydr1hw38pf43j2dz153xknndf4x4v21nnp2";
}
else fetchurl {
url = "http://www.openafs.org/dl/openafs/${version}/openafs-${version}-src.tar.bz2";
sha256 = "3e62c798a7f982c4f88d85d32e46bee6a47848d207b1e318fe661ce44ae4e01f";
};
src = fetchurl {
url = "http://www.openafs.org/dl/openafs/${version}/openafs-${version}-src.tar.bz2";
sha256 = "16532f4951piv1g2i539233868xfs1damrnxql61gjgxpwnklhcn";
};
buildInputs = [ autoconf automake flex yacc ncurses perl which ];
nativeBuildInputs = [ autoconf automake flex yacc perl which ];
buildInputs = [ ncurses ];
preConfigure = ''
ln -s "${kernel.dev}/lib/modules/"*/build $TMP/linux
@ -47,11 +38,11 @@ stdenv.mkDerivation {
)
'';
meta = {
meta = with stdenv.lib; {
description = "Open AFS client";
homepage = http://www.openafs.org;
license = stdenv.lib.licenses.ipl10;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.z77z ];
homepage = https://www.openafs.org;
license = licenses.ipl10;
platforms = platforms.linux;
maintainers = [ maintainers.z77z ];
};
}