summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Boeck <hanno@gentoo.org>2008-06-08 17:52:55 +0000
committerHanno Boeck <hanno@gentoo.org>2008-06-08 17:52:55 +0000
commitb55a6516729d47686af641bf2dfa42023da39619 (patch)
treea01053ba32c2ede10a17f271bb5c43c453ccd250 /net-libs/courier-authlib
parentamd64 stable, bug #225187 (diff)
downloadhistorical-b55a6516729d47686af641bf2dfa42023da39619.tar.gz
historical-b55a6516729d47686af641bf2dfa42023da39619.tar.bz2
historical-b55a6516729d47686af641bf2dfa42023da39619.zip
courier-authlib security bump
Package-Manager: portage-2.1.5.4
Diffstat (limited to 'net-libs/courier-authlib')
-rw-r--r--net-libs/courier-authlib/ChangeLog8
-rw-r--r--net-libs/courier-authlib/Manifest10
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.60.6.ebuild186
3 files changed, 199 insertions, 5 deletions
diff --git a/net-libs/courier-authlib/ChangeLog b/net-libs/courier-authlib/ChangeLog
index 8bf9e8c09d3b..de4a9847993e 100644
--- a/net-libs/courier-authlib/ChangeLog
+++ b/net-libs/courier-authlib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/courier-authlib
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.80 2008/05/25 12:11:34 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.81 2008/06/08 17:52:55 hanno Exp $
+
+*courier-authlib-0.60.6 (08 Jun 2008)
+
+ 08 Jun 2008; Hanno Boeck <hanno@gentoo.org>
+ +courier-authlib-0.60.6.ebuild:
+ Version bump, security.
25 May 2008; Hanno Boeck <hanno@gentoo.org> courier-authlib-0.60.2.ebuild,
courier-authlib-0.60.2-r1.ebuild:
diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest
index 512c126372d2..379fa056ffe5 100644
--- a/net-libs/courier-authlib/Manifest
+++ b/net-libs/courier-authlib/Manifest
@@ -9,16 +9,18 @@ AUX courier-authlib 1112 RMD160 a0d5bf781ed1792677d83efd5034c83f689f7f2f SHA1 e7
DIST courier-authlib-0.58.tar.bz2 2006735 RMD160 6474612496cd287f294c7f52239ea853c44e4aa1 SHA1 8bdab3c2e734cc8f47230924ec638ba3609a92a1 SHA256 d877cc6c65e90471ec9410c5ce7af467ba5beb3922b9cfbf2bf6aa24f6bdc7ad
DIST courier-authlib-0.59.2.tar.bz2 2109549 RMD160 499da7ec09fbe46be5ea9450c6ecb9c3d648244b SHA1 84dfd3175b2fcbbb18a1ea87f3cb803daff827df SHA256 326f4a2e0c2a6259083f521ae838984eca051483dadfdcda4b0a535d7472f396
DIST courier-authlib-0.60.2.tar.bz2 2158473 RMD160 bdf6d68b7b6a5c6d13079477d83312f98dd7bd31 SHA1 cd5969075de212ecfb406ffb1ac974ea939ddcc0 SHA256 824e92b6b6f7755ec06a22b5b1eb3734853ee8824612c62f92a9b2f33be04bbd
+DIST courier-authlib-0.60.6.tar.bz2 2173779 RMD160 7d2dd176497754bc50c3e4f76e7fb72513f7285b SHA1 31224309d6cde82e57fcddf73fc1999fd7529fd4 SHA256 3ac028bfb34110fccf88e78b3235c6129d2b856e81589ce9b9cf60fd8f4af408
EBUILD courier-authlib-0.58.ebuild 5872 RMD160 83747b4c5e50f8f3d071e810f0e4c6cbe8e3c54a SHA1 4866b468399f5177fd3ced26200b03fe968d8649 SHA256 e33d86092317f8c644203f4f0f03a0f4989bfdaca45f5e665b36939e8b729c7c
EBUILD courier-authlib-0.59.2.ebuild 5947 RMD160 dd4b55148807addd08eca7e6342c99c8940792ef SHA1 599a46dfc885f33b1f25ce6c308099df842f4531 SHA256 263ee83b45922e3407b40e6bdcb30f26f7f0e7cce6fb67e437546dfdb4a62d25
EBUILD courier-authlib-0.60.2-r1.ebuild 5886 RMD160 ed7c0251cc22cdd32c37cfe501aa9cd76fa6f3cd SHA1 0ba410ed723e2935ebd23dbc19db0ffebbdd1f2f SHA256 e47cf5e6a0bae8a9ae1adebd8c62f3e31dc6a39df2ea276bc16da346ac71d87f
EBUILD courier-authlib-0.60.2.ebuild 5894 RMD160 46d68d503f22e6d2a9d106fff11596d60dde3b1b SHA1 48a60c3d6b768f412b4723ec96764265ba01f622 SHA256 3efabb29d58c077c36441a6c167aa53449b7563966d253b31bd03a144257af10
-MISC ChangeLog 13733 RMD160 02640037f6566bdc76170c158f802966cf4f360f SHA1 f11fdb34c13648e85ee1a12fb5caddf437bd2e79 SHA256 5ae5528814dc498664515be7df1d1c022c11d50f7b2188389d6c807151e1b060
+EBUILD courier-authlib-0.60.6.ebuild 5890 RMD160 ce4fbfe2d4a188e1bab9edbe3396d337c2c0f158 SHA1 a13b26a7315dd4b97cd53f974d9fb4c3559c397f SHA256 a225376c8c7415cb236cf6e71e028eed02ef0b405825bb258416be7abf76a18f
+MISC ChangeLog 13879 RMD160 d25f69af1b2426e192a180f0ade2a922dd805ce6 SHA1 95cc3edd3520c6c9823b3e761d6b247fc9f06f4c SHA256 0b51e650df86b065ec658abce627d1ec5c07d840fa512b43244c69ecd213e517
MISC metadata.xml 162 RMD160 fd38b82541901b3c6df18b630d79fe7883ae3f01 SHA1 e6aecefcc2137d6047cedfe447686775ab59cb48 SHA256 569031668e39895fb20829fb17a49a91a83e8f41b2195b0f04825c4340d2af6b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkg5V3cACgkQr2QksT29OyB+IQCgjH1iDhi+7/mBJUj/j2bmcbzP
-vxcAoIfFazV2kktwpdotCSqvPmWKqYGS
-=QemT
+iEYEARECAAYFAkhMHIAACgkQr2QksT29OyCrSwCfdxSjjsS22tqLDQ6VMYGt67MV
+XYwAn1c/Druv08SkU/YUmPZKWAqoO6Yt
+=BWWL
-----END PGP SIGNATURE-----
diff --git a/net-libs/courier-authlib/courier-authlib-0.60.6.ebuild b/net-libs/courier-authlib/courier-authlib-0.60.6.ebuild
new file mode 100644
index 000000000000..e798d9677bc5
--- /dev/null
+++ b/net-libs/courier-authlib/courier-authlib-0.60.6.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.60.6.ebuild,v 1.1 2008/06/08 17:52:55 hanno Exp $
+
+inherit eutils flag-o-matic autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+
+DESCRIPTION="Courier authentication library."
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+HOMEPAGE="http://www.courier-mta.org/"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="berkdb crypt debug gdbm ldap mysql pam postgres vpopmail"
+
+RESTRICT="userpriv"
+
+RDEPEND="gdbm? ( sys-libs/gdbm )
+ !gdbm? ( sys-libs/db )"
+
+DEPEND="${RDEPEND}
+ >=dev-libs/openssl-0.9.6
+ ldap? ( >=net-nds/openldap-1.2.11 )
+ mysql? ( virtual/mysql )
+ pam? ( virtual/pam )
+ postgres? ( >=virtual/postgresql-server-7.2 )"
+
+pkg_setup() {
+ enewuser mail -1 -1 /var/spool/mail
+
+ if ! has_version 'dev-tcltk/expect' ; then
+ ewarn 'The dev-tcltk/expect package is not installed.'
+ ewarn 'Without it, you will not be able to change system login passwords.'
+ ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
+ ewarn 'and others) will work just fine.'
+ fi
+
+ if use vpopmail ; then
+ eerror
+ eerror "vpopmail support has been removed, it's unmaintained upstream and will be"
+ eerror "removed with the next release."
+ eerror
+ eerror "Please remove vpopmail USE-flag."
+ die "vpopmail support removed"
+ fi
+
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if ! use gdbm ; then
+ epatch "${FILESDIR}/0.59.2-configure-db4.patch"
+ else
+ epatch "${FILESDIR}/0.59.2-remove-obsolete-macro.patch"
+ fi
+
+ sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed"
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed"
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' authmigrate.in || die "sed failed"
+ sed -i -e"s|@@INDENT@@| |g" authmigrate.in || die "sed failed"
+ sed -i -e"s|\$sbindir/makeuserdb||g" authmigrate.in || die "sed failed"
+
+ local d
+ for d in $(find -name configure.in) ; do
+ [[ ${d} == */libltdl/* ]] && continue
+ cd "${S}"/${d%configure.in}
+ eautoreconf
+ done
+}
+
+src_compile() {
+ filter-flags -fomit-frame-pointer
+
+ local myconf=""
+
+ myconf="${myconf} `use_with pam authpam`"
+ myconf="${myconf} `use_with ldap authldap`"
+
+ if use berkdb ; then
+ if use gdbm ; then
+ ewarn "Both gdbm and berkdb selected. Using gdbm."
+ else
+ myconf="${myconf} --with-db=db"
+ fi
+ fi
+ use gdbm && myconf="${myconf} --with-db=gdbm"
+
+ myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpgsql`"
+
+ use debug && myconf="${myconf} debug=true"
+
+ einfo "Configuring courier-authlib: ${myconf}"
+
+ econf \
+ --sysconfdir=/etc/courier \
+ --datadir=/usr/share/courier \
+ --libexecdir=/usr/$(get_libdir)/courier \
+ --localstatedir=/var/lib/courier \
+ --sharedstatedir=/var/lib/courier/com \
+ --with-authdaemonvar=/var/lib/courier/authdaemon \
+ --with-authshadow \
+ --without-redhat \
+ --with-mailuser=mail \
+ --with-mailgroup=mail \
+ --cache-file="${S}/configuring.cache" \
+ ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+orderfirst() {
+ file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
+ if [[ -e "${file}" ]] ; then
+ orig="$(grep \"^${option}=\" ${file} | cut -d'\"' -f 2)"
+ new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
+ sed -i -e "s/^${option}=.*$/${new}/" "${file}"
+ fi
+}
+
+finduserdb() {
+ for dir in \
+ /etc/courier/authlib /etc/courier /etc/courier-imap \
+ /usr/lib/courier/etc /usr/lib/courier-imap/etc \
+ /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \
+ /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \
+ /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do
+ if [[ -e "${dir}/userdb" ]] ; then
+ einfo "Found userdb at: ${dir}/userdb"
+ cp -f "${dir}/userdb" "${D}/etc/courier/authlib/"
+ chmod go-rwx "${D}/etc/courier/authlib/userdb"
+ continue
+ fi
+ done
+}
+
+src_install() {
+ diropts -o mail -g mail
+ dodir /etc/courier
+ keepdir /var/lib/courier/authdaemon
+ keepdir /etc/courier/authlib
+ emake DESTDIR="${D}" install || die "emake install failed"
+ emake DESTDIR="${D}" install-migrate|| die "emake install-migrate failed"
+ [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
+ emake DESTDIR="${D}" install-configure || die "emake install-configure failed"
+ rm -f "${D}"/etc/courier/authlib/*.bak
+ chown mail:mail "${D}"/etc/courier/authlib/*
+ for y in "${D}"/etc/courier/authlib/*.dist ; do
+ [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
+ done
+ use pam && orderfirst authdaemonrc authmodulelist authpam
+ use ldap && orderfirst authdaemonrc authmodulelist authldap
+ use postgres && orderfirst authdaemonrc authmodulelist authpgsql
+ use mysql && orderfirst authdaemonrc authmodulelist authmysql
+ dodoc AUTHORS ChangeLog* INSTALL NEWS README
+ dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html
+ if use mysql ; then
+ dodoc README.authmysql.myownquery
+ dohtml README.authmysql.html
+ fi
+ if use postgres ; then
+ dohtml README.authpostgres.html README.authmysql.html
+ fi
+ if use ldap ; then
+ dodoc README.ldap
+ dodir /etc/openldap/schema
+ cp -f authldap.schema "${D}/etc/openldap/schema/"
+ fi
+ doinitd "${FILESDIR}/${PN}" || die "doinitd failed"
+}
+
+pkg_postinst() {
+ if [[ -e /etc/courier/authlib/userdb ]] ; then
+ einfo "Running makeuserdb ..."
+ chmod go-rwx /etc/courier/authlib/userdb
+ makeuserdb
+ fi
+
+ # Suggest cleaning out the following old files
+ list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")"
+ if [[ ! -z "${list}" ]] ; then
+ ewarn "Courier authentication files are now in /etc/courier/authlib/"
+ elog "The following files are no longer needed and can likely be removed:"
+ elog " rm $(echo \"${list}\")"
+ fi
+}