diff options
author | Charlie Shepherd <masterdriverz@gentoo.org> | 2007-01-16 23:04:09 +0000 |
---|---|---|
committer | Charlie Shepherd <masterdriverz@gentoo.org> | 2007-01-16 23:04:09 +0000 |
commit | f347b4e8377c204bb1bab72a50d6300e71cee9d7 (patch) | |
tree | 1c50609be42f4018729c9569ea49cd0aeb67c34c /net-libs/courier-authlib/files | |
parent | Fix vncClasses variable in the patch, thanks to Josh <pekster-main at usa dot... (diff) | |
download | gentoo-2-f347b4e8377c204bb1bab72a50d6300e71cee9d7.tar.gz gentoo-2-f347b4e8377c204bb1bab72a50d6300e71cee9d7.tar.bz2 gentoo-2-f347b4e8377c204bb1bab72a50d6300e71cee9d7.zip |
Clean out old versions. Sanitize remaining ebuild. Bump to -r1 for bug 117290. Fix configure for bug 117290 for >db-4.3, thanks to Hanno Meyer-Thurow. Fix configure for bug 160286, thanks to Sheldon Hearn.
(Portage version: 2.1.2_rc4-r3)
Diffstat (limited to 'net-libs/courier-authlib/files')
5 files changed, 161 insertions, 0 deletions
diff --git a/net-libs/courier-authlib/files/0.58-configure-db4.patch b/net-libs/courier-authlib/files/0.58-configure-db4.patch new file mode 100644 index 000000000000..2c39f510c93b --- /dev/null +++ b/net-libs/courier-authlib/files/0.58-configure-db4.patch @@ -0,0 +1,68 @@ +--- configure.in.orig 2004-11-02 14:46:22.000000000 -0800 ++++ configure.in 2004-11-02 14:51:02.531958000 -0800 +@@ -26,7 +26,6 @@ + AC_PROG_CPP + AC_PROG_INSTALL + AC_PROG_LN_S +-AC_PROG_SYSCONFTOOL + AC_SUBST(LTDLINCL) + AC_SUBST(LIBLTDL) + AC_LIBTOOL_DLOPEN +@@ -284,15 +283,17 @@ + + if test "$db" != "gdbm" + then +- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ], +- [ AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"], +- [ AC_CHECK_LIB(db, db_env_create, +- [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) ] +- )]) +- +- AC_CHECK_FUNC(dbopen, HAVE_BDB=1) +- AC_CHECK_FUNC(db_open, HAVE_BDB=1) +- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1) ++ for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db ++ do ++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], ++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], ++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], ++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ])))) ++ done ++ AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1) ++ AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1) ++ AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1) ++ AC_CHECK_FUNC(db_create, HAVE_BDB=1) + fi + + LIBS="$saveLIBS" +--- bdbobj/configure.in 2001-09-18 18:26:28.000000000 -0700 ++++ bdbobj/configure.in 2004-08-14 16:15:08.469316646 -0700 +@@ -21,15 +21,19 @@ + dnl Checks for libraries. + + saveLIBS="$LIBS" +-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ], +- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"], +- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) +- )) +- +-FOUND_DB=0 +-AC_CHECK_FUNC(dbopen, FOUND_DB=1) +-AC_CHECK_FUNC(db_open, FOUND_DB=1) +-AC_CHECK_FUNC(db_env_create, FOUND_DB=1) ++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db ++ do ++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], ++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], ++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], ++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ])))) ++ ++ done ++FOUND_DB=0 ++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1) ++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1) ++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1) ++AC_CHECK_FUNC(db_create, FOUND_DB=1) + + LIBS="$saveLIBS" + diff --git a/net-libs/courier-authlib/files/0.58-remove-obsolete-macro.patch b/net-libs/courier-authlib/files/0.58-remove-obsolete-macro.patch new file mode 100644 index 000000000000..9dadae2e0b5b --- /dev/null +++ b/net-libs/courier-authlib/files/0.58-remove-obsolete-macro.patch @@ -0,0 +1,10 @@ +--- configure.in.orig 2004-11-02 14:46:22.000000000 -0800 ++++ configure.in 2004-11-02 14:51:02.531958000 -0800 +@@ -26,7 +26,6 @@ + AC_PROG_CPP + AC_PROG_INSTALL + AC_PROG_LN_S +-AC_PROG_SYSCONFTOOL + AC_SUBST(LTDLINCL) + AC_SUBST(LIBLTDL) + AC_LIBTOOL_DLOPEN diff --git a/net-libs/courier-authlib/files/courier-authlib b/net-libs/courier-authlib/files/courier-authlib new file mode 100644 index 000000000000..d0071fafe1fa --- /dev/null +++ b/net-libs/courier-authlib/files/courier-authlib @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/files/courier-authlib,v 1.1 2007/01/16 23:04:09 masterdriverz Exp $ +depend() { + need net + provide authdaemond +} + +checkconfig() { + if [ ! -e /etc/courier/authlib/authdaemonrc ] ; then + eerror "You need an /etc/courier/authlib/authdaemonrc file to run authdaemon" + return 1 + fi +} + +setauth() { + source /etc/courier/authlib/authdaemonrc + AUTHLIB="/usr/lib/courier/courier-authlib" + AUTHDAEMOND="authdaemond" + pidfile="/var/run/authdaemon.pid" + logger="/usr/sbin/courierlogger" + export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS +} + +start() { + checkconfig || return 1 + setauth + ebegin "Starting courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --start --pidfile "$pidfile" --exec \ + /usr/bin/env $logger -- ${LOGGEROPTS} -pid="$pidfile" -start "${AUTHLIB}/${AUTHDAEMOND}" + eend $? +} + +stop() { + setauth + ebegin "Stopping courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --stop --pidfile "$pidfile" + eend $? +} diff --git a/net-libs/courier-authlib/files/digest-courier-authlib-0.58-r1 b/net-libs/courier-authlib/files/digest-courier-authlib-0.58-r1 new file mode 100644 index 000000000000..ccddca8e1b38 --- /dev/null +++ b/net-libs/courier-authlib/files/digest-courier-authlib-0.58-r1 @@ -0,0 +1,3 @@ +MD5 fb691558d611cb191ae6a83002f0195b courier-authlib-0.58.tar.bz2 2006735 +RMD160 6474612496cd287f294c7f52239ea853c44e4aa1 courier-authlib-0.58.tar.bz2 2006735 +SHA256 d877cc6c65e90471ec9410c5ce7af467ba5beb3922b9cfbf2bf6aa24f6bdc7ad courier-authlib-0.58.tar.bz2 2006735 diff --git a/net-libs/courier-authlib/files/initd/courier-authlib b/net-libs/courier-authlib/files/initd/courier-authlib new file mode 100644 index 000000000000..a3c03cc36f6d --- /dev/null +++ b/net-libs/courier-authlib/files/initd/courier-authlib @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/files/initd/courier-authlib,v 1.1 2007/01/16 23:04:09 masterdriverz Exp $ +depend() { + need net + provide authdaemond +} + +checkconfig() { + if [ ! -e /etc/courier/authlib/authdaemonrc ] ; then + eerror "You need an /etc/courier/authlib/authdaemonrc file to run authdaemon" + return 1 + fi +} + +setauth() { + source /etc/courier/authlib/authdaemonrc + AUTHLIB="/usr/lib/courier/courier-authlib" + AUTHDAEMOND="authdaemond" + pidfile="/var/run/authdaemon.pid" + logger="/usr/sbin/courierlogger" + export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS +} + +start() { + checkconfig || return 1 + setauth + ebegin "Starting courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --start --pidfile "$pidfile" --exec \ + /usr/bin/env $logger -- ${LOGGEROPTS} -pid="$pidfile" -start "${AUTHLIB}/${AUTHDAEMOND}" + eend $? +} + +stop() { + setauth + ebegin "Stopping courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --stop --pidfile "$pidfile" + eend $? +} |