Revert "audit: 2.9.1 -> 2.9.2"

This reverts commit 7e126ac83e.
This commit is contained in:
Eelco Dolstra 2015-06-01 21:35:08 +02:00
parent 5931932f05
commit 4c16c271f6
3 changed files with 16 additions and 54 deletions

View File

@ -1,61 +1,29 @@
{ stdenv, fetchurl { stdenv, fetchurl, openldap
, libcap_ng , enablePython ? false, python ? null
# Optional Dependencies
, openldap ? null, python ? null, go ? null, krb5 ? null, tcp_wrappers ? null
# Extra arguments
, prefix ? ""
}: }:
with stdenv; assert enablePython -> python != null;
let
libOnly = prefix == "lib";
optOpenldap = if libOnly then null else shouldUsePkg openldap;
optPython = shouldUsePkg python;
optGo = shouldUsePkg go;
optKrb5 = if libOnly then null else shouldUsePkg krb5;
optTcp_wrappers = if libOnly then null else shouldUsePkg tcp_wrappers;
in
with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${prefix}audit-${version}"; name = "audit-2.4.1";
version = "2.4.2";
src = fetchurl { src = fetchurl {
url = "http://people.redhat.com/sgrubb/audit/audit-${version}.tar.gz"; url = "http://people.redhat.com/sgrubb/audit/${name}.tar.gz";
sha256 = "08j134s4509rxfi3hwsp8yyxzlqqxl8kqgv2rfv6p3qng5pjd80j"; sha256 = "09ihn392pmac1pyjrs22966csia83yr84hq5ri6sybwj1vx4d4q5";
}; };
buildInputs = [ libcap_ng optOpenldap optPython optGo optKrb5 optTcp_wrappers ]; buildInputs = [ openldap ]
++ stdenv.lib.optional enablePython python;
# For libs only build and install the lib portion configureFlags = ''
preBuild = optionalString libOnly '' ${if enablePython then "--with-python" else "--without-python"}
cd lib
''; '';
configureFlags = [
(mkWith (optPython != null) "python" null)
(mkWith (optGo != null) "golang" null)
(mkEnable (!libOnly) "listener" null)
(mkEnable (optKrb5 != null) "gssapi-krb5" null)
(mkEnable false "systemd" null)
(mkWith false "debug" null)
(mkWith false "warn" null)
(mkWith false "alpha" null) # TODO: Support
(mkWith false "arm" null) # TODO: Support
(mkWith false "aarch64" null) # TODO: Support
(mkWith (!libOnly) "apparmor" null)
(mkWith false "prelude" null)
(mkWith (optTcp_wrappers != null) "libwrap" optTcp_wrappers)
];
meta = { meta = {
description = "Audit Library"; description = "Audit Library";
homepage = "http://people.redhat.com/sgrubb/audit/"; homepage = "http://people.redhat.com/sgrubb/audit/";
license = licenses.gpl2; license = stdenv.lib.licenses.gpl2;
platforms = platforms.linux; platforms = stdenv.lib.platforms.linux;
maintainers = with maintainers; [ fuuzetsu wkennington ]; maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
}; };
} }

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libsepol, libselinux, ustr, bzip2, bison, flex, libaudit }: { stdenv, fetchurl, libsepol, libselinux, ustr, bzip2, bison, flex, audit }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libsemanage-${version}"; name = "libsemanage-${version}";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-fstack-protector-all"; NIX_CFLAGS_COMPILE = "-fstack-protector-all";
NIX_CFLAGS_LINK = "-lsepol"; NIX_CFLAGS_LINK = "-lsepol";
buildInputs = [ libsepol libselinux ustr bzip2 bison flex libaudit ]; buildInputs = [ libsepol libselinux ustr bzip2 bison flex audit ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit (libsepol.meta) homepage platforms maintainers; inherit (libsepol.meta) homepage platforms maintainers;

View File

@ -9190,13 +9190,7 @@ let
atop = callPackage ../os-specific/linux/atop { }; atop = callPackage ../os-specific/linux/atop { };
audit = callPackage ../os-specific/linux/audit { audit = callPackage ../os-specific/linux/audit { };
python = null;
go = null;
};
libaudit = audit.override {
prefix = "lib";
};
b43Firmware_5_1_138 = callPackage ../os-specific/linux/firmware/b43-firmware/5.1.138.nix { }; b43Firmware_5_1_138 = callPackage ../os-specific/linux/firmware/b43-firmware/5.1.138.nix { };