2018-10-15 22:57:08 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pam, yacc, flex }:
|
2010-07-09 15:15:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libcgroup";
|
2015-04-11 22:22:35 +02:00
|
|
|
version = "0.41";
|
2011-10-05 22:20:21 +02:00
|
|
|
|
2010-07-09 15:15:51 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/libcg/${pname}-${version}.tar.bz2";
|
2015-04-11 22:22:35 +02:00
|
|
|
sha256 = "0lgvyq37gq84sk30sg18admxaj0j0p5dq3bl6g74a1ppgvf8pqz4";
|
2010-07-09 15:15:51 +02:00
|
|
|
};
|
2011-10-05 22:20:21 +02:00
|
|
|
|
2015-04-11 22:22:35 +02:00
|
|
|
buildInputs = [ pam yacc flex ];
|
2012-07-30 19:47:38 +02:00
|
|
|
|
2018-10-15 22:57:08 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-05-06 23:18:09 +02:00
|
|
|
name = "CVE-2018-14348.patch";
|
2018-10-15 22:57:08 +02:00
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/libcgroup/files/libcgroup-0.41-remove-umask.patch?id=33e9f4c81de754bbf76b893ea1133ed023f2a0e5";
|
|
|
|
sha256 = "1x0x29ld0cgmfwq4qy13s6d5c8sym1frfh1j2q47d8gfw6qaxka5";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-06-25 21:18:00 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/tools/Makefile.in \
|
|
|
|
--replace 'chmod u+s' 'chmod +x'
|
|
|
|
'';
|
|
|
|
|
2010-07-09 15:15:51 +02:00
|
|
|
meta = {
|
2015-04-11 22:22:35 +02:00
|
|
|
description = "Library and tools to manage Linux cgroups";
|
|
|
|
homepage = "http://libcg.sourceforge.net/";
|
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2010-07-09 15:15:51 +02:00
|
|
|
};
|
|
|
|
}
|