summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott W Taylor <swtaylor@gentoo.org>2005-01-31 23:50:08 +0000
committerScott W Taylor <swtaylor@gentoo.org>2005-01-31 23:50:08 +0000
commit497c55fb3bc06f7a3aef71a338f22dc143ea04ae (patch)
treede24f299d375cb7070559e1fe8a2adb441d56754 /net-libs/courier-authlib
parentversion bump & stable on x86 (#80154) (diff)
downloadhistorical-497c55fb3bc06f7a3aef71a338f22dc143ea04ae.tar.gz
historical-497c55fb3bc06f7a3aef71a338f22dc143ea04ae.tar.bz2
historical-497c55fb3bc06f7a3aef71a338f22dc143ea04ae.zip
mostly for fixing #80195
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-libs/courier-authlib')
-rw-r--r--net-libs/courier-authlib/ChangeLog8
-rw-r--r--net-libs/courier-authlib/Manifest6
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.52-r1.ebuild25
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.53.ebuild27
4 files changed, 53 insertions, 13 deletions
diff --git a/net-libs/courier-authlib/ChangeLog b/net-libs/courier-authlib/ChangeLog
index 41c5c801ae99..a429c3f0634d 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-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.25 2005/01/31 04:14:07 swtaylor Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.26 2005/01/31 23:50:08 swtaylor Exp $
+
+ 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org>
+ courier-authlib-0.52-r1.ebuild, courier-authlib-0.53.ebuild:
+ changed sed calls for more consistent edits.
+ make sure userdb is found and migrated
+ call makeuserdb after the install, if userdb exists
30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org>
courier-authlib-0.52-r1.ebuild, courier-authlib-0.53.ebuild:
diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest
index e849b09b138c..3e2737017ae7 100644
--- a/net-libs/courier-authlib/Manifest
+++ b/net-libs/courier-authlib/Manifest
@@ -1,6 +1,6 @@
-MD5 7796e32a1aa4de703de8fdb2c367350b courier-authlib-0.53.ebuild 5166
-MD5 34b7f7b9572d5442bce19264d164de1b courier-authlib-0.52-r1.ebuild 5158
-MD5 0055d20379542f1cf8ebaff85bd5d456 ChangeLog 3852
+MD5 5b030ad9cf6097e9f917e3816ab6a4af courier-authlib-0.53.ebuild 5892
+MD5 0f62cc3ae34c1c335f1ba1964844492d courier-authlib-0.52-r1.ebuild 5895
+MD5 93eed04ec9ffaea9eea3b2befa102fb9 ChangeLog 4110
MD5 1639b87658242c2406f7f7f8deda7388 metadata.xml 334
MD5 73d603079009e02b50f27fcaaf0ee3c0 files/digest-courier-authlib-0.53 74
MD5 a01734679d1906a8886eccdcf66a20f5 files/digest-courier-authlib-0.52-r1 74
diff --git a/net-libs/courier-authlib/courier-authlib-0.52-r1.ebuild b/net-libs/courier-authlib/courier-authlib-0.52-r1.ebuild
index 3c5bcc95e3a9..02f25653d42e 100644
--- a/net-libs/courier-authlib/courier-authlib-0.52-r1.ebuild
+++ b/net-libs/courier-authlib/courier-authlib-0.52-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 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.52-r1.ebuild,v 1.3 2005/01/31 04:14:07 swtaylor Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.52-r1.ebuild,v 1.4 2005/01/31 23:50:08 swtaylor Exp $
inherit eutils gnuconfig
@@ -53,8 +53,10 @@ src_unpack() {
autoconf || die "recreate bdbobj/configure failed"
eend $?
fi
- sed -i -e'/for dir in/a\\t\t\/etc\/courier-imap \\' ${S}/authmigrate.in
- sed -i -e'/for dir in/a\\t\t\/etc\/courier\/authlib \\' ${S}/authmigrate.in
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' ${S}/authmigrate.in
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' ${S}/authmigrate.in
+ sed -i -e"s|@@INDENT@@| |g" ${S}/authmigrate.in
+ sed -i -e"s|\$sbindir/makeuserdb||g" ${S}/authmigrate.in
}
src_compile() {
@@ -78,7 +80,7 @@ src_compile() {
use debug && myconf="${myconf} debug=true"
- einfo "${myconf}"
+ einfo "Configuring courier-authlib: ${myconf}"
econf \
--sysconfdir=/etc/courier \
@@ -105,6 +107,18 @@ orderfirst() {
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
+ [ -e "$dir/userdb" ] && ( echo "found $dir/userdb" ; \
+ cp -v $dir/userdb ${D}/etc/courier/authlib/ ; continue )
+ done
+}
+
src_install() {
diropts -o mail -g mail
dodir /etc/courier
@@ -112,6 +126,7 @@ src_install() {
keepdir /etc/courier/authlib
emake install DESTDIR="${D}" || die "install"
emake install-migrate DESTDIR="${D}" || die "migrate"
+ [ ! -e "${D}/etc/courier/authlib/userdb" ] && finduserdb
emake install-configure DESTDIR="${D}" || die "configure"
rm -vf ${D}/etc/courier/authlib/*.bak
chown mail:mail ${D}/etc/courier/authlib/*
@@ -134,6 +149,8 @@ src_install() {
}
pkg_postinst() {
+ [ -e /etc/courier/authlib/userdb ] && \
+ ( einfo "running makeuserdb" ; makeuserdb )
# Suggest cleaning out the following old files
list="`find /etc/courier -type f -maxdepth 1 | grep \"^/etc/courier/auth\"`"
if [ ! -z "${list}" ] ; then
diff --git a/net-libs/courier-authlib/courier-authlib-0.53.ebuild b/net-libs/courier-authlib/courier-authlib-0.53.ebuild
index e3d3e521e9db..c0c4d9a8b65d 100644
--- a/net-libs/courier-authlib/courier-authlib-0.53.ebuild
+++ b/net-libs/courier-authlib/courier-authlib-0.53.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 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.53.ebuild,v 1.2 2005/01/31 04:14:07 swtaylor Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.53.ebuild,v 1.3 2005/01/31 23:50:08 swtaylor Exp $
inherit eutils gnuconfig
@@ -12,7 +12,7 @@ S="${WORKDIR}/${P%%_pre}"
SLOT="0"
LICENSE="GPL-2"
-KEYWORDS="~x86 ~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sparc ~ppc64"
+KEYWORDS="x86 alpha amd64 arm hppa ia64 mips ppc s390 sparc ppc64"
IUSE="postgres ldap mysql berkdb gdbm pam crypt uclibc debug"
DEPEND="virtual/libc
@@ -53,8 +53,10 @@ src_unpack() {
autoconf || die "recreate bdbobj/configure failed"
eend $?
fi
- sed -i -e'/for dir in/a\\t\t\/etc\/courier-imap \\' ${S}/authmigrate.in
- sed -i -e'/for dir in/a\\t\t\/etc\/courier\/authlib \\' ${S}/authmigrate.in
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' ${S}/authmigrate.in
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' ${S}/authmigrate.in
+ sed -i -e"s|@@INDENT@@| |g" ${S}/authmigrate.in
+ sed -i -e"s|\$sbindir/makeuserdb||g" ${S}/authmigrate.in
}
src_compile() {
@@ -78,7 +80,7 @@ src_compile() {
use debug && myconf="${myconf} debug=true"
- einfo "${myconf}"
+ einfo "Configuring courier-authlib: ${myconf}"
econf \
--sysconfdir=/etc/courier \
@@ -105,6 +107,18 @@ orderfirst() {
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
+ [ -e "$dir/userdb" ] && ( echo "found $dir/userdb" ; \
+ cp -v $dir/userdb ${D}/etc/courier/authlib/ ; continue )
+ done
+}
+
src_install() {
diropts -o mail -g mail
dodir /etc/courier
@@ -112,6 +126,7 @@ src_install() {
keepdir /etc/courier/authlib
emake install DESTDIR="${D}" || die "install"
emake install-migrate DESTDIR="${D}" || die "migrate"
+ [ ! -e "${D}/etc/courier/authlib/userdb" ] && finduserdb
emake install-configure DESTDIR="${D}" || die "configure"
rm -vf ${D}/etc/courier/authlib/*.bak
chown mail:mail ${D}/etc/courier/authlib/*
@@ -134,6 +149,8 @@ src_install() {
}
pkg_postinst() {
+ [ -e /etc/courier/authlib/userdb ] && \
+ ( einfo "running makeuserdb" ; makeuserdb )
# Suggest cleaning out the following old files
list="`find /etc/courier -type f -maxdepth 1 | grep \"^/etc/courier/auth\"`"
if [ ! -z "${list}" ] ; then