summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2007-03-26 23:51:52 +0000
committerAndrej Kacian <ticho@gentoo.org>2007-03-26 23:51:52 +0000
commitce97c31b577652b35a553411e1cbfb4545cbb0f7 (patch)
tree94f251bb370b8e684c1aebeb01619517b77ca289 /net-mail
parentAdded net-mail/dbmail:sieve (diff)
downloadgentoo-2-ce97c31b577652b35a553411e1cbfb4545cbb0f7.tar.gz
gentoo-2-ce97c31b577652b35a553411e1cbfb4545cbb0f7.tar.bz2
gentoo-2-ce97c31b577652b35a553411e1cbfb4545cbb0f7.zip
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>.
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/dbmail/ChangeLog13
-rw-r--r--net-mail/dbmail/Manifest32
-rw-r--r--net-mail/dbmail/dbmail-2.2.4.ebuild88
-rw-r--r--net-mail/dbmail/files/dbmail-imapd.initd40
-rw-r--r--net-mail/dbmail/files/dbmail-lmtpd.initd40
-rw-r--r--net-mail/dbmail/files/dbmail-pop3d.initd40
-rw-r--r--net-mail/dbmail/files/dbmail-timsieved.initd40
-rw-r--r--net-mail/dbmail/files/digest-dbmail-2.2.43
-rw-r--r--net-mail/dbmail/metadata.xml10
9 files changed, 306 insertions, 0 deletions
diff --git a/net-mail/dbmail/ChangeLog b/net-mail/dbmail/ChangeLog
new file mode 100644
index 000000000000..25e335f34cd1
--- /dev/null
+++ b/net-mail/dbmail/ChangeLog
@@ -0,0 +1,13 @@
+# 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>.
+
diff --git a/net-mail/dbmail/Manifest b/net-mail/dbmail/Manifest
new file mode 100644
index 000000000000..ad043ab2ea8d
--- /dev/null
+++ b/net-mail/dbmail/Manifest
@@ -0,0 +1,32 @@
+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 2486 RMD160 4011466c03dafd5f86a3cd20e9efb81e7cfcf4ac SHA1 00013cbd6f2c732f8a333cdd48c9da69b4d96685 SHA256 8ed5563c49f37df31c04d24a16e45301ab3ba0b1a58d4d9a5428b5994988aa0d
+MD5 0d10d62d24f23c9de667d213d8fa46da dbmail-2.2.4.ebuild 2486
+RMD160 4011466c03dafd5f86a3cd20e9efb81e7cfcf4ac dbmail-2.2.4.ebuild 2486
+SHA256 8ed5563c49f37df31c04d24a16e45301ab3ba0b1a58d4d9a5428b5994988aa0d dbmail-2.2.4.ebuild 2486
+MISC ChangeLog 512 RMD160 52aba4dacc6ff52f156391dce22208b05c079c9e SHA1 ca0942863db88031ac38a89e9aa7223491d48802 SHA256 9746666bd8cdbd2064e6c58b959211481b809f7d55b108d4b96557e9e5efb16d
+MD5 b7c9563842b6dfd1e8b7ceabb849832e ChangeLog 512
+RMD160 52aba4dacc6ff52f156391dce22208b05c079c9e ChangeLog 512
+SHA256 9746666bd8cdbd2064e6c58b959211481b809f7d55b108d4b96557e9e5efb16d ChangeLog 512
+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
diff --git a/net-mail/dbmail/dbmail-2.2.4.ebuild b/net-mail/dbmail/dbmail-2.2.4.ebuild
new file mode 100644
index 000000000000..51a3c8369056
--- /dev/null
+++ b/net-mail/dbmail/dbmail-2.2.4.ebuild
@@ -0,0 +1,88 @@
+# 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"
+}
diff --git a/net-mail/dbmail/files/dbmail-imapd.initd b/net-mail/dbmail/files/dbmail-imapd.initd
new file mode 100644
index 000000000000..8f6984feb06c
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-imapd.initd
@@ -0,0 +1,40 @@
+#!/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 $?
+}
+
diff --git a/net-mail/dbmail/files/dbmail-lmtpd.initd b/net-mail/dbmail/files/dbmail-lmtpd.initd
new file mode 100644
index 000000000000..cea3da6dd861
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-lmtpd.initd
@@ -0,0 +1,40 @@
+#!/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 $?
+}
+
diff --git a/net-mail/dbmail/files/dbmail-pop3d.initd b/net-mail/dbmail/files/dbmail-pop3d.initd
new file mode 100644
index 000000000000..8c9e7b874a79
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-pop3d.initd
@@ -0,0 +1,40 @@
+#!/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 $?
+}
+
diff --git a/net-mail/dbmail/files/dbmail-timsieved.initd b/net-mail/dbmail/files/dbmail-timsieved.initd
new file mode 100644
index 000000000000..3fc4e047cfd7
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-timsieved.initd
@@ -0,0 +1,40 @@
+#!/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 $?
+}
+
diff --git a/net-mail/dbmail/files/digest-dbmail-2.2.4 b/net-mail/dbmail/files/digest-dbmail-2.2.4
new file mode 100644
index 000000000000..5bc2668fbebb
--- /dev/null
+++ b/net-mail/dbmail/files/digest-dbmail-2.2.4
@@ -0,0 +1,3 @@
+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
diff --git a/net-mail/dbmail/metadata.xml b/net-mail/dbmail/metadata.xml
new file mode 100644
index 000000000000..8632ece5bedf
--- /dev/null
+++ b/net-mail/dbmail/metadata.xml
@@ -0,0 +1,10 @@
+<?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>