# Template file for 'gsasl'
pkgname=gsasl
version=1.8.0
revision=2
build_style=gnu-configure
configure_args="--with-gssapi-impl=mit"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
makedepends="pkg-config readline-devel gnutls-devel>=3.1.5
 libidn-devel mit-krb5-devel"
short_desc="GNU SASL framework and a few common SASL mechanisms"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://www.gnu.org/software/gsasl"
license="GPL-3"
checksum=310262d1ded082d1ceefc52d6dad265c1decae8d84e12b5947d9b1dd193191e5
long_desc="
 GNU SASL is an implementation of the Simple Authentication and Security Layer
 framework and a few common SASL mechanisms. SASL is used by network servers
 (e.g., IMAP, SMTP) to request authentication from clients, and in clients to
 authenticate against servers.

 GNU SASL consists of a library (libgsasl), a command line utility (gsasl) to
 access the library from the shell, and a manual. The library includes support
 for the framework (with authentication functions and application data privacy
 and integrity functions) and at least partial support for the CRAM-MD5,
 EXTERNAL, GSSAPI, ANONYMOUS, PLAIN, SECURID, DIGEST-MD5, SCRAM-SHA-1,
 SCRAM-SHA-1-PLUS, LOGIN, and NTLM mechanisms."

libgsasl_package() {
	short_desc+=" - Runtime library"
	pkg_install() {
		vmove "usr/lib/*.so*"
		vmove usr/share/locale
	}
}

gsasl-devel_package() {
	depends="libgcrypt-devel libgpg-error-devel libidn-devel libgsasl>=${version}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove usr/lib/pkgconfig
		vmove usr/share/man/man3
	}
}

gsasl_package() {
	pkg_install() {
		vmove usr
	}
}
