summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Raschbacher <lordvan@gentoo.org>2012-06-10 22:37:56 +0200
committerThomas Raschbacher <lordvan@gentoo.org>2012-06-10 22:37:56 +0200
commit9be06304f4a8f68fe832f2a9fc99ad2fc1408e61 (patch)
tree62baeb083234991688f0aaff193e0390d38cb3db
parentremoved unneeded deps (diff)
downloadlordvan-9be06304f4a8f68fe832f2a9fc99ad2fc1408e61.tar.gz
lordvan-9be06304f4a8f68fe832f2a9fc99ad2fc1408e61.tar.bz2
lordvan-9be06304f4a8f68fe832f2a9fc99ad2fc1408e61.zip
new version for first tests
-rw-r--r--net-mail/dbmail/ChangeLog244
-rw-r--r--net-mail/dbmail/Manifest8
-rw-r--r--net-mail/dbmail/dbmail-3.0.2.ebuild146
-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.initd39
-rw-r--r--net-mail/dbmail/metadata.xml13
8 files changed, 570 insertions, 0 deletions
diff --git a/net-mail/dbmail/ChangeLog b/net-mail/dbmail/ChangeLog
new file mode 100644
index 0000000..8969109
--- /dev/null
+++ b/net-mail/dbmail/ChangeLog
@@ -0,0 +1,244 @@
+# ChangeLog for net-mail/dbmail
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.43 2011/07/15 21:08:51 maekke Exp $
+
+ 15 Jul 2011; Markus Meier <maekke@gentoo.org> dbmail-2.2.17.ebuild:
+ x86 stable, bug #373503
+
+ 01 Jul 2011; Markos Chandras <hwoarang@gentoo.org> dbmail-2.2.17.ebuild:
+ Stable on amd64 wrt bug #373503
+
+*dbmail-2.2.17 (14 Oct 2010)
+
+ 14 Oct 2010; <lordvan@gentoo.org> +dbmail-2.2.17.ebuild:
+ added dbmail-2.2.17 (fixes bug #260122 and bug #330073)
+ Thanks to Eray Aslan <eray.aslan@caf.com.tr> for the ebuild fixes
+
+ 17 Jun 2010; Patrick Lauer <patrick@gentoo.org> dbmail-2.2.9.ebuild,
+ dbmail-2.2.11.ebuild, dbmail-2.2.15.ebuild:
+ Migrating away from deprecated postgres virtuals
+
+ 04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ dbmail-2.2.11.ebuild, dbmail-2.2.15.ebuild:
+ Delete calls to deprecated python_version(). Call python_mod_cleanup()
+ with paths to Python modules.
+
+*dbmail-2.2.15 (28 Mar 2010)
+
+ 28 Mar 2010; <lordvan@gentoo.org> dbmail-2.2.9.ebuild,
+ -dbmail-2.2.10.ebuild, -dbmail-2.2.11_rc3.ebuild,
+ -dbmail-2.2.11_rc3-r1.ebuild, dbmail-2.2.11.ebuild, +dbmail-2.2.15.ebuild,
+ -dbmail-2.3.4.ebuild:
+ fixed bug #251392 (sqlite3 -> sqlite)
+ added 2.2.15, removed 2.2.11_rc3*, removed 2.3.*
+
+ 04 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> dbmail-2.2.9.ebuild,
+ dbmail-2.2.10.ebuild, dbmail-2.2.11_rc3.ebuild,
+ dbmail-2.2.11_rc3-r1.ebuild, dbmail-2.2.11.ebuild, dbmail-2.3.4.ebuild:
+ Fix obvious typos in USE flag checks.
+
+ 04 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ dbmail-2.2.11_rc3-r1.ebuild, dbmail-2.2.11.ebuild:
+ net-zope/zopeinterface renamed to net-zope/zope-interface.
+
+ 11 Jul 2009; Torsten Veller <tove@gentoo.org> dbmail-2.2.9.ebuild,
+ dbmail-2.2.10.ebuild, dbmail-2.2.11_rc3.ebuild,
+ dbmail-2.2.11_rc3-r1.ebuild, dbmail-2.2.11.ebuild, dbmail-2.3.4.ebuild:
+ INSTALL.gz -> INSTALL (#272937)
+
+*dbmail-2.2.11 (20 Mar 2009)
+
+ 20 Mar 2009; Thomas Raschbacher <lordvan@gentoo.org>
+ +dbmail-2.2.11.ebuild:
+ version bump
+
+*dbmail-2.2.11_rc3-r1 (18 Dec 2008)
+
+ 18 Dec 2008; Thomas Raschbacher <lordvan@gentoo.org>
+ +dbmail-2.2.11_rc3-r1.ebuild:
+ added 2.2.11_rc3-r1 which used upstream gentoo init scripts and conf.d
+ file. also now installing ldap schema if USE="ldap", contrib stuff into
+ doc dir and also installing python modules if USE="python"
+
+*dbmail-2.3.4 (01 Dec 2008)
+
+ 01 Dec 2008; Thomas Raschbacher <lordvan@gentoo.org> -dbmail-2.2.7.ebuild,
+ -dbmail-2.2.8.ebuild, dbmail-2.2.9.ebuild, dbmail-2.2.10.ebuild,
+ -dbmail-2.2.11_rc1.ebuild, dbmail-2.2.11_rc3.ebuild, -dbmail-2.3.2.ebuild,
+ -dbmail-2.3.3.ebuild, +dbmail-2.3.4.ebuild:
+ removed 2.2.7 and 2.2.8
+ removed old rc and old dev versions. fixed bug 239670 (thanks to Evil
+ Compile Person <bugs@dev.gentooexperimental.org> and tove@gentoo.org)
+ added 2.3.4
+
+ 06 Nov 2008; Thomas Raschbacher <lordvan@gentoo.org> ChangeLog:
+ added 2.2.11 rc3
+
+ 11 Oct 2008; Gilles Dartiguelongue <eva@gentoo.org> dbmail-2.2.7.ebuild,
+ dbmail-2.2.8.ebuild, dbmail-2.2.9.ebuild, dbmail-2.2.10.ebuild,
+ dbmail-2.2.11_rc1.ebuild, dbmail-2.3.2.ebuild, dbmail-2.3.3.ebuild:
+ Use gmime-2.2*, bug #239412.
+
+*dbmail-2.3.3 (06 Aug 2008)
+*dbmail-2.2.11_rc1 (06 Aug 2008)
+
+ 06 Aug 2008; Thomas Raschbacher <lordvan@gentoo.org>
+ files/dbmail-timsieved.initd, +dbmail-2.2.11_rc1.ebuild,
+ dbmail-2.3.2.ebuild, +dbmail-2.3.3.ebuild:
+ Added 2.2.11 rc1 (Bug #233708 thanks to svrmarty <svrmarty@gmx.net>)
+ Added 2.3.3 devel release and fixed download url in 2.3.x
+ Fixed init script (Bug #225427 thanks to Chris Mayo
+ <mayo@clara.co.uk>)
+
+ 21 May 2008; Tiziano Müller <dev-zero@gentoo.org> 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 <lordvan@gentoo.org>
+ +dbmail-2.2.10.ebuild:
+ added 2.2.10 fixes bug #218136.
+ Thanks to svrmarty <svrmarty@gmx.net> for pointing this out
+
+ 17 Apr 2008; Markus Meier <maekke@gentoo.org> dbmail-2.2.9.ebuild:
+ amd64/x86 stable, security bug #218154
+
+ 11 Apr 2008; Markus Meier <maekke@gentoo.org> dbmail-2.2.8.ebuild:
+ amd64 stable, bug #209964
+
+ 28 Feb 2008; Thomas Raschbacher <lordvan@gentoo.org> dbmail-2.3.2.ebuild:
+ hard-masked 2.3.2 again as it should be.
+
+ 15 Feb 2008; Michael Sterrett <mr_bones_@gentoo.org> 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 <opfer@gentoo.org> dbmail-2.2.8.ebuild:
+ stable x86, bug 209964
+
+ 13 Feb 2008; Thomas Raschbacher <lordvan@gentoo.org> -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 <bugs@dev.gentooexperimental.org> for pointing this out)
+
+*dbmail-2.3.2 (12 Feb 2008)
+*dbmail-2.2.9 (12 Feb 2008)
+
+ 12 Feb 2008; Thomas Raschbacher <lordvan@gentoo.org> +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 <lordvan@gentoo.org>
+ dbmail-2.2.8_rc1.ebuild:
+ fixed S= .. in 2.2.8_rc1 fixes bug #202512 Thanks to Alexander Kuznetsov
+ <fiw@mail.ru> for pointing this one out.
+
+*dbmail-2.2.8 (18 Dec 2007)
+
+ 18 Dec 2007; Thomas Raschbacher <lordvan@gentoo.org> +dbmail-2.2.8.ebuild:
+ added 2.2.8 release
+
+*dbmail-2.2.8_rc1 (09 Dec 2007)
+
+ 09 Dec 2007; Thomas Raschbacher <lordvan@gentoo.org>
+ +dbmail-2.2.8_rc1.ebuild:
+ added 2.2.8 rc1
+
+ 14 Nov 2007; Steve Dibb <beandog@gentoo.org> dbmail-2.2.7.ebuild:
+ amd64 stable, bug 198858
+
+ 13 Nov 2007; Dawid Węgliński <cla@gentoo.org> dbmail-2.2.7.ebuild:
+ Stable on x86 (bug #198858)
+
+ 02 Nov 2007; Steve Dibb <beandog@gentoo.org> dbmail-2.2.7_rc2.ebuild:
+ amd64 stable, bug 195362
+
+*dbmail-2.2.7 (31 Oct 2007)
+
+ 31 Oct 2007; Thomas Raschbacher <lordvan@gentoo.org>
+ +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 <lordvan@gentoo.org>
+ +dbmail-2.2.7_rc4.ebuild:
+ added 2.2.7 rc4
+
+ 12 Oct 2007; Thomas Raschbacher <lordvan@gentoo.org>
+ dbmail-2.2.7_rc2.ebuild:
+ readding x86 (see bug #195362)
+
+*dbmail-2.2.7_rc3 (12 Oct 2007)
+
+ 12 Oct 2007; Thomas Raschbacher <lordvan@gentoo.org>
+ 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 <opfer@gentoo.org>
+ dbmail-2.2.7_rc2.ebuild:
+ stable x86, bug 195362
+
+ 10 Oct 2007; Thomas Raschbacher <lordvan@gentoo.org> -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 <bmadams@gmail.com>
+ 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 <lordvan@gentoo.org>
+ +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 <lordvan@gentoo.org>
+ +dbmail-2.2.6_rc2.ebuild:
+ new rc added
+
+*dbmail-2.2.6_rc1 (16 Jul 2007)
+
+ 16 Jul 2007; Thomas Raschbacher <lordvan@gentoo.org>
+ +dbmail-2.2.6_rc1.ebuild:
+ added 2.2.6 rc1 ebuild
+
+*dbmail-2.2.5 (05 Jun 2007)
+
+ 05 Jun 2007; Thomas Raschbacher <lordvan@gentoo.org> +dbmail-2.2.5.ebuild:
+ added 2.2.5 version
+
+*dbmail-2.2.5_rc3 (29 May 2007)
+
+ 29 May 2007; Thomas Raschbacher <lordvan@gentoo.org>
+ +dbmail-2.2.5_rc3.ebuild:
+ added 2.2.5 rc3
+
+*dbmail-2.2.5_rc2 (15 May 2007)
+
+ 15 May 2007; Thomas Raschbacher <lordvan@gentoo.org> 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 <opfer@gentoo.org> dbmail-2.2.4.ebuild:
+ keyworded ~amd64, bug 172696
+
+*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 0000000..ba446f4
--- /dev/null
+++ b/net-mail/dbmail/Manifest
@@ -0,0 +1,8 @@
+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 716 RMD160 563e506fd21e97bc722aee4b0ccfe59846713440 SHA1 b1f93ac69a423d3a43cc1d5ffc942f58b60d6877 SHA256 c92cd221b37391703ec7aaff2eb3b33ed2b9b699a281f318f54ba6efd6e69224
+DIST dbmail-3.0.2.tar.gz 867560 RMD160 fce9e859f64b22954488d0ed30f3f2affe8e7309 SHA1 1e8edee116c5db5e4d82ccf9290af26f4af42cd3 SHA256 139558f4fa3e0f460d688f6d29318366cc3f40dd570a1a29484bb580d0190c3e
+EBUILD dbmail-3.0.2.ebuild 4476 RMD160 d72043eb13cfb5fedff022f6a65dfcd9e8868dfe SHA1 8de29e32968d9c7a589575e799d94571e38050ed SHA256 7258c7bb545a1dc1817017e83e093c2f7c752d4c8fa50ae3e50ff6efb88c5495
+MISC ChangeLog 8839 RMD160 773edc7d1fafa1f867c934f7c13c090b734dff2b SHA1 f6e182025ea9e3549bcfd58c4d5a69eb290df5a0 SHA256 c4452216e5a125fbeb5e35a934ef5405d14e5d27edbc06a5017c2d697f752693
+MISC metadata.xml 548 RMD160 70d498d197a7e68c8caa91e704a1e5890f0deb11 SHA1 1af05ee599488561298f8d6cff3d71a0032c0040 SHA256 44a8967070c748d01cf091dc9102c31a4b49c1de45387a244991fa8e1bf09056
diff --git a/net-mail/dbmail/dbmail-3.0.2.ebuild b/net-mail/dbmail/dbmail-3.0.2.ebuild
new file mode 100644
index 0000000..5659a0f
--- /dev/null
+++ b/net-mail/dbmail/dbmail-3.0.2.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.17.ebuild,v 1.3 2011/07/15 21:08:51 maekke Exp $
+
+EAPI="4"
+inherit eutils multilib python versionator
+
+DESCRIPTION="DBMail is an open-source project that enables storage of mail messages in a relational database."
+HOMEPAGE="http://www.dbmail.org/"
+SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ldap sieve +sqlite ssl static python"
+
+DEPEND="dev-db/libzdb
+ sieve? ( >=mail-filter/libsieve-2.2.1 )
+ ldap? ( >=net-nds/openldap-2.3.33 )
+ python? ( net-zope/zope-interface )
+ app-text/asciidoc
+ app-text/xmlto
+ app-crypt/mhash
+ sys-libs/zlib
+ >=dev-libs/gmime-2.4.6:2.4
+ >=dev-libs/glib-2.16
+ dev-libs/libevent
+ ssl? ( dev-libs/openssl )"
+#asciidoc and xmlto needed?
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup dbmail
+ enewuser dbmail -1 -1 /var/lib/dbmail dbmail
+}
+
+src_configure() {
+ local myconf=""
+ use ldap && myconf=${myconf}" --with-auth-ldap"
+
+ econf \
+ --sysconfdir=/etc/dbmail \
+ $(use_enable static) \
+ $(use_with sieve) \
+ ${myconf}
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING
+
+ docinto sql/mysql
+ dodoc sql/mysql/*
+ docinto sql/postgresql
+ dodoc sql/postgresql/*
+ docinto sql/sqlite
+ dodoc sql/sqlite/*
+ docinto test-scripts
+ dodoc test-scripts/*
+ docinto contrib/sql2sql
+ dodoc contrib/sql2sql/*
+ docinto contrib/mailbox2dbmail
+ dodoc contrib/mailbox2dbmail/README
+ docinto contrib
+ dodoc contrib/*
+ ## TODO: install other contrib stuff
+
+ 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
+
+ # change config path to our default and use the conf.d and init.d files from the contrib dir
+ sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
+ sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
+ newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
+ newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
+
+ dobin contrib/mailbox2dbmail/mailbox2dbmail
+ doman contrib/mailbox2dbmail/mailbox2dbmail.1
+ doman man/*.{1,5,8}
+
+ # ldap schema
+ if use ldap; then
+ insinto /etc/openldap/schema
+ doins "${S}/dbmail.schema"
+ fi
+
+ if use python; then
+ insinto $(python_get_sitedir)/dbmail
+ doins python/*.py
+ insinto $(python_get_sitedir)/dbmail/app
+ doins python/app/*.py
+ insinto $(python_get_sitedir)/dbmail/bin
+ doins python/bin/*.py
+ insinto $(python_get_sitedir)/dbmail/lib
+ doins python/lib/*.py
+ insinto $(python_get_sitedir)/dbmail/tests
+ doins python/tests/*.py
+ fi
+
+ keepdir /var/lib/dbmail
+ fperms 750 /var/lib/dbmail
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize $(python_get_sitedir)/dbmail
+ fi
+ elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
+ 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 SQLite, PostgreSQL or MySQL."
+ 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."
+ echo
+ elog "We are now using the init script from upstream."
+ elog "Please edit /etc/conf.d/dbmail to set which services to start"
+ elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
+ elog "forget to rc-update del dbmail-* first)"
+}
+
+pkg_postrm() {
+ python_mod_cleanup $(python_get_sitedir)/dbmail
+}
diff --git a/net-mail/dbmail/files/dbmail-imapd.initd b/net-mail/dbmail/files/dbmail-imapd.initd
new file mode 100644
index 0000000..8f6984f
--- /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 0000000..cea3da6
--- /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 0000000..8c9e7b8
--- /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 0000000..325badb
--- /dev/null
+++ b/net-mail/dbmail/files/dbmail-timsieved.initd
@@ -0,0 +1,39 @@
+#!/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 \
+ -- -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/metadata.xml b/net-mail/dbmail/metadata.xml
new file mode 100644
index 0000000..d97daad
--- /dev/null
+++ b/net-mail/dbmail/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>lordvan@gentoo.org</email>
+ <name>Thomas Raschbacher</name>
+ </maintainer>
+ <longdescription>DBMail is an open-source project that enables storage of mail messages in a relational database. Currently MySQL, PostgreSQL, Oracle, and SQLite can be used as storage</longdescription>
+ <use>
+ <flag name="sieve">Enable sieve filter support</flag>
+ </use>
+</pkgmetadata>