Permalink
Browse files

net-mail/cyrus-imapd-2.3.14-r4 with option to compile without Berkele…

…yDB and the fastmail.fm patches

Signed-off-by: W-Mark Kubacki <wmark@hurrikane.de>
  • Loading branch information...
1 parent 40e092e commit 4b8885e66fe66b74c274e225701ba9430c345c49 Dennis Fandrich committed with Oct 20, 2009
@@ -6,6 +6,7 @@ AUX cyrus-fastrename-2.3.12.diff 24112 RMD160 d3409dd93df160d6864407785d66ed67d6
AUX cyrus-findall-txn-2.3.12.diff 2694 RMD160 b3b86e572768c02be0124cefe60d10bb0c1563f2 SHA1 5dd81cb7f2eeeb923062e28260605fabfaca3afc SHA256 52c7652595e6a34b5ccb2a1d2fad7285d5d480f3a74ee2c7d8504157061101fc
AUX cyrus-folder-limit-2.3.12.diff 2485 RMD160 1bbded798c9ed474ad3058b1ff53b0a570888456 SHA1 b0425ec9c2bbebd616a76f7210b52cfb0ef7309e SHA256 eb62ccfad9b4f28ac922f4f9afb47beb564333c6e8b6cbfa09b068769f40f7a8
AUX cyrus-fromheader-2.3.3.diff 993 RMD160 5369b7febd92c1bfddb1f3b749ef6e059f1dfee4 SHA1 cc2905c5640ab2b45bbd3d50dcded45792a46d02 SHA256 9d8e61d41955b754f455959d8c88991450dde783b74bc55781028e55ffa82632
+AUX cyrus-imapd-2.2-libwrap.patch 390 RMD160 4ed2b14f549ccfab487cff66e5f2cb8ebdd39427 SHA1 0075421585a73f2673e3daff9a4c140d9cc5046e SHA256 2bddad2045130090ea23f5ad65d797cfa1f6083446bd00411cb1540cb56d4e0e
AUX cyrus-imapd-2.2.10-drac.patch 926 RMD160 7a587e2f756e6058262348d19c80fd27ad169a52 SHA1 bae33be47b618516caea435d52990abca38e6fe7 SHA256 9c9b297767ef787bc76fa134b178848695199b662860515f0157f59f726b5b84
AUX cyrus-imapd-2.2.10-libwrap.patch 390 RMD160 4ed2b14f549ccfab487cff66e5f2cb8ebdd39427 SHA1 0075421585a73f2673e3daff9a4c140d9cc5046e SHA256 2bddad2045130090ea23f5ad65d797cfa1f6083446bd00411cb1540cb56d4e0e
AUX cyrus-imapd-2.2.12-drac.patch 926 RMD160 7a587e2f756e6058262348d19c80fd27ad169a52 SHA1 bae33be47b618516caea435d52990abca38e6fe7 SHA256 9c9b297767ef787bc76fa134b178848695199b662860515f0157f59f726b5b84
@@ -14,6 +15,9 @@ AUX cyrus-imapd-2.2.12-libwrap.patch 390 RMD160 4ed2b14f549ccfab487cff66e5f2cb8e
AUX cyrus-imapd-2.2.13-backend.patch 833 RMD160 bce88727689f121ffb0b56af948789c67b20f1c8 SHA1 61ee51456370bf27e0a510bbed011224dcc0c2af SHA256 293f51e8d0aafb33f2b0a68efa162932acaaa20db01b2cfd8666c654e081a296
AUX cyrus-imapd-2.3.1-autoreply-0.1-0.diff 835 RMD160 cbd1cad6f61a017059e2580961ae6a79a262a4b0 SHA1 5bcbd5b4da987f32c2ffaaa52d2b87e4e52735ca SHA256 82f2584f030051e08f7c87b50126d6ec74f0b263567651a204af71ce2ba51156
AUX cyrus-imapd-2.3.1-drac.patch 896 RMD160 8f66ae7ca569964e45f4691cee04e5a078da27e0 SHA1 dec856045905f4f852f6c9748b0a9f5aed3f19c7 SHA256 d8f086c99750e0045215bcc96bf4abbbd1ad48b89b6767de17e3145df170dec0
+AUX cyrus-imapd-2.3.14-add-db47-support.patch 805 RMD160 18acd706ecdb14e8dc8713e1b66140fa13c65927 SHA1 e0008e89c924edb0f66587f2a312a06385a9a335 SHA256 09b275e21999355fea14ee173c9360658c02854b492c532b4bc58d301c387132
+AUX cyrus-imapd-2.3.14-bug283596-2.patch 2888 RMD160 668bb8caa2768fab0670818267d447d8dfd2ca74 SHA1 13dabf135e80283cf7fc0b59dc7978cdef097105 SHA256 bf231f56605b3d9da4ef591765a097d2cad558dc06b466e8df856934a32797ff
+AUX cyrus-imapd-2.3.14-fix-db-rpath.patch 1287 RMD160 bc4e98cfdd2c0be3091e728569540a7e1f17abc8 SHA1 97fcfbc3d7724f0ca1b9e3621a7609e53c631e6f SHA256 4443953d6042e8b521f59b62776d53c99f639f1c589f4b63d0ed94bbb5104a80
AUX cyrus-imapd-2.3.6-afs.patch 950 RMD160 c42d13e91664b6480a41f0a8afc136b2d0db96b2 SHA1 f0d580b716da43c466dca594daa6f7e94c6291d2 SHA256 72e74e008c9e8bf63e2c8feef542f62e73730e6aafb7d4a2c895671b7b0a6482
AUX cyrus-imapd-2.3.6-drac.patch 907 RMD160 e32a085c57158c580a3a4414101dbcecaf481614 SHA1 6bff857f8fcc5a87f25a8e6ef5c805fa20a8e4b4 SHA256 0a70c14427714fcebfbf123b8d1254bb0069745ec3abe6ebd0ae0323f911e85f
AUX cyrus-imapd-2.3.6-unsupported-8bit.patch 3438 RMD160 ff0a00a4a84b90df17c1659ee638d155428ef43c SHA1 a765885b70a11ec93434c9c36deaac3f17368df0 SHA256 200289b5213242b57274193497a92abd526a83fc488d174468275ca857b7de3e
@@ -30,13 +34,20 @@ AUX cyrus-writefullheader-2.3.10.diff 6072 RMD160 7c29cb9f27e599d7412f77a5e57e1f
AUX cyrus.conf 1448 RMD160 b89afdf496fb1a45968cbd0e6941d261faeb84db SHA1 8228af150d4ea035316bcbdea2b1d3632903501f SHA256 f90c610b478d8c0d9c2bcb09b66aba122130d4d7465181093d4df27d41d959d0
AUX cyrus.confd 279 RMD160 da79ff4128869a045b432abc9cea6667b65ee69a SHA1 6d2d3417b678c77336a4b89db3507314302fe4eb SHA256 3e786c28ffc44a222214b22d8849728360edc37f4b3f7d7c1473a23ab58c28a9
AUX cyrus.pam-include 109 RMD160 24f82d0496f0ff94f9c1ee4cef14124909d361e5 SHA1 1a13c82008b6d59bb9236a8162c75f8d24d6c4ba SHA256 d4ef9ed9c7c9add97df75f0e19a833bee872d3863a2b3cb1d0674fefba54e3d8
-AUX cyrus.rc6 573 RMD160 1ca59773442962d47cf1c9899730410e168b563f SHA1 26d52c17d76948589bed7b8d82c1f8570d141672 SHA256 c5534ef121f1c509f0005846b10df12f32e11c282656bf48699c2b457a40e187
+AUX cyrus.rc6 568 RMD160 0494dc278b3c93f49018392694a809f1ec395459 SHA1 22e6f03d9365d0fef4af9236d9cd01ae0b94a67f SHA256 f2f796f1ab208bcd5641a1610b07673f92069e6f5b2370f453e3a24014ab2c6c
AUX imap.pam 195 RMD160 18585b20cc2568a000ecb381f3299dedcc737d27 SHA1 0e64fbb8fb8da0cdae6fb0820ee3048f1e30bbf6 SHA256 e8068af6f4141fe2b7d7afbaf241be779ad6edb7e03d4dfdcf7ca8e991a8a5e0
-AUX imapd.conf 1628 RMD160 79bfb43ddf30f39ce8abf66ef6fcc40cac77a124 SHA1 dfbb3b32753c9c2adc8fe4bbac215e7345f3c370 SHA256 b11e14304450c9923f6a7483a09f08bb9497e21514b5a664855e2b771fcbe684
+AUX imapd.conf 1725 RMD160 99bd5d2e1a8ca59e0f1a79863bcbb4ded0cb9cb4 SHA1 252444a584d26fdf42bc17f9185e1c3e32c9852f SHA256 d7b7bdc75e12e593a0a18498bc68a3f9bc046225b3413d41a1be29dedbcf4f31
+AUX kolab/2.3.14/Annotations2.patch 11178 RMD160 80b327392731fa0fd06ef8fcf34985489582e334 SHA1 b7f9f1d89b5a14efb1cae6a29f2b81bbea4aa81a SHA256 befae23d2873fa8fc0f42817e12d451dee884c4431b45ef0cdd25dfe474eed87
+AUX kolab/2.3.14/Folder-names.patch 756 RMD160 83bba85afbe801dd332c0b823d0ccbe6ec0295d2 SHA1 dd68964df36cc1bf63034b9b13b563aae0d9a953 SHA256 fd3a111dcba98cf6dbdf1578ea4071f72f947701a9bac5251132d47607031704
+AUX kolab/2.3.14/Groups2.patch 6832 RMD160 e83ca372109e26a2b2f7101cd222bb79ed0e2be5 SHA1 f05b3c0702faab6d07b95710bb917680c69380c8 SHA256 629024b3558c10650543a5dd051b3714f2ae5ae9e13ffa5a4e988d63901c6f15
+AUX kolab/2.3.14/Logging.patch 1880 RMD160 a69ccc5fba3e200c5cf4bd91c22b5a7e9713038e SHA1 79ddbb6b9af2f0c93b8f9ee732ca2639c9567943 SHA256 76a4eb6cd59564f55bb541a35b4e7f5fbd8beabf8072580c0bc514d710c3879b
+AUX kolab/2.3.14/UID.patch 4328 RMD160 24a8e27218923e4284815439c889c208fbfc8be0 SHA1 e8a532d5f0462b07a90ff55f750ed313ec50141c SHA256 725a753fe877fb0bf257ef6968e64f15ad8758fbe9993dab310c0bbfb0b2c1b9
+AUX kolab/2.3.14/timsieved_starttls-sendcaps.patch 849 RMD160 88fd0aff780cd21f61b7e1ffd8dcc7321fd1f6cd SHA1 f543dbaae4af33913f5247fadfdcd5cc34f3c96b SHA256 f4706fd7a09a95371b62ffe6651d2ac4d1c4105f4d66c5d4eb7b44593cec5814
DIST cyrus-imapd-2.2.13.tar.gz 2109770 RMD160 7e8ac84b5ddd9f1206e71d5b659d07d8400f9ac2 SHA1 ba84b67a1cae4c15d5a588d010764031167970c4 SHA256 109e85b901bfcdbdd6a76d7cac83af866aa9c37a40919be7f58813319082d09c
DIST cyrus-imapd-2.3.11.tar.gz 2275173 RMD160 34727e08cc25f3cb6e0ea0195b96de942de10f48 SHA1 6218f0dc4f1792e786677362b8b3965e4593122e SHA256 87ce58b28ed1f8974118c02ac009377bb3de62adccd699a67f0100158106d842
DIST cyrus-imapd-2.3.12p2.tar.gz 2305996 RMD160 35225526aaf67bf99855750debd03a85949de424 SHA1 d72064b426feb0d7d6ea60456c8ebbf6fe72a2a2 SHA256 c4ea8af68d2b14d93f662fc97f805450ef0cb98ddb986b2b7330cb4aba93c4c4
DIST cyrus-imapd-2.3.13.tar.gz 2328467 RMD160 dfcc8efaf5f3495b8fc83834541c92b6481e28de SHA1 95877dc1e1da5d268b1c248357fbd05749fac72e SHA256 f651c3f5112d3aefa5ab5250f9cb9bb012046a0c3bd72eabb82da9dde1150fba
+DIST cyrus-imapd-2.3.14.tar.gz 2348808 RMD160 03fd8bdef669786f58ddf8b3fa0e0a57b2ee6b69 SHA1 cf046e2399b5ae84c654c6ab04eb047341d93002 SHA256 fd840403c1f25adda8f003ea59169e2c87210c4e60ca47c498bda7060ed097a0
DIST cyrus-imapd-2.3.6.tar.gz 2250241 RMD160 c7a07a2e95ca08d0348ce7de2849d56e21341eb0 SHA1 adbd02f629d38152a1380360a7348f79261aa078 SHA256 6fc963c7d1f34b3b3368bb14f3604c7309e1f42d157e871bc186f8832e1a9cbd
DIST cyrus-imapd-2.3.7-uoa.tbz2 17788 RMD160 22f2aa3f0755bc924e9bef8613e59924b3d971a6 SHA1 678eea9049058ad7ea8e34da51034f3d70b0f92e SHA256 5a79970e70af26525d48c279ed53267c6a285bc259bf9201ff289a4c1050aca7
DIST cyrus-imapd-2.3.8.tar.gz 2207366 RMD160 e89054f75f106c26f497bc37f7d514b0bf80bfe0 SHA1 c671f631753a138b9fa9b5bed7efa46adc8b4e3e SHA256 0f5c04a7de2da737e5ca0b4f8df8647175188b22972000192bbc7cd87ffda7fe
@@ -45,6 +56,7 @@ EBUILD cyrus-imapd-2.2.13.ebuild 9385 RMD160 9980028ba5b107eab281eabb0562fdf5a39
EBUILD cyrus-imapd-2.3.11.ebuild 7955 RMD160 293de8a7ec9d447a688e70f86ec326451dca0fa1 SHA1 96b8551a5e198076883851215491a7487a5c7aa3 SHA256 cfd7aec16f06e01a944bf1fd7491aa7c1272d7b600cfab54a8dcced68f7424ea
EBUILD cyrus-imapd-2.3.12_p2.ebuild 8972 RMD160 56a61573bbbaa7b8e8b5d87f42ac378748799473 SHA1 54de3e40d4b3f97f56629a73123ed13cefe5eea9 SHA256 060b468022fabff4aa3d20c11b5a3887d0986c2c55586fc4bd673b5f047c9bc3
EBUILD cyrus-imapd-2.3.13-r1.ebuild 8797 RMD160 d9b962004372eb79936afae9973c3337a7e4644e SHA1 8b42b1a339414481509c592d6ef0dfbdd90ac2ea SHA256 f2f0be7afbac0cd3f6d604a4215aa9fff92c2ea65915c6f3d3afbf3c70deadfa
+EBUILD cyrus-imapd-2.3.14-r4.ebuild 8858 RMD160 da1d3e0e93ef7d64e0d28d56d4b40abddb166f69 SHA1 53101fa425233a51b9c236562a049ed3c19fe085 SHA256 ce0bcc854e827f6b1eb290077a923d3cdd9e75d93f46f42e95f73fa88457744a
EBUILD cyrus-imapd-2.3.6-r1.ebuild 8383 RMD160 82c547904aed5b8d2284abbc7c68cfc34f12f8dd SHA1 66758f9d8b6ba2e7979987430996246dd68cbe9e SHA256 1758c30b13ca25afc5ff79aa1178cf308bbbcad0e45514e494ecbfa3a0e00442
EBUILD cyrus-imapd-2.3.6.ebuild 8240 RMD160 01afc9b7b3994928708f9f61fb74ff9e3dfb3515 SHA1 24bd2a7ff6355d241ab70a0ba06404feb933bccf SHA256 817362b455ce303d8e4472ba17b91ce87be6a83bae4e840cf82c532e1f2cceac
EBUILD cyrus-imapd-2.3.8.ebuild 8240 RMD160 ebba1ba83ffa7c3409d43e3b86dbd33f91d91cd3 SHA1 08267613125ff9c0c6786534c0592713d5b3d66e SHA256 d40106aa6434b9ed8e2fcf3f363c6bc14480fbd6c7761aaa459229687047e161
@@ -0,0 +1,299 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=1
+
+inherit autotools db-use eutils flag-o-matic ssl-cert fixheadtails pam multilib
+
+MY_P=${P/_/}
+
+DESCRIPTION="The Cyrus IMAP Server."
+HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/"
+SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${MY_P}.tar.gz"
+LIBWRAP_PATCH_VER="2.2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
+IUSE="idled kerberos kolab nntp pam replication +sieve snmp ssl tcpd fastmail -berkdb"
+
+PROVIDE="virtual/imapd"
+RDEPEND="berkdb? ( >=sys-libs/db-3.2 )
+ >=dev-libs/cyrus-sasl-2.1.13
+ pam? (
+ virtual/pam
+ >=net-mail/mailbase-1
+ )
+ kerberos? ( virtual/krb5 )
+ snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 )
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ kolab? ( net-nds/openldap )
+ nntp? ( !net-nntp/leafnode )"
+
+DEPEND="$RDEPEND
+ sys-devel/libtool
+ >=sys-devel/autoconf-2.58
+ sys-devel/automake"
+
+RDEPEND="$RDEPEND
+ !virtual/imapd"
+
+new_net-snmp_check() {
+ # tcpd USE flag check. Bug #68254.
+ if use tcpd ; then
+ if has_version net-analyzer/net-snmp && ! built_with_use net-analyzer/net-snmp tcpd ; then
+ eerror "You are emerging this package with USE=\"tcpd\""
+ eerror "but \"net-analyzer/net-snmp\" has been emerged with USE=\"-tcpd\""
+ fail_msg
+ fi
+ else
+ if has_version net-analyzer/net-snmp && built_with_use net-analyzer/net-snmp tcpd ; then
+ eerror "You are emerging this package with USE=\"-tcpd\""
+ eerror "but \"net-analyzer/net-snmp\" has been emerged with USE=\"tcpd\""
+ fail_msg
+ fi
+ fi
+ # DynaLoader check. Bug #67411
+
+ if [ -x "$(type -p net-snmp-config)" ]; then
+ einfo "$(type -p net-snmp-config) is found and executable."
+ NSC_AGENTLIBS="$(net-snmp-config --agent-libs)"
+ einfo "NSC_AGENTLIBS=\""${NSC_AGENTLIBS}"\""
+ if [ -z "$NSC_AGENTLIBS" ]; then
+ eerror "NSC_AGENTLIBS is null"
+ einfo "please report this to bugs.gentoo.org"
+ fi
+ for i in ${NSC_AGENTLIBS}; do
+ # check for the DynaLoader path.
+ if [ "$(expr "$i" : '.*\(DynaLoader\)')" == "DynaLoader" ] ; then
+ DYNALOADER_PATH="$i"
+ einfo "DYNALOADER_PATH=\""${DYNALOADER_PATH}"\""
+ if [[ ! -f "${DYNALOADER_PATH}" ]]; then
+ eerror "\""${DYNALOADER_PATH}"\" is not found."
+ einfo "Have you upgraded \"perl\" after"
+ einfo "you emerged \"net-snmp\". Please re-emerge"
+ einfo "\"net-snmp\" then try again. Bug #67411."
+ die "\""${DYNALOADER_PATH}"\" is not found."
+ fi
+ fi
+ done
+ else
+ eerror "\"net-snmp-config\" not found or not executable!"
+ die "You have \"net-snmp\" installed but \"net-snmp-config\" is not found or not executable. Please re-emerge \"net-snmp\" and try again!"
+ fi
+}
+
+fail_msg() {
+ eerror "enable "snmp" USE flag for this package requires"
+ eerror "that net-analyzer/net-snmp and this package both build with"
+ eerror "\"tcpd\" or \"-tcpd\". Bug #68254"
+ die "sanity check failed."
+}
+
+pkg_setup() {
+ use snmp && new_net-snmp_check
+ enewuser cyrus -1 -1 /usr/cyrus mail
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A} && cd "${S}"
+
+ ht_fix_file "${S}"/imap/xversion.sh
+
+ # Fix prestripped binaries
+ epatch "${FILESDIR}/${PN}-strip.patch"
+
+ epatch "${FILESDIR}/${P}-bug283596-2.patch"
+
+ if use kolab ; then
+ EPATCH_SOURCE="${FILESDIR}/kolab/${PV}" EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" epatch
+ # These files are being created automatically and need to be updated
+ # # after the patches used above
+ rm -f lib/imapopts.h lib/imapopts.c
+ fi
+
+ # Add libwrap defines as we don't have a dynamicly linked library.
+ use tcpd && epatch "${FILESDIR}/${PN}-${LIBWRAP_PATCH_VER}-libwrap.patch"
+
+ # patches from fastmail.fm
+ if use fastmail ; then
+ if use berkdb ; then
+ epatch "${FILESDIR}/cyrus-findall-txn-2.3.12.diff"
+ epatch "${FILESDIR}/cyrus-folder-limit-2.3.12.diff"
+ fi
+ epatch "${FILESDIR}/cyrus-skiplist-tuning-2.3.10.diff"
+ epatch "${FILESDIR}/cyrus-fromheader-2.3.3.diff"
+ epatch "${FILESDIR}/cyrus-imapd-2.3.1-autoreply-0.1-0.diff"
+ epatch "${FILESDIR}/cyrus-mailwasher-2.3.6.diff"
+ epatch "${FILESDIR}/cyrus-receivedtime-2.3.8.diff"
+ epatch "${FILESDIR}/cyrus-warnmismatchedguid-2.3.10.diff"
+ epatch "${FILESDIR}/cyrus-digest-sha1-2.3.11.diff"
+ fi
+
+
+ # Fix master(8)->cyrusmaster(8) manpage.
+ for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do
+ sed -i -e 's:master\.8:cyrusmaster.8:g' \
+ -e 's:master(8):cyrusmaster(8):g' \
+ "${i}" || die "sed failed" || die "sed failed"
+ done
+ mv man/master.8 man/cyrusmaster.8 || die "mv failed"
+ sed -i -e "s:MASTER:CYRUSMASTER:g" \
+ -e "s:Master:Cyrusmaster:g" \
+ -e "s:master:cyrusmaster:g" \
+ man/cyrusmaster.8 || die "sed failed"
+
+ # Remove unwanted m4 files
+ rm "cmulocal/ax_path_bdb.m4" || die "Failed to remove cmulocal/ax_path_bdb.m4"
+
+ # Add db-4.7 support
+ epatch "${FILESDIR}/${P}-add-db47-support.patch"
+ # Fix RPATH issues
+ epatch "${FILESDIR}/${P}-fix-db-rpath.patch"
+
+ # Recreate configure.
+ WANT_AUTOCONF="2.5"
+ AT_M4DIR="cmulocal" eautoreconf
+
+ # When linking with rpm, you need to link with more libraries.
+ sed -i -e "s:lrpm:lrpm -lrpmio -lrpmdb:" configure || die "sed failed"
+
+ if use kolab ; then
+ sed -i -e "s/{LIB_SASL}/{LIB_SASL} -lldap -llber /" configure || die
+ "sed failed"
+ fi
+}
+
+src_compile() {
+ local myconf
+ myconf="${myconf} $(use_with ssl openssl)"
+ myconf="${myconf} $(use_with snmp ucdsnmp)"
+ myconf="${myconf} $(use_with tcpd libwrap)"
+ myconf="${myconf} $(use_enable kerberos gssapi) $(use_enable kerberos krb5afspts)"
+ myconf="${myconf} $(use_enable idled)"
+ myconf="${myconf} $(use_enable nntp)"
+ myconf="${myconf} $(use_enable replication)"
+
+ if use berkdb; then
+ myconf="${myconf} --with-bdb=$(db_libname)"
+ ewarn "Make sure you did upgrade berkeley-db files correctly or cyrus won't work."
+ else
+ myconf="${myconf} --with-bdb=no"
+ fi
+
+ if use kerberos; then
+ myconf="${myconf} --with-krb=$(krb5-config --prefix) --with-krbdes=no"
+ else
+ myconf="${myconf} --with-krb=no"
+ fi
+
+ econf \
+ --enable-murder \
+ --enable-listext \
+ --enable-netscapehack \
+ --with-extraident=Hurrikane \
+ --with-service-path=/usr/$(get_libdir)/cyrus \
+ --with-cyrus-user=cyrus \
+ --with-cyrus-group=mail \
+ --with-com_err=yes \
+ --without-perl \
+ ${myconf} || die "econf failed"
+
+ # needed for parallel make. Bug #72352.
+ cd "${S}"/imap
+ emake xversion.h || die "emake xversion.h failed"
+
+ # -j1 for #222529
+ cd "${S}"
+ emake -j1 || die "compile problem"
+}
+
+src_install() {
+ local SUBDIRS
+
+ if use sieve; then
+ SUBDIRS="master imap imtest timsieved notifyd sieve"
+ else
+ SUBDIRS="master imap imtest"
+ fi
+
+ dodir /usr/bin /usr/lib
+ for subdir in ${SUBDIRS}; do
+ make -C "${subdir}" DESTDIR="${D}" install || die "make install failed"
+ done
+
+ # Link master to cyrusmaster (postfix has a master too)
+ dosym /usr/lib/cyrus/master /usr/lib/cyrus/cyrusmaster
+
+ if ! use nntp ; then
+ rm man/fetchnews.8 man/syncnews.8 man/nntpd.8 man/nntptest.1
+ rm "${D}"/usr/bin/nntptest
+ fi
+
+ doman man/*.[0-8]
+ dodoc COPYRIGHT README*
+ dohtml doc/*.html doc/murder.png
+ cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html"
+ cp -r contrib tools "${D}/usr/share/doc/${PF}"
+ find "${D}/usr/share/doc" -name CVS -print0 | xargs -0 rm -rf
+
+ insinto /etc
+ doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf"
+
+ newinitd "${FILESDIR}/cyrus.rc6" cyrus
+ newconfd "${FILESDIR}/cyrus.confd" cyrus
+ newpamd "${FILESDIR}/cyrus.pam-include" sieve
+
+ for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do
+ keepdir "/var/${subdir}"
+ fowners cyrus:mail "/var/${subdir}"
+ fperms 0750 "/var/${subdir}"
+ done
+ for subdir in imap/{user,quota,sieve} spool/imap ; do
+ for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do
+ keepdir "/var/${subdir}/${i}"
+ fowners cyrus:mail "/var/${subdir}/${i}"
+ fperms 0750 "/var/${subdir}/${i}"
+ done
+ done
+}
+
+pkg_postinst() {
+ # do not install server.{key,pem) if they are exist.
+ use ssl && {
+ if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then
+ install_cert /etc/ssl/cyrus/server
+ chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem}
+ fi
+ }
+
+ if df -T /var/imap | grep -q ' ext2 ' ; then
+ ebegin "Making /var/imap/user/* and /var/imap/quota/* synchronous."
+ chattr +S /var/imap/{user,quota}{,/*}
+ eend $?
+ fi
+
+ if df -T /var/spool/imap | grep -q ' ext2 ' ; then
+ ebegin "Making /var/spool/imap/* synchronous."
+ chattr +S /var/spool/imap{,/*}
+ eend $?
+ fi
+
+ ewarn "If the queue directory of the mail daemon resides on an ext2"
+ ewarn "filesystem you need to set it manually to update"
+ ewarn "synchronously. E.g. 'chattr +S /var/spool/mqueue'."
+ echo
+
+ elog "For correct logging add the following to /etc/syslog.conf:"
+ elog " local6.* /var/log/imapd.log"
+ elog " auth.debug /var/log/auth.log"
+ echo
+
+ elog "You have to add user cyrus to the sasldb2. Do this with:"
+ elog " saslpasswd2 cyrus"
+}
@@ -0,0 +1,11 @@
+--- master/Makefile.in.orig 2004-10-17 19:48:01.923901016 -0700
++++ master/Makefile.in 2004-10-17 19:48:33.639079576 -0700
+@@ -59,7 +59,7 @@
+
+ CFLAGS = @CFLAGS@
+ LDFLAGS = @LDFLAGS@ @COM_ERR_LDFLAGS@
+-LIBS = ../lib/libcyrus_min.a @LIB_UCDSNMP@ @LIBS@ @COM_ERR_LIBS@
++LIBS = ../lib/libcyrus_min.a @LIB_UCDSNMP@ @LIBS@ @COM_ERR_LIBS@ @LIB_WRAP@
+
+ SHELL = /bin/sh
+ MAKEDEPEND = @MAKEDEPEND@
@@ -0,0 +1,12 @@
+diff -Naur cmulocal.orig/berkdb.m4 cmulocal/berkdb.m4
+--- cmulocal.orig/berkdb.m4 2007-08-15 19:18:01.000000000 +0200
++++ cmulocal/berkdb.m4 2009-07-07 19:34:55.000000000 +0200
+@@ -213,7 +213,7 @@
+ fi
+
+ saved_LIBS=$LIBS
+- for dbname in ${with_bdb} db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
++ for dbname in ${with_bdb} db-4.7 db4.7 db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
+ do
+ LIBS="$saved_LIBS -l$dbname"
+ AC_TRY_LINK([#include <stdio.h>
Oops, something went wrong.

0 comments on commit 4b8885e

Please sign in to comment.