3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #60464 from basvandijk/strongswan-refactor

strongswan: cleanup
This commit is contained in:
Bas van Dijk 2019-04-30 15:49:01 +02:00 committed by GitHub
commit d6b866e52b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,10 +34,7 @@ stdenv.mkDerivation rec {
++ optionals enableTNC [ trousers sqlite libxml2 ]
++ optionals stdenv.isLinux [ systemd.dev pam iptables ]
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ SystemConfiguration ])
++ optionals enableNetworkManager [ networkmanager ]
# ad-hoc fix for https://github.com/NixOS/nixpkgs/pull/51787
# Remove when the above PR lands in master
++ [ libpcap ];
++ optionals enableNetworkManager [ networkmanager ];
patches = [
./ext_auth-path.patch
@ -56,10 +53,6 @@ stdenv.mkDerivation rec {
substituteInPlace src/libcharon/plugins/resolve/resolve_handler.c --replace "/sbin/resolvconf" "${openresolv}/sbin/resolvconf"
'';
preConfigure = ''
configureFlagsArray+=("--with-systemdsystemunitdir=$out/etc/systemd/system")
'';
configureFlags =
[ "--enable-swanctl"
"--enable-cmd"
@ -74,7 +67,7 @@ stdenv.mkDerivation rec {
"--enable-curl" ]
++ optionals stdenv.isLinux [
"--enable-farp" "--enable-dhcp"
"--enable-systemd"
"--enable-systemd" "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
"--enable-xauth-pam"
"--enable-forecast"
"--enable-connmark"