3
0
Fork 0
forked from mirrors/nixpkgs

Revert "krb5: Fixes"

This reverts commit a74e4863f3.
This commit is contained in:
Eelco Dolstra 2015-06-01 21:03:44 +02:00
parent c449f292d2
commit 1b32ae03f3

View file

@ -3,7 +3,7 @@
# Optional Dependencies
, libedit ? null, readline ? null, ncurses ? null, libverto ? null
, openldap ? null
, openldap ? null, db ? null
# Crypto Dependencies
, openssl ? null, nss ? null, nspr ? null
@ -24,6 +24,7 @@ let
optNcurses = if libOnly then null else shouldUsePkg ncurses;
optLibverto = shouldUsePkg libverto;
optOpenldap = if libOnly then null else shouldUsePkg openldap;
optDb = if libOnly then null else shouldUsePkg db;
# Prefer the openssl implementation
cryptoStr = if optOpenssl != null then "openssl"
@ -93,7 +94,7 @@ stdenv.mkDerivation rec {
(mkWith (optLibverto != null) "system-verto" null)
(mkWith (optOpenldap != null) "ldap" null)
(mkWith false "tcl" null)
(mkWith false "system-db" null) # Requires db v1.85
(mkWith (optDb != null) "system-db" null)
];
buildPhase = optionalString libOnly ''
@ -105,14 +106,11 @@ stdenv.mkDerivation rec {
installPhase = optionalString libOnly ''
mkdir -p $out/{bin,include/{gssapi,gssrpc,kadm5,krb5},lib/pkgconfig,sbin,share/{et,man/man1}}
(cd util; make install)
(cd include; make install)
(cd lib; make install)
(cd build-tools; make install)
rm -rf $out/{sbin,share}
find $out/bin -type f | grep -v 'krb5-config' | xargs rm
rm -rf $out/{bin,sbin,share}
'';
enableParallelBuilding = true;