3
0
Fork 0
forked from mirrors/nixpkgs

openvpn-auth-ldap: 2.0.3+deb6.1 -> 2.0.4

This commit is contained in:
Robert Schütz 2021-05-27 23:13:52 +02:00 committed by Jonathan Ringer
parent f188138af3
commit 966188ff80

View file

@ -1,65 +1,50 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, { lib
autoreconfHook, re2c, openldap, openvpn, gnustep, check , stdenv
, fetchFromGitHub
, autoreconfHook
, gnustep
, re2c
, openldap
, openssl
, openvpn
}: }:
let
srcName = "openvpn-auth-ldap";
srcVersion = "2.0.3";
debianRev = "6.1";
fetchPatchFromDebian =
{patch, sha256}:
fetchpatch {
inherit sha256;
url = "http://sources.debian.net/data/main/o/${srcName}/${srcVersion}-${debianRev}/debian/patches/${patch}";
};
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${srcName}-${version}"; pname = "openvpn-auth-ldap";
version = "${srcVersion}+deb${debianRev}"; version = "2.0.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "threerings"; owner = "threerings";
repo = srcName; repo = "openvpn-auth-ldap";
rev = "auth-ldap-${srcVersion}"; rev = "auth-ldap-${version}";
sha256 = "1v635ylzf5x3l3lirf3n6173q1w8g0ssjjkf27qqw98c3iqp63sq"; sha256 = "1j30sygj8nm8wjqxzpb7pfzr3dxqxggswzxd7z5yk7y04c0yp1hb";
}; };
patches = map fetchPatchFromDebian [
{patch = "STARTTLS_before_auth.patch";
sha256 = "02kky73mgx9jf16lpabppl271zyjn4a1160k8b6a0fax5ic8gbwk";}
{patch = "gobjc_4.7_runtime.patch";
sha256 = "0ljmdn70g5xp4kjcv59wg2wnqaifjdfdv1wlj356d10a7fzvxc76";}
{patch = "openvpn_ldap_simpler_add_handler_4";
sha256 = "0nha9mazp3dywbs1ywj8xi4ahzsjsasyrcic87v8c0x2nwl9kaa0";}
{patch = "auth-ldap-gnustep.patch";
sha256 = "053jni1s3pacpi2s43dkmk95j79ifh8rybjly13yy2dqffbasr31";}
];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
];
buildInputs = [
check
gnustep.base gnustep.base
gnustep.libobjc gnustep.libobjc
gnustep.make gnustep.make
openldap
openvpn
re2c re2c
]; ];
buildInputs = [
openldap
openssl
openvpn
];
configureFlags = [ configureFlags = [
"--with-objc-runtime=modern" "--with-objc-runtime=GNU"
"--with-openvpn=${openvpn}/include" "--with-openvpn=${openvpn}/include"
"--libdir=$(out)/lib/openvpn" "--libdir=$(out)/lib/openvpn"
]; ];
doCheck = true;
preInstall = '' preInstall = ''
mkdir -p $out/lib/openvpn $out/share/doc/openvpn/examples mkdir -p $out/lib/openvpn $out/share/doc/openvpn/examples
cp README $out/share/doc/openvpn/ cp README.md $out/share/doc/openvpn/
cp auth-ldap.conf $out/share/doc/openvpn/examples/ cp auth-ldap.conf $out/share/doc/openvpn/examples/
''; '';