From 2d446203bcf1a0db08e99abca43513d246dfa73d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 5 Apr 2018 21:52:00 +0100 Subject: gentoo resync : 05.04.2018 --- net-mail/Manifest.gz | Bin 18273 -> 18272 bytes net-mail/dbmail/Manifest | 1 + net-mail/dbmail/dbmail-3.2.3-r2.ebuild | 135 +++++++++++++++++++++ net-mail/mailbase/Manifest | 2 + net-mail/mailbase/mailbase-1.2.ebuild | 65 +++++++++++ net-mail/mailbase/mailbase-1.3.ebuild | 66 +++++++++++ net-mail/notmuch/Manifest | 2 + net-mail/notmuch/notmuch-0.26.1.ebuild | 208 +++++++++++++++++++++++++++++++++ 8 files changed, 479 insertions(+) create mode 100644 net-mail/dbmail/dbmail-3.2.3-r2.ebuild create mode 100644 net-mail/mailbase/mailbase-1.2.ebuild create mode 100644 net-mail/mailbase/mailbase-1.3.ebuild create mode 100644 net-mail/notmuch/notmuch-0.26.1.ebuild (limited to 'net-mail') diff --git a/net-mail/Manifest.gz b/net-mail/Manifest.gz index 22edac1689e5..8af35dfe9441 100644 Binary files a/net-mail/Manifest.gz and b/net-mail/Manifest.gz differ diff --git a/net-mail/dbmail/Manifest b/net-mail/dbmail/Manifest index f24f7351f341..e60c4e437c53 100644 --- a/net-mail/dbmail/Manifest +++ b/net-mail/dbmail/Manifest @@ -6,5 +6,6 @@ DIST dbmail-3.2.2.tar.gz 2444241 BLAKE2B 0fb601e66aa0b41b85c0d4ad4cb6cec6e09358c DIST dbmail-3.2.3.tar.gz 2444227 BLAKE2B baa812fb3e925e6d896762596426208fc2ac5fcb01cb8100cfbd0464f1342f934c099ca52fd857e05fc82b97227155e9dcfc987d6c9b5c37e7daf21b167c9841 SHA512 29cc89830278f2ff28a4221fc81d4ff13cc371fbca7fb51d5376e9243234220b552cb4b6ec035c150e6cfa178435c4f36b9ce132fc02334bc6cdeb1a41c8ed85 EBUILD dbmail-3.2.2.ebuild 4851 BLAKE2B 0bb2a237364f867f483e0f99dbd9eb434337f2941f5eb72e89d31c4e7e6bfd741f1b6f1f615fde1d9453935a677b7a9ed392860def571ab3c8dd3ec2f1daef17 SHA512 a94c7341158cb6d10d56c16b93d9d34f317f0cccd4cd70365267b4fac2c64dc1dea2e1d392baddf013cff7a97bcd8487c86466d8a6d6f150475baeb908349aca EBUILD dbmail-3.2.3-r1.ebuild 4613 BLAKE2B a3a6c512bbfce63c0b878bbe4eafc6cfc9a34ce5cd3d9a38f9ea37471e6920a3996f3d6970b7d35c7d1f03c2e0124f953a0b51f90fc264c3a2c624f5ab70cb27 SHA512 c1957a239fd669a6262bc22a2fa30649640cc67af44cd29a299ea0d1bb2f5a7689fc77376123e7ede1ad5eed10554dfa8c100ff4497c5bb5ae1b3168103202b0 +EBUILD dbmail-3.2.3-r2.ebuild 4715 BLAKE2B 33e881d875c01ac66f4fab4b8b4a259be0598770eb60c706208752ffae9b1d8567677b443fe74486d8ea181a02e0f30f216ea558ded97dd2a0337e0145687ec2 SHA512 785a447392075e52020ddc95b7d44d77493e95de01da08502553070ca56a71ff4f9a3a18035f2f2eabe86fd675d87222e27a3a0c943e5839dbc143aaf1fea69b EBUILD dbmail-3.2.3.ebuild 4853 BLAKE2B 0aaa8ad89b7c999b6c5a66c215d3152ed93bd2a895e9be4260fb246af5e3e0d60c7d19d12c65ba32ccf23613ccff88a2c4e68f01bff3961c1fae7e344b3f9694 SHA512 a52a6edfe30085c263c4f3b4b83e475917d63f68a36f765fea643a30845d0eac2ed503b499b0d0a4351426b4cee839bccd30cecaa6f22c6f80deb226aa5c7427 MISC metadata.xml 681 BLAKE2B 235beb3355fffb0d6508af4753088efa341d74a62b87481bb5012c2668ff79194796ede4e76960dd1aca3f2a4a576268a0e36eb8b83ad012418611db194cd2ce SHA512 905c493d1ec543b10a58a152a4ea78ce59e831eb477baebfef4e930c39f268f24bccacb06ebc9ddbe398da27bf222910004fc6b74712b48bc619f7dbb94c60e5 diff --git a/net-mail/dbmail/dbmail-3.2.3-r2.ebuild b/net-mail/dbmail/dbmail-3.2.3-r2.ebuild new file mode 100644 index 000000000000..6d19833506fc --- /dev/null +++ b/net-mail/dbmail/dbmail-3.2.3-r2.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit systemd versionator user + +DESCRIPTION="Fast and scalable sql based email services" +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}" + +pkg_setup() { + enewgroup dbmail + enewuser dbmail -1 -1 /var/lib/dbmail dbmail +} + +src_configure() { + econf \ + --enable-manpages \ + --enable-systemd \ + --sysconfdir=/etc/dbmail \ + $(use_enable static) \ + $(use_with sieve) \ + $(use_with ldap auth-ldap) +} + +src_install() { + emake DESTDIR="${D}" SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install + + DOCS=( AUTHORS README.md INSTALL THANKS UPGRADING ) + einstalldocs + + 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/mailbase/Manifest b/net-mail/mailbase/Manifest index e833b563a8c3..be63986312b1 100644 --- a/net-mail/mailbase/Manifest +++ b/net-mail/mailbase/Manifest @@ -3,5 +3,7 @@ AUX common-pamd 308 BLAKE2B 95a2b44b1bd2112da1160cf5c3f993debb85692111e046a79c14 AUX common-pamd-include 245 BLAKE2B 3c2a5133b232869a5749df49a7e1f94a51f68d3bd37037d3ea10bfab18fb48fae565304bd2eba6fc686da3f3bf71249975e8f8bc9deada66eb3665d20929020d SHA512 3516815034b419bf4fd57a43536e7a25b820013d5339cb818bbbee3f0e8e26651f6b4aefae0177240219e05010ba8a2aaf6d0337220cf176801992204c3216f0 AUX mailcap 2235 BLAKE2B 3cf2cba9c1f67feab3b63246f21f8aa78b808a42b2368add9f77c36cca8d92c13122f53663ac3fe4d8b0968a66a35803d98cce6197110f1efe08562e9f837e74 SHA512 1461deb4f065c0d1778acbbcb1e08db821740de0363d3905a569d45d459a76d8813ef1c2c052d6e84b4b9b5576c89e524ecf44a9fffd8e05e91f85eb917557b0 EBUILD mailbase-1.1.ebuild 1649 BLAKE2B ff86ef5635b5949e5206a1440f83a88470e196e582f24c3edf42df8785945478ebeb86a3a100b7bc21c67cb4b7192c4ab229c697e9b96435c4c1db23f216641a SHA512 aeb1691751341563425227aa59bb9a37d3757cd49d46b0acc6226ef5da6c10748724f30f53c27894e2f3d3e25ddaeb9dc80ad51e1e09fe954a5750b60244107f +EBUILD mailbase-1.2.ebuild 1484 BLAKE2B 1bb6d19b998fbfcd93f0079bc5f74002ee1cf23909bddb91d27051faa9ad0b6701600d5edee61e1f0c7dd9162ebdc3989092c55243fb24bea3462d6841a0fb67 SHA512 5eb0ce61fb11fd65625cb7c5e0daabd5831a43db9c0b7a81b83d8f301fb9c88123395351cf36b84d3c66496da47bb022c59d15568089d5827f860c798a96720b +EBUILD mailbase-1.3.ebuild 1458 BLAKE2B 835a54fe1e299fd10342d6d890ef3436b91483a9e12cfc74d4291939c0a8bb1702f9467b9b9f0687a748915fdc3bdccefedaace530d96cb4d37108a474db3e7a SHA512 60cbbe72959a4b0f7f05080765257cdc18bde09c5444acf97d19b4bfbbe70eec3b6e110cbefc382db74d1506f551d9d5e919e8b927465c70fd6ac8a951eaaeb3 EBUILD mailbase-1.ebuild 1600 BLAKE2B 7e88dbe5a9ba19db0d7d20c74d4c65aeba7eea4649e7305217c37173c8a8b7d8f8e9fe6f64c9ba6846fcd20118b3f6e7af96bb190523598c7acf634b3e678c05 SHA512 2e7f91fefd121b0bc11ca452b58dfca0775ced5052ddebabdfc4faec8e37ed7e65046f0c22180a2dc18acc64299f1859e6a67b9e7a67456052e96e08c3ae29fd MISC metadata.xml 240 BLAKE2B eeb6099e7ebc29b81588528b970830d2461fa16783bda673672d405615e46d240dcd806b3d18b6207ef8e5365f8860aa20c304394c3f5b267c5ea4dc739cb94b SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db diff --git a/net-mail/mailbase/mailbase-1.2.ebuild b/net-mail/mailbase/mailbase-1.2.ebuild new file mode 100644 index 000000000000..508f9f65781e --- /dev/null +++ b/net-mail/mailbase/mailbase-1.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit pam eutils user + +DESCRIPTION="MTA layout package" +SRC_URI="" +HOMEPAGE="https://www.gentoo.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="pam" + +RDEPEND="pam? ( virtual/pam )" + +S=${WORKDIR} + +pkg_setup() { + enewgroup mail 12 + enewuser mail 8 -1 /var/spool/mail mail + enewuser postmaster 14 -1 /var/spool/mail +} + +src_install() { + dodir /etc/mail + insinto /etc/mail + doins "${FILESDIR}"/aliases || die + insinto /etc + doins "${FILESDIR}"/mailcap || die + + keepdir /var/spool/mail + fowners root:mail /var/spool/mail + fperms 03775 /var/spool/mail + dosym /var/spool/mail /var/mail + + newpamd "${FILESDIR}"/common-pamd-include pop + newpamd "${FILESDIR}"/common-pamd-include imap + if use pam ; then + local p + for p in pop3 pop3s pops ; do + dosym pop /etc/pam.d/${p} || die + done + for p in imap4 imap4s imaps ; do + dosym imap /etc/pam.d/${p} || die + done + fi +} + +get_permissions_oct() { + if [[ ${USERLAND} = GNU ]] ; then + stat -c%a "${ROOT}$1" + elif [[ ${USERLAND} = BSD ]] ; then + stat -f%p "${ROOT}$1" | cut -c 3- + fi +} + +pkg_postinst() { + # bug 614396 + if [[ "$(get_permissions_oct /var/spool/mail)" != "3775" ]] ; then + einfo "Fixing ${ROOT}var/spool/mail/ permissions" + chown root:mail "${ROOT}var/spool/mail/" + chmod 03775 "${ROOT}var/spool/mail/" + fi +} diff --git a/net-mail/mailbase/mailbase-1.3.ebuild b/net-mail/mailbase/mailbase-1.3.ebuild new file mode 100644 index 000000000000..6a3ab7e4c86d --- /dev/null +++ b/net-mail/mailbase/mailbase-1.3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit pam eutils user + +DESCRIPTION="MTA layout package" +SRC_URI="" +HOMEPAGE="https://www.gentoo.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="pam" + +RDEPEND="pam? ( virtual/pam )" + +S=${WORKDIR} + +pkg_setup() { + enewgroup mail 12 + enewuser mail 8 -1 /var/spool/mail mail + enewuser postmaster 14 -1 /var/spool/mail +} + +src_install() { + dodir /etc/mail + insinto /etc/mail + doins "${FILESDIR}"/aliases + insinto /etc + doins "${FILESDIR}"/mailcap + + keepdir /var/spool/mail + fowners root:mail /var/spool/mail + fperms 03775 /var/spool/mail + dosym spool/mail /var/mail + + newpamd "${FILESDIR}"/common-pamd-include pop + newpamd "${FILESDIR}"/common-pamd-include imap + if use pam ; then + local p + for p in pop3 pop3s pops ; do + dosym pop /etc/pam.d/${p} + done + for p in imap4 imap4s imaps ; do + dosym imap /etc/pam.d/${p} + done + fi +} + +get_permissions_oct() { + if [[ ${USERLAND} = GNU ]] ; then + stat -c%a "${ROOT}$1" + elif [[ ${USERLAND} = BSD ]] ; then + stat -f%p "${ROOT}$1" | cut -c 3- + fi +} + +pkg_postinst() { + # bug 614396 + if [[ "$(get_permissions_oct /var/spool/mail)" != "3775" ]] ; then + einfo "Fixing ${ROOT}var/spool/mail/ permissions" + chown root:mail "${ROOT}var/spool/mail/" + chmod 03775 "${ROOT}var/spool/mail/" + fi +} diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest index b22918c6ed00..3a1683d8b42b 100644 --- a/net-mail/notmuch/Manifest +++ b/net-mail/notmuch/Manifest @@ -6,10 +6,12 @@ DIST notmuch-0.25.1.tar.gz 882141 BLAKE2B dfc6c9e62012280e1c72378b39d6b8af3cefa7 DIST notmuch-0.25.2.tar.gz 882672 BLAKE2B 8bd90b87cf60a1eac8c331c4d67cfc511db91b5009c051fdf7d2612560ffaf11f1c51ca171f12f1cd9145ffa25ef402a5b2c72ad8efc4c22d68107ad31bb7d16 SHA512 5ee7bded69cbcc980e23f1e1562bf0cc9294c20bddcc3e442030c4f29373ecbbaef79144ad38470bfc97dac87f8dfb3bc7aee2d7eb974f6998f933369aa46006 DIST notmuch-0.25.3.tar.gz 883151 BLAKE2B 511f93c310e8b82f1b629735cbe626ab1ba8eabf23245ba4aa4c936d4c5d868d9e6d5b0d626f16ce6087245a293cf1acd8bb2e2dd0639729af4b92d558c78051 SHA512 1c0fcfdeb7a7eddcd10a8175676679ef6985407732d5bcc15edd327d9985017696cef3287c0398c628a604ae3fbab5d222d71537e37265cf6a594b4914e4599a DIST notmuch-0.25.tar.gz 882093 BLAKE2B ea0f5568ec0bf6a1d2c177468f4ec25fabfd416162c01a0d861e78164f15f2cc0176e1a012250a2a6bb45a6c7c2f6ffa651ad15776d44fed8ec191026b0f04c7 SHA512 5f4961818c8c0350e3fbbedd86f407a55fecf211971003a770d99ea2db89bb6b98c2294e114d6abff4d40985f506b7f4b52736a7ee5c78390eb4f2363a65c6f5 +DIST notmuch-0.26.1.tar.gz 906523 BLAKE2B da0b06361d586d84bea5c6e28adf7850dcb119e9f70ae67e06ff1438b9d20f4b04707d3e6ee6e755d569d15b8a720506b4c242c0c84258e8f5c8996caa62fc47 SHA512 f0d95a0f03535495037c73ab18d1251ece505284736efa5a535fe9bc8aea33954b5c87e5dcdfd30670c8df53178294be520a63e5b19beac7d90f166e616d19dd EBUILD notmuch-0.23.7.ebuild 4582 BLAKE2B 5e3d91233776f8bea407db340ad5ad083628f0d4d06849934e8dc78385acdb64bf2f9e1d804399636170f1524efc1b3d778a0ed5e4f2e32e01588b111947949f SHA512 abb5e69be4ee2405ec9e59683b040d7e6c2492403f3bff5d103cf2e957e9293a9f91b21a839d847e13f690b531c39b9e8df5eb6bf044e76ef26707800a47765e EBUILD notmuch-0.24.2.ebuild 4770 BLAKE2B 40bb192f400a0114976120b1b15294ce015d36637001e25a354aec5c686316e2045136091c71727ff003264be198780e132f7cce087310e5225a3a584d919a49 SHA512 d2a176d88df335783fcad6a397a44d6726c723f1d70fafafe986dadf138ba1410199a2b1347baf69d6589357c18931c1c9b791eb9437558ffb16afae9de3d654 EBUILD notmuch-0.25.1.ebuild 4772 BLAKE2B 42b44d62a5a98be224f06a02573cd24397e05889d9a9d3f8aea67dcd56db2b869feccd457ae27dd1ab323e97a8e5e50ca9f3782c5c00887f884d8250a06f54b8 SHA512 19f4076e1415ff6498cabc8b900e589652b94b4cfb0cbee47b7c52eedca26b747df1a3f4157e2ba123c3a350b3c5cafd00e1635d100aff701a0e19bc9e325845 EBUILD notmuch-0.25.2.ebuild 4849 BLAKE2B f3feb24632beb2d89bcf32d89e4f00d5813e62a1b6d5e8392458982e5d829dada98492cf778d46fe43d0df0618f7748d705d99f1c406683299c16f407b40c0d9 SHA512 76825642fd0d738345f2d9f2043d527c4d60d36b12cb5e44530af3190a9e7c760f1bd840744f8bec59b145a634d5207e7636413671b3914336acd881e0734623 EBUILD notmuch-0.25.3.ebuild 4849 BLAKE2B f3feb24632beb2d89bcf32d89e4f00d5813e62a1b6d5e8392458982e5d829dada98492cf778d46fe43d0df0618f7748d705d99f1c406683299c16f407b40c0d9 SHA512 76825642fd0d738345f2d9f2043d527c4d60d36b12cb5e44530af3190a9e7c760f1bd840744f8bec59b145a634d5207e7636413671b3914336acd881e0734623 EBUILD notmuch-0.25.ebuild 4849 BLAKE2B f3feb24632beb2d89bcf32d89e4f00d5813e62a1b6d5e8392458982e5d829dada98492cf778d46fe43d0df0618f7748d705d99f1c406683299c16f407b40c0d9 SHA512 76825642fd0d738345f2d9f2043d527c4d60d36b12cb5e44530af3190a9e7c760f1bd840744f8bec59b145a634d5207e7636413671b3914336acd881e0734623 +EBUILD notmuch-0.26.1.ebuild 4843 BLAKE2B 1c44fad5564715905905f067ff901b93ab24acdfc1a15c12a86dd020ddd0c6da8b729b18d40ab390442417604736a69497bc254cbead3606fc1741a7a32dd08d SHA512 700c71470ba40612225b11fef08e69ad4f1056016bfab9714c132c9e4842edeb9e6b53b465ddbb7fb9927d00d68f84f10071b465153e4c6ad8c5f519470c0fe2 MISC metadata.xml 1117 BLAKE2B 08710cbb42c20580235f5cfafa39715c33fb50de24cf98a182418db3c52ee1de5a1ee0e0775ae5756fee301c952995a1e7da52b9c13e5bd8c8b2fc0d1d74a5d2 SHA512 c420e475e5d16d35cceb1162c14eae143e5f539e771561d525af4ab0f0853e700b9a3209ee1a7aa9b4269c235737304c435d463cd8b1cf201402152ff0a6a4f3 diff --git a/net-mail/notmuch/notmuch-0.26.1.ebuild b/net-mail/notmuch/notmuch-0.26.1.ebuild new file mode 100644 index 000000000000..bcf492e422d9 --- /dev/null +++ b/net-mail/notmuch/notmuch-0.26.1.ebuild @@ -0,0 +1,208 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ + distutils-r1 toolchain-funcs + +DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" +HOMEPAGE="https://notmuchmail.org/" +SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz + test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )" + +LICENSE="GPL-3" +# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is +# meant to be binary backward compatible. +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~x86 ~x64-solaris" +REQUIRED_USE=" + nmbug? ( python ) + python? ( ${PYTHON_REQUIRED_USE} ) + test? ( crypt emacs python valgrind ) + " +IUSE="crypt doc emacs mutt nmbug python test valgrind" + +CDEPEND=" + !!=dev-libs/glib-2.22:2 + >=dev-libs/gmime-2.6.21:2.6 + >=dev-libs/xapian-1.2.7-r2:= + dev-python/sphinx[${PYTHON_USEDEP}] + >=sys-libs/zlib-1.2.5.2 + sys-libs/talloc + crypt? ( >=dev-libs/gmime-2.6.21:2.6[smime] ) + emacs? ( >=virtual/emacs-23 ) + python? ( ${PYTHON_DEPS} ) + " +DEPEND="${CDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2] + >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb + crypt? ( app-crypt/gnupg dev-libs/openssl ) ) + valgrind? ( dev-util/valgrind ) + " +RDEPEND="${CDEPEND} + crypt? ( app-crypt/gnupg ) + nmbug? ( dev-vcs/git ) + mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools + dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu + virtual/perl-Digest-SHA virtual/perl-File-Path virtual/perl-Getopt-Long + virtual/perl-Pod-Parser ) + " + +DOCS=( AUTHORS NEWS README ) +SITEFILE="50${PN}-gentoo.el" +MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" + +bindings() { + local ret=0 + + if use $1; then + pushd bindings/$1 || die + shift + "$@" + ret=$? + popd || die + fi + + return $ret +} + +pkg_pretend() { + if has_version '=notmuch-0.18. See NEWS file" + ewarn "(0.18 section) for details before first use!" + ewarn + fi +} + +pkg_setup() { + if use emacs; then + elisp-need-emacs 23 || die "Emacs version too low" + fi +} + +src_unpack() { + unpack "${P}".tar.gz + if use test; then + mkdir -p "${S}"/test/test-databases || die + cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test/test-databases/ || die + fi +} + +src_prepare() { + default + + bindings python distutils-r1_src_prepare + bindings python mv README README-python || die + mv contrib/notmuch-mutt/README contrib/notmuch-mutt/README-mutt || die + + # assure that new Makefile.config will be generated + rm -f Makefile.config || die + + if use test; then + append-cflags -g + append-cxxflags -g + fi + + [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket +} + +src_configure() { + local myeconfargs=( + --bashcompletiondir="$(get_bashcompdir)" + --emacslispdir="${EPREFIX}/${SITELISP}/${PN}" + --emacsetcdir="${EPREFIX}/${SITEETC}/${PN}" + --without-desktop + --without-ruby + --zshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" + $(use_with emacs) + $(use_with doc api-docs) + ) + tc-export CC CXX + econf "${myeconfargs[@]}" +} + +src_compile() { + V=1 default + bindings python distutils-r1_src_compile + + if use mutt; then + pushd contrib/notmuch-mutt || die + emake notmuch-mutt.1 + popd || die + fi + + if use doc; then + pydocs() { + pushd docs || die + emake html + rm -r html/_sources || die + rm html/{objects.inv,.buildinfo} || die + mkdir -p ../html && mv html ../html/python || die + popd || die + } + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" bindings python pydocs + fi +} + +src_test() { + pax-mark -m notmuch + LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default + pax-mark -ze notmuch +} + +src_install() { + default + + if use emacs; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die + fi + + if use nmbug; then + dobin devel/nmbug/nmbug + dobin devel/nmbug/notmuch-report + fi + + if use mutt; then + pushd contrib/notmuch-mutt || die + dobin notmuch-mutt + doman notmuch-mutt.1 + insinto /etc/mutt + doins notmuch-mutt.rc + dodoc README-mutt + popd || die + fi + + DOCS="" bindings python distutils-r1_src_install + use doc && bindings python dodoc -r html +} + +pkg_preinst() { + if use mutt && ! [[ -e ${ROOT}/etc/mutt/notmuch-mutt.rc ]]; then + elog "To enable notmuch support in mutt, add the following line into" + elog "your mutt config file, please:" + elog "" + elog " source /etc/mutt/notmuch-mutt.rc" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + + if has_version '=dev-libs/xapian-1.4." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} -- cgit v1.2.3