summary refs log tree commit diff
path: root/pkgs/os-specific/linux/audit/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01 21:35:08 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-04 14:54:50 +0200
commit4c16c271f6730ca73e33a350208495c61aaf65a1 (patch)
tree2f9fa777af72ebff7587e1794f13349937087ab8 /pkgs/os-specific/linux/audit/default.nix
parent5931932f05e0855785c309abdf5f147438bd3dfb (diff)
downloadnixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.tar
nixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.tar.gz
nixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.tar.bz2
nixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.tar.lz
nixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.tar.xz
nixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.tar.zst
nixpkgs-4c16c271f6730ca73e33a350208495c61aaf65a1.zip
Revert "audit: 2.9.1 -> 2.9.2"
This reverts commit 7e126ac83ee1689df4d22bb4ad9c4163acc734a0.
Diffstat (limited to 'pkgs/os-specific/linux/audit/default.nix')
-rw-r--r--pkgs/os-specific/linux/audit/default.nix58
1 files changed, 13 insertions, 45 deletions
diff --git a/pkgs/os-specific/linux/audit/default.nix b/pkgs/os-specific/linux/audit/default.nix
index 8365017d13b..05b9eb9e56f 100644
--- a/pkgs/os-specific/linux/audit/default.nix
+++ b/pkgs/os-specific/linux/audit/default.nix
@@ -1,61 +1,29 @@
-{ stdenv, fetchurl
-, libcap_ng
-
-# Optional Dependencies
-, openldap ? null, python ? null, go ? null, krb5 ? null, tcp_wrappers ? null
-
-# Extra arguments
-, prefix ? ""
+{ stdenv, fetchurl, openldap
+, enablePython ? false, python ? null
 }:
 
-with stdenv;
-let
-  libOnly = prefix == "lib";
+assert enablePython -> python != null;
 
-  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 {
-  name = "${prefix}audit-${version}";
-  version = "2.4.2";
+  name = "audit-2.4.1";
 
   src = fetchurl {
-    url = "http://people.redhat.com/sgrubb/audit/audit-${version}.tar.gz";
-    sha256 = "08j134s4509rxfi3hwsp8yyxzlqqxl8kqgv2rfv6p3qng5pjd80j";
+    url = "http://people.redhat.com/sgrubb/audit/${name}.tar.gz";
+    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
-  preBuild = optionalString libOnly ''
-    cd lib
+  configureFlags = ''
+    ${if enablePython then "--with-python" else "--without-python"}
   '';
 
-  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 = {
     description = "Audit Library";
     homepage = "http://people.redhat.com/sgrubb/audit/";
-    license = licenses.gpl2;
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ fuuzetsu wkennington ];
+    license = stdenv.lib.licenses.gpl2;
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
   };
 }