ChangeLog

# ChangeLog for net-mail/dbmail
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.28 2008/05/21 18:57:57 dev-zero Exp $

21 May 2008; Tiziano Müller dbmail-2.2.7.ebuild,
dbmail-2.2.8.ebuild, dbmail-2.2.9.ebuild, dbmail-2.2.10.ebuild,
dbmail-2.3.2.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

*dbmail-2.2.10 (05 May 2008)

05 May 2008; Thomas Raschbacher
+dbmail-2.2.10.ebuild:
added 2.2.10 fixes bug #218136.
Thanks to svrmarty for pointing this out

17 Apr 2008; Markus Meier dbmail-2.2.9.ebuild:
amd64/x86 stable, security bug #218154

11 Apr 2008; Markus Meier dbmail-2.2.8.ebuild:
amd64 stable, bug #209964

28 Feb 2008; Thomas Raschbacher dbmail-2.3.2.ebuild:
hard-masked 2.3.2 again as it should be.

15 Feb 2008; Michael Sterrett dbmail-2.2.7.ebuild,
dbmail-2.2.8.ebuild, dbmail-2.2.9.ebuild, dbmail-2.3.2.ebuild:
correct sqlite->sqlite3 in deps

14 Feb 2008; Christian Faulhammer dbmail-2.2.8.ebuild:
stable x86, bug 209964

13 Feb 2008; Thomas Raschbacher -dbmail-2.2.5.ebuild,
-dbmail-2.2.7_rc2.ebuild, -dbmail-2.2.7_rc3.ebuild,
-dbmail-2.2.7_rc4.ebuild, dbmail-2.2.7.ebuild, -dbmail-2.2.8_rc1.ebuild,
dbmail-2.2.8.ebuild, dbmail-2.2.9.ebuild, dbmail-2.3.2.ebuild:
cleanout of old rcX ebuilds and fixes bug 205448 (thanks to Evil Compile
Person for pointing this out)

*dbmail-2.3.2 (12 Feb 2008)
*dbmail-2.2.9 (12 Feb 2008)

12 Feb 2008; Thomas Raschbacher +dbmail-2.2.9.ebuild,
+dbmail-2.3.2.ebuild:
added 2.2.9 and 2.3.2(hardmasked for now)

23 Jan 2008; Thomas Raschbacher
dbmail-2.2.8_rc1.ebuild:
fixed S= .. in 2.2.8_rc1 fixes bug #202512 Thanks to Alexander Kuznetsov
for pointing this one out.

*dbmail-2.2.8 (18 Dec 2007)

18 Dec 2007; Thomas Raschbacher +dbmail-2.2.8.ebuild:
added 2.2.8 release

*dbmail-2.2.8_rc1 (09 Dec 2007)

09 Dec 2007; Thomas Raschbacher
+dbmail-2.2.8_rc1.ebuild:
added 2.2.8 rc1

14 Nov 2007; Steve Dibb dbmail-2.2.7.ebuild:
amd64 stable, bug 198858

13 Nov 2007; Dawid Węgliński dbmail-2.2.7.ebuild:
Stable on x86 (bug #198858)

02 Nov 2007; Steve Dibb dbmail-2.2.7_rc2.ebuild:
amd64 stable, bug 195362

*dbmail-2.2.7 (31 Oct 2007)

31 Oct 2007; Thomas Raschbacher
+dbmail-2.2.7_rc4.ebuild, +dbmail-2.2.7.ebuild:
added 2.2.7 release

*dbmail-2.2.7_rc4 (25 Oct 2007)

25 Oct 2007; Thomas Raschbacher
+dbmail-2.2.7_rc4.ebuild:
added 2.2.7 rc4

12 Oct 2007; Thomas Raschbacher
dbmail-2.2.7_rc2.ebuild:
readding x86 (see bug #195362)

*dbmail-2.2.7_rc3 (12 Oct 2007)

12 Oct 2007; Thomas Raschbacher
dbmail-2.2.7_rc2.ebuild, +dbmail-2.2.7_rc3.ebuild:
added 2.2.7 rc3
reverted to ~x86 again due to mail-filter/libsieve needing stabilizing first
and a bug. please see Bug #195362

11 Oct 2007; Christian Faulhammer
dbmail-2.2.7_rc2.ebuild:
stable x86, bug 195362

10 Oct 2007; Thomas Raschbacher -dbmail-2.2.4.ebuild,
-dbmail-2.2.5_rc2.ebuild, -dbmail-2.2.5_rc3.ebuild, dbmail-2.2.5.ebuild,
-dbmail-2.2.6_rc1.ebuild, -dbmail-2.2.6_rc2.ebuild,
-dbmail-2.2.7_rc1.ebuild, dbmail-2.2.7_rc2.ebuild:
removed 2.2.4 and old rcX versions + added openldap dependency when
USE="ldap". fixes bug #195149 thanks to Brandon Adams
for pointing this out.

*dbmail-2.2.7_rc2 (30 Sep 2007)
*dbmail-2.2.7_rc1 (30 Sep 2007)

30 Sep 2007; Thomas Raschbacher
+dbmail-2.2.7_rc1.ebuild, +dbmail-2.2.7_rc2.ebuild:
added 2.2.7 rc1 and rc2 ebuilds

*dbmail-2.2.6_rc2 (10 Sep 2007)

10 Sep 2007; Thomas Raschbacher
+dbmail-2.2.6_rc2.ebuild:
new rc added

*dbmail-2.2.6_rc1 (16 Jul 2007)

16 Jul 2007; Thomas Raschbacher
+dbmail-2.2.6_rc1.ebuild:
added 2.2.6 rc1 ebuild

*dbmail-2.2.5 (05 Jun 2007)

05 Jun 2007; Thomas Raschbacher +dbmail-2.2.5.ebuild:
added 2.2.5 version

*dbmail-2.2.5_rc3 (29 May 2007)

29 May 2007; Thomas Raschbacher
+dbmail-2.2.5_rc3.ebuild:
added 2.2.5 rc3

*dbmail-2.2.5_rc2 (15 May 2007)

15 May 2007; Thomas Raschbacher metadata.xml,
+dbmail-2.2.5_rc2.ebuild:
added 2.2.5 rc2 and took maintainership as mentioned by ticho in bug #22331

17 Apr 2007; Christian Faulhammer dbmail-2.2.4.ebuild:
keyworded ~amd64, bug 172696

*dbmail-2.2.4 (26 Mar 2007)

26 Mar 2007; Andrej Kacian +files/dbmail-imapd.initd,
+files/dbmail-lmtpd.initd, +files/dbmail-pop3d.initd,
+files/dbmail-timsieved.initd, +metadata.xml, +dbmail-2.2.4.ebuild:
Initial import. Ebuild by several people collaborating in bug #22331 (yes,
_that_ old!), based on ebuild written by Chris Johnson mail.utexas.edu>.

Manifest

AUX dbmail-imapd.initd 730 RMD160 c6da3a0cda2e767853c0c3239287dd347bed6ccc SHA1 37679fabcf02e277d660fe57a41b9b54d7de963e SHA256 f8c16208f31495d2557e6ac101f1dd9f18636268511c889a0ad4dee0c56612da
AUX dbmail-lmtpd.initd 730 RMD160 c0d1d8dee950e7e30deddd5df9772881154430db SHA1 60a1a2e8828cfbb3ef48e38a472f4ddc01c3cfb1 SHA256 2aedd5fecc1ef28289c870030c31f8ecaded4f2651be355a40216262a8a4d4a3
AUX dbmail-pop3d.initd 730 RMD160 f8376e0dfa1a721cd4d99b3797f92c4c30285fd8 SHA1 35c6b6e2f40e42b61e3add7f4f4d5f231904c851 SHA256 2b1ee1f7491e6fb94f0d9a6a1424ff3cba66b2880d6bc1d50f008da8be0a7c52
AUX dbmail-timsieved.initd 744 RMD160 0b733fba999532536b07a9ec5b572c362ed96f08 SHA1 5076a33925b43898e6f12cdc1c73e76fa406d6b8 SHA256 572358fcddea2981f29cd267c55e6de8e840f5442bcc8520ad40edfaed71577d
DIST dbmail-2.2.10.tar.gz 900636 RMD160 64eaa94824fe27f485de7bb8578c8656c4417e22 SHA1 421c39e49669677a4876f4faf57bbec14b4cd348 SHA256 f890167073498d87ea0ce374af2cf0498cfd7aa1af7aeb330726d1910de951b6
DIST dbmail-2.2.7.tar.gz 895586 RMD160 aac1d5a7d049b7384455b37e8380d4e57eae5164 SHA1 15d3bbd945ee09fdc36da6f988f2b4723bd1cc28 SHA256 9e2ab6d45eb841fc08b8d38a1a08fb95b3fdeae3fbc00c50b8acba624ff565e6
DIST dbmail-2.2.8.tar.gz 898224 RMD160 ad740224581ee753354a629514ef09c42b06adaa SHA1 83927a431d8c7da47ab004ea4839dfe432095fab SHA256 d23649a9ccea9086943000fe7a74cead38544a2d19e721995772dcc57a4f5aeb
DIST dbmail-2.2.9.tar.gz 900072 RMD160 f4b2f29d6890556c85a2b801737e8a5aa0642490 SHA1 c7ea4bb1de94794493f2f157b292cb8fb6084354 SHA256 f6a222b142f4aa05f8b458acda50022ec85c6ec46b78658a414d6e7055b2bb84
DIST dbmail-2.3.2.tar.gz 921616 RMD160 491008d66f9431ea66d2a79eb8fbf4215187adb3 SHA1 61578397f4a90f4f1d4bdc5c5a0574d36db96c49 SHA256 38739e32e209d30c8c4efdde4a7737d4c40fb36dd30b0e2dfd65993843b39fcb
EBUILD dbmail-2.2.10.ebuild 3476 RMD160 12c470583c968ca173fd9ca4b9f396e0f90fad72 SHA1 b3414abb98b152c49a78a75a124bd7299776869a SHA256 fd9f57192ac837b315f5d00ad411d1e2f12ffbefbfbca6eb810b16f5dabc38b3
EBUILD dbmail-2.2.7.ebuild 3476 RMD160 0d5075ae02dab423cae06d21063f515dde9efed7 SHA1 dfc2c0f04b7f3902b103067714145070ce91627c SHA256 8cbd5cd152d147a96eaab5a23857dd08e49e5edd8e467154b8a9bd6f433653d3
EBUILD dbmail-2.2.8.ebuild 3473 RMD160 701289ceb2f70f3f61b410ba71903bc5e52c126d SHA1 dbeb4efb299a246fa8483ceb7808dff15fd81a08 SHA256 6901cfc90d38aebf92708c836ee91de9a1cc3b8abb4f5c9d1e4318454252adb1
EBUILD dbmail-2.2.9.ebuild 3473 RMD160 1939a13f7d4199f79cddced64932b2ada8322e60 SHA1 24237e06ce4fba22492b9e81890050c2bef518bb SHA256 5be166227344b2572d185c65814ad0c2a19b20d3beab3eb0e9b68ab394b27079
EBUILD dbmail-2.3.2.ebuild 3503 RMD160 3137461490ffca56d9e69347fe594b25f5a2952d SHA1 31e0aed81a3d2ffaddc6d5d4e0bbeab5dd8902d7 SHA256 e6f05a9df315ab4f058ed7d05f43d79590595ef6a5c46e9809fa283b8788ca71
MISC ChangeLog 5336 RMD160 91523f28e9ca415327807a1938ec66d4f1899579 SHA1 4c16c2753a86c7a4759c79f98918e307226f20e2 SHA256 cc264b30ad5a914b057b65ffd11e7f982c99bb7eb07a2fcf95e3908194668b18
MISC metadata.xml 491 RMD160 7c82ebc22fb7f11153131770cb2da0c631e15166 SHA1 adbd2335fd20c417175644e3218d9f7d69a015c5 SHA256 970aa28bc8d7f62212d3e1fee873b8353cc5240d9d2233c9397492fb714f29eb

dbmail-2.2.10.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.10.ebuild,v 1.2 2008/05/21 18:57:57 dev-zero Exp $

inherit eutils

MY_P="${P/_/}" # for rcX
#MY_P="${P}" # releases
DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
HOMEPAGE="http://www.dbmail.org/"
SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ldap mysql postgres sieve sqlite3 ssl static"

DEPEND="ssl? ( dev-libs/openssl )
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( >=virtual/mysql-4.1 )
sqlite3? ( >=dev-db/sqlite-3.0 )
!mysql? ( !postgres? ( !sqlite3? ( >=dev-db/sqlite-3.0 ) ) )
sieve? ( >=mail-filter/libsieve-2.2.1 )
ldap? ( >=net-nds/openldap-2.3.33 )
app-text/asciidoc
app-text/xmlto
sys-libs/zlib
>=dev-libs/gmime-2.1.18
>=dev-libs/glib-2.8"

S=${WORKDIR}/${P/_/-}

pkg_setup() {
enewgroup dbmail
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
}

src_compile() {
use sqlite3 && myconf="--with-sqlite"
use ldap && myconf=${myconf}" --with-auth-ldap"

econf \
--sysconfdir=/etc/dbmail \
${myconf} \
$(use_enable static) \
$(use_with sieve) \
$(use_with ssl) \
$(use_with postgres pgsql) \
$(use_with mysql) \
|| die "econf failed"

emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc AUTHORS BUGS UPGRADING ChangeLog README* INSTALL* NEWS THANKS
dodoc sql/mysql/*
dodoc sql/postgresql/*
dodoc sql/sqlite/*

cp dbmail.conf.dist dbmail.conf
sed -i -e "s:nobody:dbmail:" dbmail.conf
sed -i -e "s:nogroup:dbmail:" dbmail.conf
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
insinto /etc/dbmail
newins dbmail.conf dbmail.conf.dist

newinitd "${FILESDIR}"/dbmail-imapd.initd dbmail-imapd
newinitd "${FILESDIR}"/dbmail-lmtpd.initd dbmail-lmtpd
newinitd "${FILESDIR}"/dbmail-pop3d.initd dbmail-pop3d
use sieve && newinitd "${FILESDIR}"/dbmail-timsieved.initd dbmail-timsieved

dobin contrib/mailbox2dbmail/mailbox2dbmail
doman contrib/mailbox2dbmail/mailbox2dbmail.1

keepdir /var/lib/dbmail
fperms 750 /var/lib/dbmail

}

pkg_postinst() {
elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
elog "for remaining instructions on setting up dbmail users and "
elog "for finishing configuration to connect to your MTA and "
elog "to connect to your db."
echo
elog "DBMail requires either SQLite3, PostgreSQL or MySQL."
elog "If none of the use-flags are specified SQLite3 is"
elog "used as default. To use another database please"
elog "specify the appropriate use-flag and re-emerge dbmail."
echo
elog "Database schemes can be found in /usr/share/doc/${PF}/"
elog "You will also want to follow the installation instructions"
elog "on setting up the maintenance program to delete old messages."
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
echo
elog "For regular maintenance, add this to crontab:"
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
echo
elog "Please make sure to run etc-update."
elog "If you get an error message about plugins not found"
elog "please add the library_directory configuration switch to"
elog "dbmail.conf and set it to the correct path"
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
elog "A sample can be found in dbmail.conf.dist after etc-update."
}

dbmail-2.2.7.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.7.ebuild,v 1.6 2008/05/21 18:57:57 dev-zero Exp $

inherit eutils

MY_P="${P/_/-}" # for rcX
#MY_P="${P}" # releases
DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
HOMEPAGE="http://www.dbmail.org/"
SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ldap mysql postgres sieve sqlite3 ssl static"

DEPEND="ssl? ( dev-libs/openssl )
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( >=virtual/mysql-4.1 )
sqlite3? ( >=dev-db/sqlite-3.0 )
!mysql? ( !postgres? ( !sqlite3? ( >=dev-db/sqlite-3.0 ) ) )
sieve? ( >=mail-filter/libsieve-2.2.1 )
ldap? ( >=net-nds/openldap-2.3.33 )
app-text/asciidoc
app-text/xmlto
sys-libs/zlib
>=dev-libs/gmime-2.1.18
>=dev-libs/glib-2.8"

S=${WORKDIR}/${P/_/-}

pkg_setup() {
enewgroup dbmail
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
}

src_compile() {
use sqlite3 && myconf="--with-sqlite"
use ldap && myconf=${myconf}" --with-auth-ldap"

econf \
--sysconfdir=/etc/dbmail \
${myconf} \
$(use_enable static) \
$(use_with sieve) \
$(use_with ssl) \
$(use_with postgres pgsql) \
$(use_with mysql) \
|| die "econf failed"

emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc AUTHORS BUGS UPGRADING ChangeLog README* INSTALL* NEWS THANKS
dodoc sql/mysql/*
dodoc sql/postgresql/*
dodoc sql/sqlite/*

cp dbmail.conf.dist dbmail.conf
sed -i -e "s:nobody:dbmail:" dbmail.conf
sed -i -e "s:nogroup:dbmail:" dbmail.conf
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
insinto /etc/dbmail
newins dbmail.conf dbmail.conf.dist

newinitd "${FILESDIR}"/dbmail-imapd.initd dbmail-imapd
newinitd "${FILESDIR}"/dbmail-lmtpd.initd dbmail-lmtpd
newinitd "${FILESDIR}"/dbmail-pop3d.initd dbmail-pop3d
use sieve && newinitd "${FILESDIR}"/dbmail-timsieved.initd dbmail-timsieved

dobin contrib/mailbox2dbmail/mailbox2dbmail
doman contrib/mailbox2dbmail/mailbox2dbmail.1

keepdir /var/lib/dbmail
fperms 750 /var/lib/dbmail

}

pkg_postinst() {
elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
elog "for remaining instructions on setting up dbmail users and "
elog "for finishing configuration to connect to your MTA and "
elog "to connect to your db."
echo
elog "DBMail requires either SQLite3, PostgreSQL or MySQL."
elog "If none of the use-flags are specified SQLite3 is"
elog "used as default. To use another database please"
elog "specify the appropriate use-flag and re-emerge dbmail."
echo
elog "Database schemes can be found in /usr/share/doc/${PF}/"
elog "You will also want to follow the installation instructions"
elog "on setting up the maintenance program to delete old messages."
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
echo
elog "For regular maintenance, add this to crontab:"
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
echo
elog "Please make sure to run etc-update."
elog "If you get an error message about plugins not found"
elog "please add the library_directory configuration switch to"
elog "dbmail.conf and set it to the correct path"
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
elog "A sample can be found in dbmail.conf.dist after etc-update."
}

dbmail-2.2.8.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.8.ebuild,v 1.6 2008/05/21 18:57:57 dev-zero Exp $

inherit eutils

MY_P="${P/_/}" # for rcX
#MY_P="${P}" # releases
DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
HOMEPAGE="http://www.dbmail.org/"
SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="ldap mysql postgres sieve sqlite3 ssl static"

DEPEND="ssl? ( dev-libs/openssl )
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( >=virtual/mysql-4.1 )
sqlite3? ( >=dev-db/sqlite-3.0 )
!mysql? ( !postgres? ( !sqlite3? ( >=dev-db/sqlite-3.0 ) ) )
sieve? ( >=mail-filter/libsieve-2.2.1 )
ldap? ( >=net-nds/openldap-2.3.33 )
app-text/asciidoc
app-text/xmlto
sys-libs/zlib
>=dev-libs/gmime-2.1.18
>=dev-libs/glib-2.8"

S=${WORKDIR}/${P/_/-}

pkg_setup() {
enewgroup dbmail
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
}

src_compile() {
use sqlite3 && myconf="--with-sqlite"
use ldap && myconf=${myconf}" --with-auth-ldap"

econf \
--sysconfdir=/etc/dbmail \
${myconf} \
$(use_enable static) \
$(use_with sieve) \
$(use_with ssl) \
$(use_with postgres pgsql) \
$(use_with mysql) \
|| die "econf failed"

emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc AUTHORS BUGS UPGRADING ChangeLog README* INSTALL* NEWS THANKS
dodoc sql/mysql/*
dodoc sql/postgresql/*
dodoc sql/sqlite/*

cp dbmail.conf.dist dbmail.conf
sed -i -e "s:nobody:dbmail:" dbmail.conf
sed -i -e "s:nogroup:dbmail:" dbmail.conf
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
insinto /etc/dbmail
newins dbmail.conf dbmail.conf.dist

newinitd "${FILESDIR}"/dbmail-imapd.initd dbmail-imapd
newinitd "${FILESDIR}"/dbmail-lmtpd.initd dbmail-lmtpd
newinitd "${FILESDIR}"/dbmail-pop3d.initd dbmail-pop3d
use sieve && newinitd "${FILESDIR}"/dbmail-timsieved.initd dbmail-timsieved

dobin contrib/mailbox2dbmail/mailbox2dbmail
doman contrib/mailbox2dbmail/mailbox2dbmail.1

keepdir /var/lib/dbmail
fperms 750 /var/lib/dbmail

}

pkg_postinst() {
elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
elog "for remaining instructions on setting up dbmail users and "
elog "for finishing configuration to connect to your MTA and "
elog "to connect to your db."
echo
elog "DBMail requires either SQLite3, PostgreSQL or MySQL."
elog "If none of the use-flags are specified SQLite3 is"
elog "used as default. To use another database please"
elog "specify the appropriate use-flag and re-emerge dbmail."
echo
elog "Database schemes can be found in /usr/share/doc/${PF}/"
elog "You will also want to follow the installation instructions"
elog "on setting up the maintenance program to delete old messages."
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
echo
elog "For regular maintenance, add this to crontab:"
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
echo
elog "Please make sure to run etc-update."
elog "If you get an error message about plugins not found"
elog "please add the library_directory configuration switch to"
elog "dbmail.conf and set it to the correct path"
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
elog "A sample can be found in dbmail.conf.dist after etc-update."
}

dbmail-2.2.9.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.9.ebuild,v 1.5 2008/05/21 18:57:57 dev-zero Exp $

inherit eutils

MY_P="${P/_/}" # for rcX
#MY_P="${P}" # releases
DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
HOMEPAGE="http://www.dbmail.org/"
SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="ldap mysql postgres sieve sqlite3 ssl static"

DEPEND="ssl? ( dev-libs/openssl )
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( >=virtual/mysql-4.1 )
sqlite3? ( >=dev-db/sqlite-3.0 )
!mysql? ( !postgres? ( !sqlite3? ( >=dev-db/sqlite-3.0 ) ) )
sieve? ( >=mail-filter/libsieve-2.2.1 )
ldap? ( >=net-nds/openldap-2.3.33 )
app-text/asciidoc
app-text/xmlto
sys-libs/zlib
>=dev-libs/gmime-2.1.18
>=dev-libs/glib-2.8"

S=${WORKDIR}/${P/_/-}

pkg_setup() {
enewgroup dbmail
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
}

src_compile() {
use sqlite3 && myconf="--with-sqlite"
use ldap && myconf=${myconf}" --with-auth-ldap"

econf \
--sysconfdir=/etc/dbmail \
${myconf} \
$(use_enable static) \
$(use_with sieve) \
$(use_with ssl) \
$(use_with postgres pgsql) \
$(use_with mysql) \
|| die "econf failed"

emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc AUTHORS BUGS UPGRADING ChangeLog README* INSTALL* NEWS THANKS
dodoc sql/mysql/*
dodoc sql/postgresql/*
dodoc sql/sqlite/*

cp dbmail.conf.dist dbmail.conf
sed -i -e "s:nobody:dbmail:" dbmail.conf
sed -i -e "s:nogroup:dbmail:" dbmail.conf
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
insinto /etc/dbmail
newins dbmail.conf dbmail.conf.dist

newinitd "${FILESDIR}"/dbmail-imapd.initd dbmail-imapd
newinitd "${FILESDIR}"/dbmail-lmtpd.initd dbmail-lmtpd
newinitd "${FILESDIR}"/dbmail-pop3d.initd dbmail-pop3d
use sieve && newinitd "${FILESDIR}"/dbmail-timsieved.initd dbmail-timsieved

dobin contrib/mailbox2dbmail/mailbox2dbmail
doman contrib/mailbox2dbmail/mailbox2dbmail.1

keepdir /var/lib/dbmail
fperms 750 /var/lib/dbmail

}

pkg_postinst() {
elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
elog "for remaining instructions on setting up dbmail users and "
elog "for finishing configuration to connect to your MTA and "
elog "to connect to your db."
echo
elog "DBMail requires either SQLite3, PostgreSQL or MySQL."
elog "If none of the use-flags are specified SQLite3 is"
elog "used as default. To use another database please"
elog "specify the appropriate use-flag and re-emerge dbmail."
echo
elog "Database schemes can be found in /usr/share/doc/${PF}/"
elog "You will also want to follow the installation instructions"
elog "on setting up the maintenance program to delete old messages."
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
echo
elog "For regular maintenance, add this to crontab:"
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
echo
elog "Please make sure to run etc-update."
elog "If you get an error message about plugins not found"
elog "please add the library_directory configuration switch to"
elog "dbmail.conf and set it to the correct path"
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
elog "A sample can be found in dbmail.conf.dist after etc-update."
}

dbmail-2.3.2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.3.2.ebuild,v 1.6 2008/05/21 18:57:57 dev-zero Exp $

inherit eutils

MY_P="${P/_/}" # for rcX
#MY_P="${P}" # releases
DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
HOMEPAGE="http://www.dbmail.org/"
SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-amd64 -x86"
IUSE="ldap mysql postgres sieve sqlite3 ssl static"

DEPEND="ssl? ( dev-libs/openssl )
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( >=virtual/mysql-4.1 )
sqlite3? ( >=dev-db/sqlite-3.0 )
!mysql? ( !postgres? ( !sqlite3? ( >=dev-db/sqlite-3.0 ) ) )
sieve? ( >=mail-filter/libsieve-2.2.1 )
ldap? ( >=net-nds/openldap-2.3.33 )
app-text/asciidoc
app-text/xmlto
sys-libs/zlib
>=dev-libs/gmime-2.1.18
>=dev-libs/glib-2.8
>=app-crypt/mhash-0.9.9-r1"

S=${WORKDIR}/${P/_/-}

pkg_setup() {
enewgroup dbmail
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
}

src_compile() {
use sqlite3 && myconf="--with-sqlite"
use ldap && myconf=${myconf}" --with-auth-ldap"

econf \
--sysconfdir=/etc/dbmail \
${myconf} \
$(use_enable static) \
$(use_with sieve) \
$(use_with ssl) \
$(use_with postgres pgsql) \
$(use_with mysql) \
|| die "econf failed"

emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"

dodoc AUTHORS BUGS UPGRADING ChangeLog README* INSTALL* NEWS THANKS
dodoc sql/mysql/*
dodoc sql/postgresql/*
dodoc sql/sqlite/*

cp dbmail.conf.dist dbmail.conf
sed -i -e "s:nobody:dbmail:" dbmail.conf
sed -i -e "s:nogroup:dbmail:" dbmail.conf
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
insinto /etc/dbmail
newins dbmail.conf dbmail.conf.dist

newinitd "${FILESDIR}"/dbmail-imapd.initd dbmail-imapd
newinitd "${FILESDIR}"/dbmail-lmtpd.initd dbmail-lmtpd
newinitd "${FILESDIR}"/dbmail-pop3d.initd dbmail-pop3d
use sieve && newinitd "${FILESDIR}"/dbmail-timsieved.initd dbmail-timsieved

dobin contrib/mailbox2dbmail/mailbox2dbmail
doman contrib/mailbox2dbmail/mailbox2dbmail.1

keepdir /var/lib/dbmail
fperms 750 /var/lib/dbmail

}

pkg_postinst() {
elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
elog "for remaining instructions on setting up dbmail users and "
elog "for finishing configuration to connect to your MTA and "
elog "to connect to your db."
echo
elog "DBMail requires either SQLite3, PostgreSQL or MySQL."
elog "If none of the use-flags are specified SQLite3 is"
elog "used as default. To use another database please"
elog "specify the appropriate use-flag and re-emerge dbmail."
echo
elog "Database schemes can be found in /usr/share/doc/${PF}/"
elog "You will also want to follow the installation instructions"
elog "on setting up the maintenance program to delete old messages."
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
echo
elog "For regular maintenance, add this to crontab:"
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
echo
elog "Please make sure to run etc-update."
elog "If you get an error message about plugins not found"
elog "please add the library_directory configuration switch to"
elog "dbmail.conf and set it to the correct path"
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
elog "A sample can be found in dbmail.conf.dist after etc-update."
}

files

metadata.xml




net-mail

lordvan@gentoo.org
Thomas Raschbacher

Dbmail is the name of a group of programs that enable the possiblilty of storing and retrieving mail messages from a database. Currently MySQL, PostgreSQL and SQLite can be used as database backends.