strongswan: build xauth-pam module

This commit is contained in:
Franz Pletz 2017-07-19 23:46:49 +02:00
parent 2b2a6f2070
commit d59dc71148
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, gmp, pkgconfig, python, autoreconfHook { stdenv, fetchurl, gmp, pkgconfig, python, autoreconfHook
, curl, trousers, sqlite, iptables, libxml2, openresolv , curl, trousers, sqlite, iptables, libxml2, openresolv
, ldns, unbound, pcsclite, openssl, systemd , ldns, unbound, pcsclite, openssl, systemd, pam
, enableTNC ? false }: , enableTNC ? false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -14,9 +14,11 @@ stdenv.mkDerivation rec {
dontPatchELF = true; dontPatchELF = true;
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = buildInputs =
[ gmp pkgconfig python autoreconfHook iptables ldns unbound openssl pcsclite systemd.dev ] [ gmp python iptables ldns unbound openssl pcsclite ]
++ stdenv.lib.optionals enableTNC [ curl trousers sqlite libxml2 ]; ++ stdenv.lib.optionals enableTNC [ curl trousers sqlite libxml2 ]
++ stdenv.lib.optionals stdenv.isLinux [ systemd.dev pam ];
patches = [ patches = [
./ext_auth-path.patch ./ext_auth-path.patch
@ -48,7 +50,7 @@ stdenv.mkDerivation rec {
"--enable-eap-mschapv2" "--enable-xauth-eap" "--enable-ext-auth" "--enable-eap-mschapv2" "--enable-xauth-eap" "--enable-ext-auth"
"--enable-forecast" "--enable-connmark" "--enable-acert" "--enable-forecast" "--enable-connmark" "--enable-acert"
"--enable-pkcs11" "--enable-eap-sim-pcsc" "--enable-dnscert" "--enable-unbound" "--enable-pkcs11" "--enable-eap-sim-pcsc" "--enable-dnscert" "--enable-unbound"
"--enable-af-alg" ] "--enable-af-alg" "--enable-xauth-pam" ]
++ stdenv.lib.optional stdenv.isx86_64 [ "--enable-aesni" "--enable-rdrand" ] ++ stdenv.lib.optional stdenv.isx86_64 [ "--enable-aesni" "--enable-rdrand" ]
++ stdenv.lib.optional (stdenv.system == "i686-linux") "--enable-padlock" ++ stdenv.lib.optional (stdenv.system == "i686-linux") "--enable-padlock"
++ stdenv.lib.optionals enableTNC [ ++ stdenv.lib.optionals enableTNC [