gss: Modernize

This commit is contained in:
William A. Kennington III 2015-05-02 04:11:47 -07:00
parent 44aad3817f
commit 473628b220
1 changed files with 18 additions and 14 deletions

View File

@ -1,4 +1,8 @@
{ fetchurl, stdenv, shishi }:
{ stdenv, fetchurl
# Optional Dependencies
, shishi ? null
}:
stdenv.mkDerivation rec {
name = "gss-1.0.2";
@ -10,22 +14,22 @@ stdenv.mkDerivation rec {
buildInputs = [ shishi ];
configureFlags = [
"--${if shishi != null then "enable" else "disable"}-kereberos5"
];
doCheck = true;
meta = {
description = "Generic Security Service";
longDescription =
'' GSS is an implementation of the Generic Security Service Application
Program Interface (GSS-API). GSS-API is used by network servers to
provide security services, e.g., to authenticate SMTP/IMAP clients
against SMTP/IMAP servers.
'';
# Fixup .la files
postInstall = stdenv.lib.optionalString (shishi != null) ''
sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
'';
meta = with stdenv.lib; {
homepage = http://www.gnu.org/software/gss/;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.bjg ];
platforms = stdenv.lib.platforms.all;
description = "Generic Security Service";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ bjg wkennington ];
platforms = platforms.all;
};
}