--- /dev/null
+# ChangeLog for net-mail/dbmail
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.1 2007/03/26 23:51:52 ticho Exp $
+
+*dbmail-2.2.4 (26 Mar 2007)
+
+ 26 Mar 2007; Andrej Kacian <ticho@gentoo.org> +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 <cmjohn at
+ mail.utexas.edu>.
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX dbmail-imapd.initd 730 RMD160 c6da3a0cda2e767853c0c3239287dd347bed6ccc SHA1 37679fabcf02e277d660fe57a41b9b54d7de963e SHA256 f8c16208f31495d2557e6ac101f1dd9f18636268511c889a0ad4dee0c56612da
+MD5 76a0f8f96ca70a4af14c81716134cc5d files/dbmail-imapd.initd 730
+RMD160 c6da3a0cda2e767853c0c3239287dd347bed6ccc files/dbmail-imapd.initd 730
+SHA256 f8c16208f31495d2557e6ac101f1dd9f18636268511c889a0ad4dee0c56612da files/dbmail-imapd.initd 730
+AUX dbmail-lmtpd.initd 730 RMD160 c0d1d8dee950e7e30deddd5df9772881154430db SHA1 60a1a2e8828cfbb3ef48e38a472f4ddc01c3cfb1 SHA256 2aedd5fecc1ef28289c870030c31f8ecaded4f2651be355a40216262a8a4d4a3
+MD5 a6d79d7f0cf0fb80ef2ada71c25d9350 files/dbmail-lmtpd.initd 730
+RMD160 c0d1d8dee950e7e30deddd5df9772881154430db files/dbmail-lmtpd.initd 730
+SHA256 2aedd5fecc1ef28289c870030c31f8ecaded4f2651be355a40216262a8a4d4a3 files/dbmail-lmtpd.initd 730
+AUX dbmail-pop3d.initd 730 RMD160 f8376e0dfa1a721cd4d99b3797f92c4c30285fd8 SHA1 35c6b6e2f40e42b61e3add7f4f4d5f231904c851 SHA256 2b1ee1f7491e6fb94f0d9a6a1424ff3cba66b2880d6bc1d50f008da8be0a7c52
+MD5 504dd74912daeea4268f8c25ddf6de0f files/dbmail-pop3d.initd 730
+RMD160 f8376e0dfa1a721cd4d99b3797f92c4c30285fd8 files/dbmail-pop3d.initd 730
+SHA256 2b1ee1f7491e6fb94f0d9a6a1424ff3cba66b2880d6bc1d50f008da8be0a7c52 files/dbmail-pop3d.initd 730
+AUX dbmail-timsieved.initd 744 RMD160 0b733fba999532536b07a9ec5b572c362ed96f08 SHA1 5076a33925b43898e6f12cdc1c73e76fa406d6b8 SHA256 572358fcddea2981f29cd267c55e6de8e840f5442bcc8520ad40edfaed71577d
+MD5 96ea543e77e04294deef1dd4abfba59a files/dbmail-timsieved.initd 744
+RMD160 0b733fba999532536b07a9ec5b572c362ed96f08 files/dbmail-timsieved.initd 744
+SHA256 572358fcddea2981f29cd267c55e6de8e840f5442bcc8520ad40edfaed71577d files/dbmail-timsieved.initd 744
+DIST dbmail-2.2.4.tar.gz 873538 RMD160 06b9bf2ede178096d597a7291ca11075b612caa5 SHA1 a681473c8fdb894b15f7d37b126342a61e7740cc SHA256 2fdf2f22e9d0437e8331d33a956f12ca85d7370651c943f09f8886e94a93f379
+EBUILD dbmail-2.2.4.ebuild 2582 RMD160 8552d4f0b9e49f997834d6e6c76bc890174b9506 SHA1 63b14cfeb6b9f5df9fa4a11c133454789d9ff337 SHA256 4db87309b5cacd5de86f38b84ef791a9bba38ed4ba96fa51eba5af7f152bccfb
+MD5 6abbf8519067d64a72917e4a7c6ae1b7 dbmail-2.2.4.ebuild 2582
+RMD160 8552d4f0b9e49f997834d6e6c76bc890174b9506 dbmail-2.2.4.ebuild 2582
+SHA256 4db87309b5cacd5de86f38b84ef791a9bba38ed4ba96fa51eba5af7f152bccfb dbmail-2.2.4.ebuild 2582
+MISC ChangeLog 598 RMD160 be9bfe81f9d6952f6a66551d2f55f4548a499d9d SHA1 1f2b1f20c92f0c0f689ab3f8c47025e5db386d5c SHA256 e6845ff6b21fce924766ba00925be9e3477083258ae9031601a1abd082457dc8
+MD5 45ae6d07d629c4dd6bfcc10c10796565 ChangeLog 598
+RMD160 be9bfe81f9d6952f6a66551d2f55f4548a499d9d ChangeLog 598
+SHA256 e6845ff6b21fce924766ba00925be9e3477083258ae9031601a1abd082457dc8 ChangeLog 598
+MISC metadata.xml 484 RMD160 80687d576f3b50493e34db162c00f36742d5fc77 SHA1 a0c4f75f6be4953be9832a4c7faf10255a327522 SHA256 5f6c8a13f138d9817bd8236b6888c72bd3b05279ffccb80eeed7bbcb541434ee
+MD5 e765cbc0ee6114dfff657b918bae6ab7 metadata.xml 484
+RMD160 80687d576f3b50493e34db162c00f36742d5fc77 metadata.xml 484
+SHA256 5f6c8a13f138d9817bd8236b6888c72bd3b05279ffccb80eeed7bbcb541434ee metadata.xml 484
+MD5 3c3e0d4360afb08e886cbf0c70d8581e files/digest-dbmail-2.2.4 238
+RMD160 ad186537ecc63f73b9100de0101bc73e7d73659e files/digest-dbmail-2.2.4 238
+SHA256 94e4a59ff78affe478e44b5c6d6985eb185e2e81a7dabef57756b5e42c792b03 files/digest-dbmail-2.2.4 238
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.7 (GNU/Linux)
+
+iD8DBQFGCE6OQlM6RnzZP+IRAh3lAJ9EjTZrF+UJvzq2VYfRN7dL5MaI0wCdHbqo
+N/1240V6SJyxbTk1V48LpaU=
+=38zi
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.4.ebuild,v 1.1 2007/03/26 23:51:52 ticho Exp $
+
+inherit eutils
+
+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/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="ldap mysql postgres sieve sqlite3 ssl static"
+
+DEPEND="ssl? ( dev-libs/openssl )
+ postgres? ( >=dev-db/postgresql-7.4 )
+ mysql? ( >=virtual/mysql-4.1 )
+ sqlite3? ( >=dev-db/sqlite-3.0 )
+ sieve? ( >=mail-filter/libsieve-2.2.1 )
+ app-text/asciidoc
+ app-text/xmlto
+ sys-libs/zlib
+ >=dev-libs/gmime-2.1.18
+ >=dev-libs/glib-2.8"
+
+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/*
+
+ sed -i -e "s:nobody:dbmail:" dbmail.conf
+ sed -i -e "s:nogroup:dbmail:" 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 "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"
+}
--- /dev/null
+#!/sbin/runscript
+#
+
+PIDFILE="/var/run/dbmail-imapd.pid"
+
+depend() {
+ need net
+ use mysql
+ use pgsql
+ after mta
+}
+
+checkconfig() {
+ if [ ! -e "/etc/dbmail/dbmail.conf" ]; then
+ eerror "You need to create apropriate config"
+ eerror "in /etc/dbmail/ . Example can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+}
+
+
+start() {
+ checkconfig && \
+ ebegin "Starting DBMail IMAP daemon"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/dbmail-imapd \
+ --name dbmail-imapd \
+ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail IMAP daemon"
+ start-stop-daemon --stop --quiet --retry 5 \
+ --pidfile ${PIDFILE}
+ eend $?
+}
+
--- /dev/null
+#!/sbin/runscript
+#
+
+PIDFILE="/var/run/dbmail-lmtpd.pid"
+
+depend() {
+ need net
+ use mysql
+ use pgsql
+ after mta
+}
+
+checkconfig() {
+ if [ ! -e "/etc/dbmail/dbmail.conf" ]; then
+ eerror "You need to create apropriate config"
+ eerror "in /etc/dbmail/ . Example can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+}
+
+
+start() {
+ checkconfig && \
+ ebegin "Starting DBMail LMTP daemon"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/dbmail-lmtpd \
+ --name dbmail-lmtpd \
+ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail LMTP daemon"
+ start-stop-daemon --stop --quiet --retry 5 \
+ --pidfile ${PIDFILE}
+ eend $?
+}
+
--- /dev/null
+#!/sbin/runscript
+#
+
+PIDFILE="/var/run/dbmail-pop3d.pid"
+
+depend() {
+ need net
+ use mysql
+ use pgsql
+ after mta
+}
+
+checkconfig() {
+ if [ ! -e "/etc/dbmail/dbmail.conf" ]; then
+ eerror "You need to create apropriate config"
+ eerror "in /etc/dbmail/ . Example can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+}
+
+
+start() {
+ checkconfig && \
+ ebegin "Starting DBMail POP3 daemon"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/dbmail-pop3d \
+ --name dbmail-pop3d \
+ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail POP3 daemon"
+ start-stop-daemon --stop --quiet --retry 5 \
+ --pidfile ${PIDFILE}
+ eend $?
+}
+
--- /dev/null
+#!/sbin/runscript
+#
+
+PIDFILE="/var/run/dbmail-timsieved.pid"
+
+depend() {
+ need net
+ use mysql
+ use pgsql
+ after mta
+}
+
+checkconfig() {
+ if [ ! -e "/etc/dbmail/dbmail.conf" ]; then
+ eerror "You need to create apropriate config"
+ eerror "in /etc/dbmail/ . Example can be found in /etc/dbmail/dbmail.conf.dist"
+ return 1
+ fi
+ # Avoid using root's TMPDIR
+ unset TMPDIR
+}
+
+
+start() {
+ checkconfig && \
+ ebegin "Starting DBMail SIEVE daemon"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/dbmail-timsieved \
+ --name dbmail-timsieved \
+ -- -p ${PIDFILE} -f /etc/dbmail/dbmail.conf 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DBMail SIEVE daemon"
+ start-stop-daemon --stop --quiet --retry 5 \
+ --pidfile ${PIDFILE}
+ eend $?
+}
+
--- /dev/null
+MD5 b7f56437df764e7046438f81f4b7df18 dbmail-2.2.4.tar.gz 873538
+RMD160 06b9bf2ede178096d597a7291ca11075b612caa5 dbmail-2.2.4.tar.gz 873538
+SHA256 2fdf2f22e9d0437e8331d33a956f12ca85d7370651c943f09f8886e94a93f379 dbmail-2.2.4.tar.gz 873538
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<maintainer>
+ <email>ticho@gentoo.org</email>
+ <name>Andrej Kacian</name>
+</maintainer>
+<longdescription>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.</longdescription>
+</pkgmetadata>