diff options
Diffstat (limited to 'net-mail/dbmail')
-rw-r--r-- | net-mail/dbmail/Manifest | 12 | ||||
-rw-r--r-- | net-mail/dbmail/dbmail-3.2.2.ebuild | 140 | ||||
-rw-r--r-- | net-mail/dbmail/dbmail-3.2.3-r1.ebuild | 133 | ||||
-rw-r--r-- | net-mail/dbmail/dbmail-3.2.3.ebuild | 140 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-imapd.initd | 68 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-lmtpd.initd | 68 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-pop3d.initd | 68 | ||||
-rw-r--r-- | net-mail/dbmail/files/dbmail-timsieved.initd | 68 | ||||
-rw-r--r-- | net-mail/dbmail/metadata.xml | 16 |
9 files changed, 713 insertions, 0 deletions
diff --git a/net-mail/dbmail/Manifest b/net-mail/dbmail/Manifest new file mode 100644 index 000000000000..c1a5596f9455 --- /dev/null +++ b/net-mail/dbmail/Manifest @@ -0,0 +1,12 @@ +AUX dbmail-imapd.initd 1543 SHA256 b8d50a3879e0e0c4fc5e451a26bcb6a8f9a3d353d7fe9cec4186ca542943237b SHA512 31b7dcb5a1af0aa5a8244371a2f81619c2191a7755340768e1aad694fde7876e4ad7040d0758dafd0a332eefd24b790a83e8ba95f13fe5d1d2e09ef7551d41cc WHIRLPOOL 84dfe3344e209874cd89c46f2b4a445fa5ce383ca06319ba2ec6c5f7147e3bf11b332193c0bb57ad850d8042173fdd6ad1e6ba506a1e9c51444e1f963944ba45 +AUX dbmail-lmtpd.initd 1543 SHA256 6cbc8149cfd6a8fea1f61e972ee4ada776f9d10784da37e27cf30cae5156268a SHA512 c79f50c56538643b3203d238cc5ef6f4c407951ff3279ba15b695479f7667be8120ded07daa55c1d01409a2921d5579ffa47cd612cba08f558bc5ba84f5809b7 WHIRLPOOL bdb2fd1b9b366ba3716725629ec3616c3d4fef5e2aa132d440c10a52f72f8594bb24054287476db274eada68790d8c2621523d1893494ca898d3bfa68cf147b2 +AUX dbmail-pop3d.initd 1543 SHA256 c083dd9557313c0fc85df4990848cd32173554c41a9b2e0f568bd56da27f798e SHA512 6b1d3f10caf0afb5d5e41e95055368f11c2864204eafa94d22c93ba9f765419e69bb5e9a03d497d1e9a00d0c6a31c823be1449590331d24d6eb02d1f194a4941 WHIRLPOOL 3d483b6322dd9c096c9a0172a2410fb6b8fe7043d46feb837c6c39be307344db6293a76a4cd079b0e323c3c393769516a43047d0e313e349d6b33d33d9345f4b +AUX dbmail-timsieved.initd 1558 SHA256 314896ce17d64f5a725c1582383b462c891c610c803ee5a9d7662bf052ec7f95 SHA512 e9192c17772e208e5a57e185d970b605941dcb2472347858d2da45493084e666840dd13a4ee7c74ffce8eca975116fb8d78b0474bfe022089c859dd54a6e139e WHIRLPOOL 71bc652d8ea631a6d897ab1230b55e93c59ecc2b4640769b1d416db3645d3438d44c5c7bafc264284605e6c512f6a64b44bf4215004cfbb08374a694cc211364 +DIST dbmail-3.2.2.tar.gz 2444241 SHA256 77d2fcf343cc1312fca565a9eeef3927b257b55910be2b198562516334a2c62a SHA512 a2125ea3b9d0ec387135d87854510f36ef0fe87b70f33d54f8af89f22a83802e5838979ba94d6ba66ef986f6f67b08aa6d5e2bfc2f1f2bc44edf03a9f51afb37 WHIRLPOOL 8fa60754e55b56e293a187cd10922586e1c38c0079e8f6eb98b8aaba503705046cf7b6954f677bb295ea799f9261ef62c8589433657a0ad2775dd2cfa1d1ee15 +DIST dbmail-3.2.3.tar.gz 2444227 SHA256 fd4d90e3e5ddb0c3fbdaa766d19d2464b5027a8c8d0b0df614418a3aac811832 SHA512 29cc89830278f2ff28a4221fc81d4ff13cc371fbca7fb51d5376e9243234220b552cb4b6ec035c150e6cfa178435c4f36b9ce132fc02334bc6cdeb1a41c8ed85 WHIRLPOOL 05284ae622078584e35583ba5a6b340d9500c46dcf820b851810a2bbf6ac39ee57080d9e23ee82c6b64af3f76de6ef6eb0ec925a9615d4a4dc2e19e5f06e9a5d +EBUILD dbmail-3.2.2.ebuild 4851 SHA256 26e32fad99b9b4abb770c85502d5dfe8138d1c64861bf81a505affcf97321758 SHA512 a94c7341158cb6d10d56c16b93d9d34f317f0cccd4cd70365267b4fac2c64dc1dea2e1d392baddf013cff7a97bcd8487c86466d8a6d6f150475baeb908349aca WHIRLPOOL 8d414bdde83877524f41daddeb0470de1ade0d6228657331c76f940501defdbca5604002879c82e8c5fd8ba2c11253c5a56ad1001e14748cdc30424252f0d6e0 +EBUILD dbmail-3.2.3-r1.ebuild 4613 SHA256 56aa97877ce556b6b4c90c3e335fcfe6c84322e1b16fd1a63036bc875ddbce07 SHA512 c1957a239fd669a6262bc22a2fa30649640cc67af44cd29a299ea0d1bb2f5a7689fc77376123e7ede1ad5eed10554dfa8c100ff4497c5bb5ae1b3168103202b0 WHIRLPOOL 50028d27087997eed05079db458e349109065423dde03f9b1d41eb5f2b39b8c8e00a36efa9ae15cacb8862cb6c847e4c3f20e303265fa6387ec7f40bb60d7966 +EBUILD dbmail-3.2.3.ebuild 4853 SHA256 e525570917d6eb8ca00ef1fe37d9f7965d112c53ae8a99895b8ce78126f7ce34 SHA512 a52a6edfe30085c263c4f3b4b83e475917d63f68a36f765fea643a30845d0eac2ed503b499b0d0a4351426b4cee839bccd30cecaa6f22c6f80deb226aa5c7427 WHIRLPOOL 580c30ee532368643e09b79f8ef7013c04d6fbeb6695e9e7584ac582df0c32fbdc8d97b15c9c5a2a0b77d9d713ae8658bfaa5a4ed05e6c085292dd3ede9ab648 +MISC ChangeLog 3203 SHA256 fb218c3cb4c87cdfbc3e186e93be3c21fdc7584d288c019aefb1219ee800b582 SHA512 d6db1732636704f3559f439bf97f0fb410a4bd82c9959295a67be06a12476efc1705a3d33035ebd8676c009a788ed95c7c1cd4e171ef3618f01cca1870dca07b WHIRLPOOL 52af754268a46e8eaad85116e209f7005cd64eba89100c06ef2afb2263c3d544ca8251f9e0a07ab50687de14d87de7295d49de7e73a159b1a77b8dd165e03a70 +MISC ChangeLog-2015 13312 SHA256 c1cb328fb7df829326c6f8446933d596bef3eeebd8155bcb9489bf16f58eac70 SHA512 58c75da8b1d84228e70f51a80b33d55672843b815575598a3e24b08219ebfa83f4ccaefa2acf69e7779a6888fc8fc38731e4e43ebb0f88776e5deb66bd9e9e2c WHIRLPOOL fb82b34678a460dc54470eb1b17a3ae94db5188d6425adee1ab85533d97fabbdf0d95d6a2641cd933322612d86fba7e5243c007646a046a29e128cc29588c897 +MISC metadata.xml 681 SHA256 2fc6ecff087d6bc6e33fe8a809ba2f8cc686bcd2b88ec991ae041f42299a83c2 SHA512 905c493d1ec543b10a58a152a4ea78ce59e831eb477baebfef4e930c39f268f24bccacb06ebc9ddbe398da27bf222910004fc6b74712b48bc619f7dbb94c60e5 WHIRLPOOL 7f6fca68a588ed9a1299d924766169ce3bc1011bc976395c6b56cd076df729ebc0a00d37c71dd4509c37280f9bfd0b16475dbce40e6aee9404e00901a661fe4a diff --git a/net-mail/dbmail/dbmail-3.2.2.ebuild b/net-mail/dbmail/dbmail-3.2.2.ebuild new file mode 100644 index 000000000000..419c1fcda267 --- /dev/null +++ b/net-mail/dbmail/dbmail-3.2.2.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +inherit eutils multilib versionator user + +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" + +DEPEND="dev-db/libzdb + sieve? ( >=mail-filter/libsieve-2.2.1 ) + ldap? ( >=net-nds/openldap-2.3.33 ) + app-text/asciidoc + app-text/xmlto + app-crypt/mhash + sys-libs/zlib + dev-libs/gmime:2.6 + >=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 + + docompress -x /usr/share/doc/${PF}/sql + dodoc -r sql + dodoc -r test-scripts + dodoc -r 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:/var/run:/var/run/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 + #sed -i -e "s:/var/run:/var/run/dbmail:" 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 + # use custom init scripts until updated in upstream contrib + newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd + newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd + newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d + newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved + + 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 + + keepdir /var/lib/dbmail + fperms 750 /var/lib/dbmail + fowners dbmail:dbmail /var/lib/dbmail + # create this through init-scripts instead of at installt ime (bug #455002) + #keepdir /var/run/dbmail + #fowners dbmail:dbmail /var/run/dbmail +} + +pkg_postinst() { + 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)" + echo + elog "Changed pid directory to /var/run/dbmail (see" + elog "http://www.dbmail.org/mantis/view.php?id=949 for details)" + echo + ewarn "The database config has changed to support libzdb db URI" + ewarn "Please check the documentation (or Bug #479664)" + echo + ewarn "The database schema has changed since 3.0.x make sure" + ewarn "to run the migration script" + echo + ewarn "Please be aware, that the single init-script for all services" + ewarn "has been replaced with seperate init scripts for the individual services." + ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update" + ewarn "and remove dbmail if you want to take advantage of this change." + echo +} diff --git a/net-mail/dbmail/dbmail-3.2.3-r1.ebuild b/net-mail/dbmail/dbmail-3.2.3-r1.ebuild new file mode 100644 index 000000000000..61bff9022a7b --- /dev/null +++ b/net-mail/dbmail/dbmail-3.2.3-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit versionator user + +DESCRIPTION="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 ssl static" + +DEPEND="dev-db/libzdb + sieve? ( >=mail-filter/libsieve-2.2.1 ) + ldap? ( >=net-nds/openldap-2.3.33 ) + app-text/asciidoc + app-text/xmlto + app-crypt/mhash + sys-libs/zlib + dev-libs/gmime:2.6 + >=dev-libs/glib-2.16 + dev-libs/libevent + ssl? ( dev-libs/openssl )" +RDEPEND="${DEPEND}" + +DOCS="AUTHORS README.md INSTALL THANKS UPGRADING" + +pkg_setup() { + enewgroup dbmail + enewuser dbmail -1 -1 /var/lib/dbmail dbmail +} + +src_configure() { + econf \ + --enable-manpages \ + --sysconfdir=/etc/dbmail \ + $(use_enable static) \ + $(use_with sieve) \ + $(use_with ldap auth-ldap) +} + +src_install() { + default + + docompress -x /usr/share/doc/${PF}/sql + dodoc -r sql + dodoc -r test-scripts + dodoc -r contrib + ## TODO: install other contrib stuff + + sed -i -e "s:nobody:dbmail:" dbmail.conf || die + sed -i -e "s:nogroup:dbmail:" dbmail.conf || die + sed -i -e "s:/var/run:/run/dbmail:" dbmail.conf || die + + 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 || die + #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail || die + #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail || die + #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail + #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail + # use custom init scripts until updated in upstream contrib + newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd + newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd + newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d + newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved + sed -i -e "s:/var/run:/run:" "${D}"/etc/init.d/dbmail-* || die + + dobin contrib/mailbox2dbmail/mailbox2dbmail + doman contrib/mailbox2dbmail/mailbox2dbmail.1 + + # ldap schema + if use ldap; then + insinto /etc/openldap/schema + doins "${S}/dbmail.schema" + fi + + keepdir /var/lib/dbmail + fperms 750 /var/lib/dbmail + fowners dbmail:dbmail /var/lib/dbmail + # create this through init-scripts instead of at install time (bug #455002) + #keepdir /run/dbmail + #fowners dbmail:dbmail /run/dbmail +} + +pkg_postinst() { + 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)" + echo + elog "Changed pid directory to /run/dbmail (see" + elog "http://www.dbmail.org/mantis/view.php?id=949 for details)" + echo + ewarn "The database config has changed to support libzdb db URI" + ewarn "Please check the documentation (or Bug #479664)" + echo + ewarn "The database schema has changed since 3.0.x make sure" + ewarn "to run the migration script" + echo + ewarn "Please be aware, that the single init-script for all services" + ewarn "has been replaced with seperate init scripts for the individual services." + ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update" + ewarn "and remove dbmail if you want to take advantage of this change." + echo +} diff --git a/net-mail/dbmail/dbmail-3.2.3.ebuild b/net-mail/dbmail/dbmail-3.2.3.ebuild new file mode 100644 index 000000000000..6aa8cf25470e --- /dev/null +++ b/net-mail/dbmail/dbmail-3.2.3.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +inherit eutils multilib versionator user + +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" + +DEPEND="dev-db/libzdb + sieve? ( >=mail-filter/libsieve-2.2.1 ) + ldap? ( >=net-nds/openldap-2.3.33 ) + app-text/asciidoc + app-text/xmlto + app-crypt/mhash + sys-libs/zlib + dev-libs/gmime:2.6 + >=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 + + docompress -x /usr/share/doc/${PF}/sql + dodoc -r sql + dodoc -r test-scripts + dodoc -r 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:/var/run:/var/run/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 + #sed -i -e "s:/var/run:/var/run/dbmail:" 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 + # use custom init scripts until updated in upstream contrib + newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd + newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd + newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d + newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved + + 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 + + keepdir /var/lib/dbmail + fperms 750 /var/lib/dbmail + fowners dbmail:dbmail /var/lib/dbmail + # create this through init-scripts instead of at installt ime (bug #455002) + #keepdir /var/run/dbmail + #fowners dbmail:dbmail /var/run/dbmail +} + +pkg_postinst() { + 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)" + echo + elog "Changed pid directory to /var/run/dbmail (see" + elog "http://www.dbmail.org/mantis/view.php?id=949 for details)" + echo + ewarn "The database config has changed to support libzdb db URI" + ewarn "Please check the documentation (or Bug #479664)" + echo + ewarn "The database schema has changed since 3.0.x make sure" + ewarn "to run the migration script" + echo + ewarn "Please be aware, that the single init-script for all services" + ewarn "has been replaced with seperate init scripts for the individual services." + ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update" + ewarn "and remove dbmail if you want to take advantage of this change." + echo +} diff --git a/net-mail/dbmail/files/dbmail-imapd.initd b/net-mail/dbmail/files/dbmail-imapd.initd new file mode 100644 index 000000000000..9914f6a58bf3 --- /dev/null +++ b/net-mail/dbmail/files/dbmail-imapd.initd @@ -0,0 +1,68 @@ +#!/sbin/openrc-run +# +# chkconfig: - 91 35 +# description: Starts and stops dbmail-impad +# + + +PROGRAM=dbmail-imapd + +BIN_DIR=/usr/sbin +PID_DIR=/var/run/dbmail +PID=pid + +# Where is the dbmail.conf file located? +CONFIG=/etc/dbmail/dbmail.conf + +## not in 3.1.x yet +#extra_started_commands="reload" + +depend() { + need net + # This won't cause a hard failure if neither is installed, however. + use mysql + use pgsql + after mta +} + +initService() { + # Avoid using root's TMPDIR + unset TMPDIR + + # Check that config file exists. + if [ ! -e $CONFIG ]; then + eerror "Config file not found ($CONFIG)" + eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist" + return 1 + fi + + checkpath -d $PID_DIR -m 750 -o dbmail:dbmail + + RETVAL=0 +} + +start() { + initService + ebegin "Starting DBMail IMAP daemon ($PROGRAM)" + start-stop-daemon --start --quiet \ + --pidfile $PID_DIR/$PROGRAM.$PID \ + --exec $BIN_DIR/$PROGRAM \ + --name $PROGRAM \ + -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1 + eend $? +} + +stop() { + ebegin "Stopping DBMail IMAP daemon ($PROGRAM)" + start-stop-daemon --stop --quiet --retry 15 \ + --pidfile $PID_DIR/$PROGRAM.$PID + eend $? +} + +## not in 3.1.x yet +#reload() {# +# ebegin "Reloading DBMail IMAP daemon ($PROGRAM)" +# start-stop-daemon --quiet --signal HUP \ +# --pidfile $PID_DIR/$PROGRAM.$PID +# 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..68e41c34e247 --- /dev/null +++ b/net-mail/dbmail/files/dbmail-lmtpd.initd @@ -0,0 +1,68 @@ +#!/sbin/openrc-run +# +# chkconfig: - 91 35 +# description: Starts and stops dbmail-lmtpd +# + + +PROGRAM=dbmail-lmtpd + +BIN_DIR=/usr/sbin +PID_DIR=/var/run/dbmail +PID=pid + +# Where is the dbmail.conf file located? +CONFIG=/etc/dbmail/dbmail.conf + +## not in 3.1.x yet +#extra_started_commands="reload" + +depend() { + need net + # This won't cause a hard failure if neither is installed, however. + use mysql + use pgsql + after mta +} + +initService() { + # Avoid using root's TMPDIR + unset TMPDIR + + # Check that config file exists. + if [ ! -e $CONFIG ]; then + eerror "Config file not found ($CONFIG)" + eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist" + return 1 + fi + + checkpath -d $PID_DIR -m 750 -o dbmail:dbmail + + RETVAL=0 +} + +start() { + initService + ebegin "Starting DBMail LMTP daemon ($PROGRAM)" + start-stop-daemon --start --quiet \ + --pidfile $PID_DIR/$PROGRAM.$PID \ + --exec $BIN_DIR/$PROGRAM \ + --name $PROGRAM \ + -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1 + eend $? +} + +stop() { + ebegin "Stopping DBMail LMTP daemon ($PROGRAM)" + start-stop-daemon --stop --quiet --retry 15 \ + --pidfile $PID_DIR/$PROGRAM.$PID + eend $? +} + +## not in 3.1.x yet +#reload() {# +# ebegin "Reloading DBMail LMTP daemon ($PROGRAM)" +# start-stop-daemon --quiet --signal HUP \ +# --pidfile $PID_DIR/$PROGRAM.$PID +# 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..6629a9a610af --- /dev/null +++ b/net-mail/dbmail/files/dbmail-pop3d.initd @@ -0,0 +1,68 @@ +#!/sbin/openrc-run +# +# chkconfig: - 91 35 +# description: Starts and stops dbmail-pop3d +# + + +PROGRAM=dbmail-pop3d + +BIN_DIR=/usr/sbin +PID_DIR=/var/run/dbmail +PID=pid + +# Where is the dbmail.conf file located? +CONFIG=/etc/dbmail/dbmail.conf + +## not in 3.1.x yet +#extra_started_commands="reload" + +depend() { + need net + # This won't cause a hard failure if neither is installed, however. + use mysql + use pgsql + after mta +} + +initService() { + # Avoid using root's TMPDIR + unset TMPDIR + + # Check that config file exists. + if [ ! -e $CONFIG ]; then + eerror "Config file not found ($CONFIG)" + eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist" + return 1 + fi + + checkpath -d $PID_DIR -m 750 -o dbmail:dbmail + + RETVAL=0 +} + +start() { + initService + ebegin "Starting DBMail POP3 daemon ($PROGRAM)" + start-stop-daemon --start --quiet \ + --pidfile $PID_DIR/$PROGRAM.$PID \ + --exec $BIN_DIR/$PROGRAM \ + --name $PROGRAM \ + -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1 + eend $? +} + +stop() { + ebegin "Stopping DBMail POP3 daemon ($PROGRAM)" + start-stop-daemon --stop --quiet --retry 15 \ + --pidfile $PID_DIR/$PROGRAM.$PID + eend $? +} + +## not in 3.1.x yet +#reload() {# +# ebegin "Reloading DBMail POP3 daemon ($PROGRAM)" +# start-stop-daemon --quiet --signal HUP \ +# --pidfile $PID_DIR/$PROGRAM.$PID +# 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..fdd809c5485c --- /dev/null +++ b/net-mail/dbmail/files/dbmail-timsieved.initd @@ -0,0 +1,68 @@ +#!/sbin/openrc-run +# +# chkconfig: - 91 35 +# description: Starts and stops dbmail-timsieved +# + + +PROGRAM=dbmail-timsieved + +BIN_DIR=/usr/sbin +PID_DIR=/var/run/dbmail +PID=pid + +# Where is the dbmail.conf file located? +CONFIG=/etc/dbmail/dbmail.conf + +## not in 3.1.x yet +#extra_started_commands="reload" + +depend() { + need net + # This won't cause a hard failure if neither is installed, however. + use mysql + use pgsql + after mta +} + +initService() { + # Avoid using root's TMPDIR + unset TMPDIR + + # Check that config file exists. + if [ ! -e $CONFIG ]; then + eerror "Config file not found ($CONFIG)" + eerror "An example config can be found in /etc/dbmail/dbmail.conf.dist" + return 1 + fi + + checkpath -d $PID_DIR -m 750 -o dbmail:dbmail + + RETVAL=0 +} + +start() { + initService + ebegin "Starting DBMail SIEVE daemon ($PROGRAM)" + start-stop-daemon --start --quiet \ + --pidfile $PID_DIR/$PROGRAM.$PID \ + --exec $BIN_DIR/$PROGRAM \ + --name $PROGRAM \ + -- -f $CONFIG -p $PID_DIR/$PROGRAM.$PID 2>&1 + eend $? +} + +stop() { + ebegin "Stopping DBMail SIEVE daemon ($PROGRAM)" + start-stop-daemon --stop --quiet --retry 15 \ + --pidfile $PID_DIR/$PROGRAM.$PID + eend $? +} + +## not in 3.1.x yet +#reload() {# +# ebegin "Reloading DBMail SIEVE daemon ($PROGRAM)" +# start-stop-daemon --quiet --signal HUP \ +# --pidfile $PID_DIR/$PROGRAM.$PID +# eend $? +#} diff --git a/net-mail/dbmail/metadata.xml b/net-mail/dbmail/metadata.xml new file mode 100644 index 000000000000..60981ee8e971 --- /dev/null +++ b/net-mail/dbmail/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>lordvan@gentoo.org</email> + <name>Thomas Raschbacher</name> + </maintainer> + <maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</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> + <use> + <flag name="sieve">Enable sieve filter support</flag> + </use> +</pkgmetadata> |