summaryrefslogtreecommitdiff
path: root/net-misc/gsasl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/gsasl
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/gsasl')
-rw-r--r--net-misc/gsasl/Manifest6
-rw-r--r--net-misc/gsasl/files/gsasl-gss-extra.patch21
-rw-r--r--net-misc/gsasl/gsasl-1.8.0-r1.ebuild72
-rw-r--r--net-misc/gsasl/metadata.xml16
4 files changed, 115 insertions, 0 deletions
diff --git a/net-misc/gsasl/Manifest b/net-misc/gsasl/Manifest
new file mode 100644
index 000000000000..5f445fbeaede
--- /dev/null
+++ b/net-misc/gsasl/Manifest
@@ -0,0 +1,6 @@
+AUX gsasl-gss-extra.patch 951 SHA256 68223ba6c2367bd48afa18ed0470efd808b9a563c579920136507b202926dde8 SHA512 4225049a547b0ca6fbd0b5268e7a1de0454850fd6a29f31eb8b7356472fe400eb3a8076f537101be8cd9e09b7f092f5d784a8d660c8e66e475d4a7a4caff83df WHIRLPOOL 68777d4f79687ded47acaf3c76489e8971573d7738ca1d842ab3f40e47b11a806c8b8679c9f2aea54133f81d130592a1ddc69afc313802b6d10135a28e9e34bc
+DIST gsasl-1.8.0.tar.gz 4914837 SHA256 310262d1ded082d1ceefc52d6dad265c1decae8d84e12b5947d9b1dd193191e5 SHA512 711bd87d27656834ae7e19b22a76db2b1db37dd25999cd303fe8439e23e74e87fd1474c5db1b5f97e9ab75437eeeb6167a752e9191f364f530eeabb6cddda36f WHIRLPOOL cf5a0a855218af211dc6afc61e2ed18b7bc89e4c80c3e207df125a80ba8910c1c02dfa3d6260224aab59d29dcbf8f3f40168a145863db65a01b7b0e0446f6ead
+EBUILD gsasl-1.8.0-r1.ebuild 1694 SHA256 452dfb9f797f3564b83535400501d55e8b903f06aeccd052dccf5ab6bef5b127 SHA512 72cd3e807ff9e6575a862425d6ff6c9af3aa0b70a77557f5bf07ef242b9f5437aa19fbe7cf7a32d00593ef6e60da2196aa4ff46f514465470dbbcef87b3583c1 WHIRLPOOL 70e4bc6beaf1e695f6b21aad8a78d3370082d9814b72f5ab3e696b38af088d8785b1141bfe0ad71e0a937c7399e2446bf3a75a52763c9d5c30f37f78d01a1a04
+MISC ChangeLog 3092 SHA256 4bbff78c539b64c4ab193da57214311162342033e8bf0626630e1321a70e83c9 SHA512 f56bf2e3dd2f2e5d70bf292a467b6b3894dd2004401fb478bc652cb0f14a64b179992a67f26cf75865e981e2e599e20541fcb5437c2d9b308f97c3ed988315b5 WHIRLPOOL adc8a5cf43a2f94624244a46bb137e1e7bb2a1f06634ddd0db74d3a48c213c2e074935597d814cd925a72b83ead9ba7847b779825b393e5b4344b47918371e23
+MISC ChangeLog-2015 8054 SHA256 216717a7ae3590c6f335ea8fd82ad475e20bb59ca8c2a2dddb0a0de734003624 SHA512 328cb78cdc4dd0b5f18432506ef61461dbef9a4bb4480f4554bbffcb149ebdf5ebb87d74d0474e2c7dcfe7a96f8062ba87e0f626b73d31915e8206ab7a84fcf7 WHIRLPOOL f92c1364fac258bf67712b2bfd9219aad3b1c234fd3fd1e6549a152f683dc195ea3c4314aa6afe14a4329a0ca60bae93637a66609294875b2fe071a3856c7688
+MISC metadata.xml 443 SHA256 9c28229c668ccb3ac9701c173eebcdc13ae1901c672a5b05e747ceae0fe04eda SHA512 ea6f890ed660697d4eb67b42e9ede99161850a40441953ed15bc88c6281fa9d0840ac458f9be1c3c9446f6937957b5775db28bc0df9736c979f7effad1d89b0c WHIRLPOOL a8736f311bad6a692c71adf12e54478c99d97a2616879dfb52c6529340bc572ca7c80a19e51dbb183d4fd26c0653d638f7c7bf406fa4478815052a42cbfbd5b2
diff --git a/net-misc/gsasl/files/gsasl-gss-extra.patch b/net-misc/gsasl/files/gsasl-gss-extra.patch
new file mode 100644
index 000000000000..e08a36ae5779
--- /dev/null
+++ b/net-misc/gsasl/files/gsasl-gss-extra.patch
@@ -0,0 +1,21 @@
+Based on gentoo bug #359005
+--- lib/gl/m4/gss-extra.m4.orig 2010-12-14 12:57:08.000000000 +0000
++++ lib/gl/m4/gss-extra.m4 2011-11-05 21:11:54.000000000 +0000
+@@ -19,7 +19,16 @@
+ AC_CHECK_FUNCS([gss_decapsulate_token])
+ AC_CHECK_FUNCS([gss_oid_equal])
+ AC_CHECK_FUNCS([gss_inquire_mech_for_saslname])
+- AC_CHECK_FUNCS([GSS_C_NT_HOSTBASED_SERVICE])
++ AC_MSG_CHECKING([for GSS_C_NT_HOSTBASED_SERVICE])
++ AC_EGREP_CPP(hostbased_service_gss_nt_yes, gssapi.h,
++ [#include <gssapi.h>
++ #ifdef GSS_C_NT_HOSTBASED_SERVICE
++ hostbased_service_gss_nt_yes
++ #endif],
++ [AC_DEFINE(HAVE_GSS_C_NT_HOSTBASED_SERVICE,,
++ [Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE])
++ AC_MSG_RESULT([yes])],
++ AC_MSG_RESULT([no]))
+ if test "$gssapi_impl" != "gss"; then
+ AC_CHECK_HEADERS([gssapi.h gssapi/gssapi.h])
+ if test "$ac_cv_header_gssapi_h$ac_cv_header_gssapi_gssapi_h" = "nono"; then
diff --git a/net-misc/gsasl/gsasl-1.8.0-r1.ebuild b/net-misc/gsasl/gsasl-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..5ffe9c0c185d
--- /dev/null
+++ b/net-misc/gsasl/gsasl-1.8.0-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools eutils
+
+DESCRIPTION="The GNU SASL client, server, and library"
+HOMEPAGE="https://www.gnu.org/software/gsasl/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc gcrypt idn kerberos nls ntlm static-libs +threads"
+
+DEPEND="
+ gcrypt? ( dev-libs/libgcrypt:0 )
+ idn? ( net-dns/libidn )
+ kerberos? ( virtual/krb5 )
+ nls? ( >=sys-devel/gettext-0.18.1 )
+ ntlm? ( net-libs/libntlm )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-gss-extra.patch"
+ sed -i -e '/gl_WARN_ADD(\[-Werror/d' \
+ -e 's/ -Werror//' configure.ac || die
+ sed -i -e 's/ -Werror//' lib/configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local krb5_impl
+ if use kerberos; then
+ krb5_impl="--with-gssapi-impl="
+ krb5_impl+=$(has_version app-crypt/mit-krb5 && echo "mit" || echo "heimdal")
+ fi
+ econf \
+ --enable-client \
+ --enable-server \
+ --disable-valgrind-tests \
+ --disable-rpath \
+ --without-libshishi \
+ --without-libgss \
+ --disable-kerberos_v5 \
+ $(use_enable kerberos gssapi) \
+ ${krb5_impl} \
+ $(use_enable kerberos gs2) \
+ $(use_with gcrypt libgcrypt) \
+ $(use_enable nls) \
+ $(use_with idn stringprep) \
+ $(use_enable ntlm) \
+ $(use_with ntlm libntlm) \
+ $(use_enable static-libs static) \
+ $(use_enable threads)
+}
+
+src_install() {
+ default
+ if ! use static-libs; then
+ rm -f "${D}"/usr/lib*/lib*.la
+ fi
+ doman doc/gsasl.1 doc/man/*.3
+
+ if use doc; then
+ dodoc doc/*.{eps,ps,pdf}
+ dohtml doc/*.html
+ docinto examples
+ dodoc examples/*.c
+ fi
+}
diff --git a/net-misc/gsasl/metadata.xml b/net-misc/gsasl/metadata.xml
new file mode 100644
index 000000000000..2b6cd86af0a4
--- /dev/null
+++ b/net-misc/gsasl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+<email>net-mail@gentoo.org</email>
+<name>Net-Mail</name>
+ </maintainer>
+<use>
+<flag name="gcrypt">
+ Use <pkg>dev-libs/libgcrypt</pkg> for low-level crypto
+</flag>
+<flag name="ntlm">
+ Add support for Microsoft's NTLM mechanism using <pkg>net-libs/libntlm</pkg>
+</flag>
+</use>
+</pkgmetadata>