summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2006-05-21 20:41:16 +0000
committerSeemant Kulleen <seemant@gentoo.org>2006-05-21 20:41:16 +0000
commiteb928b9c724292b837f3890ae186ca1b1d862815 (patch)
treeadcaa215ee7c1801d86b8e15bdf08867e4288ec7 /app-crypt/mit-krb5
parentversion bump (diff)
downloadgentoo-2-eb928b9c724292b837f3890ae186ca1b1d862815.tar.gz
gentoo-2-eb928b9c724292b837f3890ae186ca1b1d862815.tar.bz2
gentoo-2-eb928b9c724292b837f3890ae186ca1b1d862815.zip
The setupterm patch fixes bug #124405 by Juergen Rose. The pthreads and robusgnu patches were submitted in bug #125966 by Jose daLuz. Sorry for the delay on both
(Portage version: 2.1_rc1-r3)
Diffstat (limited to 'app-crypt/mit-krb5')
-rw-r--r--app-crypt/mit-krb5/ChangeLog11
-rw-r--r--app-crypt/mit-krb5/files/digest-mit-krb5-1.4.32
-rw-r--r--app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3-r13
-rw-r--r--app-crypt/mit-krb5/files/mit-krb5-pthreads.patch29
-rw-r--r--app-crypt/mit-krb5/files/mit-krb5-robustgnu.patch53
-rw-r--r--app-crypt/mit-krb5/files/mit-krb5-setupterm.patch20
-rw-r--r--app-crypt/mit-krb5/mit-krb5-1.4.3-r1.ebuild135
7 files changed, 252 insertions, 1 deletions
diff --git a/app-crypt/mit-krb5/ChangeLog b/app-crypt/mit-krb5/ChangeLog
index aa0b06dca03d..443289a583e6 100644
--- a/app-crypt/mit-krb5/ChangeLog
+++ b/app-crypt/mit-krb5/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-crypt/mit-krb5
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.109 2006/02/22 20:43:08 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.110 2006/05/21 20:41:16 seemant Exp $
+
+*mit-krb5-1.4.3-r1 (21 May 2006)
+
+ 21 May 2006; Seemant Kulleen <seemant@gentoo.org>
+ +files/mit-krb5-pthreads.patch, +files/mit-krb5-robustgnu.patch,
+ +files/mit-krb5-setupterm.patch, +mit-krb5-1.4.3-r1.ebuild:
+ The setupterm patch fixes bug #124405 by Juergen Rose. The pthreads and
+ robusgnu patches were submitted in bug #125966 by Jose daLuz. Sorry for the
+ delay on both
22 Feb 2006; Simon Stelling <blubb@gentoo.org> mit-krb5-1.4.3.ebuild:
amd64 stable wrt bug 113741
diff --git a/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3 b/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3
index a170b9e504a3..ecbc87ab159a 100644
--- a/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3
+++ b/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3
@@ -1 +1,3 @@
MD5 6c805139a4108fbb82fa4adba557a448 krb5-1.4.3-signed.tar 7290880
+RMD160 838425b59bf37da69c927eb346be78d059fa6db7 krb5-1.4.3-signed.tar 7290880
+SHA256 86f246877cc912ae6a82b6bb16217e54ec31fe46ae33a39a42b3f062bb5e6cbe krb5-1.4.3-signed.tar 7290880
diff --git a/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3-r1 b/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3-r1
new file mode 100644
index 000000000000..ecbc87ab159a
--- /dev/null
+++ b/app-crypt/mit-krb5/files/digest-mit-krb5-1.4.3-r1
@@ -0,0 +1,3 @@
+MD5 6c805139a4108fbb82fa4adba557a448 krb5-1.4.3-signed.tar 7290880
+RMD160 838425b59bf37da69c927eb346be78d059fa6db7 krb5-1.4.3-signed.tar 7290880
+SHA256 86f246877cc912ae6a82b6bb16217e54ec31fe46ae33a39a42b3f062bb5e6cbe krb5-1.4.3-signed.tar 7290880
diff --git a/app-crypt/mit-krb5/files/mit-krb5-pthreads.patch b/app-crypt/mit-krb5/files/mit-krb5-pthreads.patch
new file mode 100644
index 000000000000..726dfa4bf323
--- /dev/null
+++ b/app-crypt/mit-krb5/files/mit-krb5-pthreads.patch
@@ -0,0 +1,29 @@
+--- krb5-1.4.3/src/aclocal.m4 2006-01-19 18:56:17.000000000 -0500
++++ krb5-1.4.3/src/aclocal.m4 2006-01-19 18:56:11.000000000 -0500
+@@ -171,7 +171,14 @@
+ dnl reference support we can figure out whether or not the pthread library
+ dnl has been linked in.
+ dnl If we don't add any libraries for thread support, don't bother.
+-AC_CHECK_FUNCS(pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init)
++for fn in pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init ; do
++ AC_CHECK_DECLS($fn,,,[
++ #ifdef HAVE_PTHREAD
++ #include <pthread.h>
++ #endif
++ ])
++ AC_CHECK_FUNCS($fn)
++done
+ old_CC="$CC"
+ test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
+ old_CFLAGS="$CFLAGS"
+--- krb5-1.4.3/src/util/support/threads.c 2005-08-12 16:57:07.000000000 -0400
++++ krb5-1.4.3/src/util/support/threads.c 2006-01-19 19:00:59.000000000 -0500
+@@ -141,7 +141,7 @@
+ || &pthread_equal == 0
+ /* This catches Solaris 9. May be redundant with the above
+ tests now. */
+-# ifdef HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB
++# if defined(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB) && HAVE_DECL_PTHREAD_MUTEXATTR_SETROBUST_NP
+ || &pthread_mutexattr_setrobust_np == 0
+ # endif
+ /* Any program that's really multithreaded will have to be
diff --git a/app-crypt/mit-krb5/files/mit-krb5-robustgnu.patch b/app-crypt/mit-krb5/files/mit-krb5-robustgnu.patch
new file mode 100644
index 000000000000..73cafbd1a76d
--- /dev/null
+++ b/app-crypt/mit-krb5/files/mit-krb5-robustgnu.patch
@@ -0,0 +1,53 @@
+diff -ru krb5-1.4.3.orig/src/aclocal.m4 krb5-1.4.3/src/aclocal.m4
+--- krb5-1.4.3.orig/src/aclocal.m4 2005-09-22 13:16:11.000000000 -0400
++++ krb5-1.4.3/src/aclocal.m4 2006-03-26 09:50:10.000000000 -0500
+@@ -182,7 +182,10 @@
+ LIBS="$PTHREAD_LIBS $LIBS"
+ AC_MSG_NOTICE(rechecking with PTHREAD_... options)
+ AC_CHECK_LIB(c, pthread_mutexattr_setrobust_np,
+- [AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB,1,[Define if pthread_mutexattr_setrobust_np is provided in the thread library.])])
++ [AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB,1,[Define if pthread_mutexattr_setrobust_np is provided in the thread library.])
++# pthread_mutexattr_setrobust_np is declared as a GNU extension on GNU libc
++ PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_GNU_SOURCE"
++ ])
+ AC_CHECK_LIB(c, pthread_rwlock_init,
+ [AC_DEFINE(HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB,1,[Define if pthread_rwlock_init is provided in the thread library.])])
+ LIBS="$old_LIBS"
+diff -ru krb5-1.4.3.orig/src/configure.in krb5-1.4.3/src/configure.in
+--- krb5-1.4.3.orig/src/configure.in 2005-07-18 18:12:43.000000000 -0400
++++ krb5-1.4.3/src/configure.in 2006-03-26 09:50:16.000000000 -0500
+@@ -66,14 +66,7 @@
+ dnl for kdc
+ AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h ifaddrs.h unistd.h)
+ AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
+-KRB5_NEED_PROTO([#include <string.h>
+-#ifdef HAVE_UNISTD_H
+-#include <unistd.h>
+-#endif
+-/* Solaris 8 declares swab in stdlib.h. */
+-#include <stdlib.h>
+-],swab,1)
+-dnl
++
+ AC_PROG_AWK
+ KRB5_AC_INET6
+ KRB5_SOCKADDR_SA_LEN
+@@ -160,6 +153,18 @@
+ fi # tsmissing not empty
+ fi # enable_thread_support
+ dnl
++# The _GNU_SOURCE for pthread_mutex_attr_setrobust_np creates a clash with
++# with the swab declaration
++if echo "$PTHREAD_CFLAGS" | test ! grep _GNU_SOURCE; then
++KRB5_NEED_PROTO([#include <string.h>
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++/* Solaris 8 declares swab in stdlib.h. */
++#include <stdlib.h>
++],swab,1)
++fi
++dnl
+ HOST_TYPE=$krb5_cv_host
+ AC_SUBST(HOST_TYPE)
+ dnl
diff --git a/app-crypt/mit-krb5/files/mit-krb5-setupterm.patch b/app-crypt/mit-krb5/files/mit-krb5-setupterm.patch
new file mode 100644
index 000000000000..3c81382460c9
--- /dev/null
+++ b/app-crypt/mit-krb5/files/mit-krb5-setupterm.patch
@@ -0,0 +1,20 @@
+--- krb5-1.4.3/src/appl/telnet/configure.in.orig 2006-05-21 16:28:39.187870750 -0400
++++ krb5-1.4.3/src/appl/telnet/configure.in 2006-05-21 16:29:26.758843750 -0400
+@@ -50,7 +50,7 @@
+ #endif
+ ])
+ dnl
+-AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
++AC_CHECK_LIB(termcap,setupterm,AC_DEFINE(TERMCAP)
+ LIBS="$LIBS -ltermcap",
+ AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",
+ AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")
+@@ -96,7 +96,7 @@
+ dnl from old telnetd/configure.in
+ dnl
+ dnl AC_PROG_INSTALL
+-AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
++AC_CHECK_LIB(termcap,setupterm,AC_DEFINE(TERMCAP)
+ LIBS="$LIBS -ltermcap",
+ AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",
+ AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")
diff --git a/app-crypt/mit-krb5/mit-krb5-1.4.3-r1.ebuild b/app-crypt/mit-krb5/mit-krb5-1.4.3-r1.ebuild
new file mode 100644
index 000000000000..0c7993ac92cf
--- /dev/null
+++ b/app-crypt/mit-krb5/mit-krb5-1.4.3-r1.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.4.3-r1.ebuild,v 1.1 2006/05/21 20:41:16 seemant Exp $
+
+inherit eutils flag-o-matic versionator
+
+MY_P=${P/mit-}
+P_DIR=$(get_version_component_range 1-2)
+S=${WORKDIR}/${MY_P}/src
+DESCRIPTION="MIT Kerberos V"
+HOMEPAGE="http://web.mit.edu/kerberos/www/"
+SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="krb4 static tcltk ipv6 doc tetex berkdb"
+
+RDEPEND="virtual/libc
+ !virtual/krb5"
+
+DEPEND="${RDEPEND}
+ sys-libs/com_err
+ sys-libs/ss
+ sys-devel/autoconf
+ berkdb? ( >=sys-libs/db-4 )
+ doc? ( tetex? ( virtual/tetex ) )"
+
+PROVIDE="virtual/krb5"
+
+src_unpack() {
+ unpack ${MY_P}-signed.tar; tar zxf ${MY_P}.tar.gz; cd ${S}
+ epatch ${FILESDIR}/${PN}-lazyldflags.patch
+ epatch ${FILESDIR}/${PN}-robustgnu.patch
+ epatch ${FILESDIR}/${PN}-robust.patch
+ epatch ${FILESDIR}/${PN}-setupterm.patch
+}
+
+src_compile() {
+ if use berkdb ; then
+ export DB_HEADER="/usr/include/db_185.h"
+ export DB_LIB="/usr/$(get_libdir)/libdb.so"
+ fi
+
+ econf \
+ $(use_with krb4) \
+ $(use_with tcltk tcl) \
+ $(use_enable ipv6) \
+ $(use_enable static) \
+ $(use_with berkdb system-db) \
+ --localstatedir=/etc \
+ --enable-shared \
+ --with-system-et --with-system-ss \
+ --enable-dns-for-realm || die
+
+ emake -j1 || die
+
+ if use doc ; then
+ cd ../doc
+ rm man2html && ln -sf ${ROOT}/usr/bin/man2html
+
+ make || die
+
+ if use tetex ; then
+ cd api
+ make || die
+ fi
+ fi
+}
+
+src_test() {
+ einfo "Testing is being debugged, disabled for now"
+}
+
+src_install() {
+ make \
+ DESTDIR=${D} \
+ EXAMPLEDIR=/usr/share/doc/${PF}/examples \
+ install || die
+
+ cd ..
+ dodoc README
+ doinfo doc/*.texinfo
+
+ if use doc
+ then
+ dohtml -r doc
+ use tetex \
+ && dodoc doc/api/*.{tex,sty} \
+ || dodoc doc/api/*.ps
+
+ fi
+
+ for i in {telnetd,ftpd}
+ do
+ mv ${D}/usr/share/man/man8/${i}.8 ${D}/usr/share/man/man8/k${i}.8
+ mv ${D}/usr/sbin/${i} ${D}/usr/sbin/k${i}
+ done
+
+ for i in {rcp,rsh,telnet,ftp}
+ do
+ mv ${D}/usr/share/man/man1/${i}.1 ${D}/usr/share/man/man1/k${i}.1
+ mv ${D}/usr/bin/${i} ${D}/usr/bin/k${i}
+ done
+
+
+
+
+
+ newinitd ${FILESDIR}/mit-krb5kadmind.initd mit-krb5kadmind
+ newinitd ${FILESDIR}/mit-krb5kdc.initd mit-krb5kdc
+
+ insinto /etc
+ doins ${FILESDIR}/k{rb5,dc}.conf
+}
+
+pkg_postinst() {
+
+ if use doc
+ then
+ einfo "See /usr/share/doc/${PF}/html/admin.html for documentation."
+ echo ""
+ fi
+ einfo "The client apps are installed with the mit- prefix"
+ einfo "(ie. mit-ftp, mit-ftpd, mit-telnet, mit-telnetd, etc...)"
+ echo ""
+ ewarn "PLEASE READ THIS"
+ einfo "This release of mit-krb5 now depends on an external version"
+ einfo "of the com_err library. Please make sure to run revdep-rebuild"
+ einfo "to ensure the integrity of the linking on your system"
+ echo ""
+ epause 10
+ ebeep
+
+}