diff options
author | Eray Aslan <eras@gentoo.org> | 2016-05-21 14:36:49 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2016-05-21 14:36:49 +0000 |
commit | 6fef20b67b7f21d84a0a80c389cb61c9e04425cc (patch) | |
tree | f1feab5cc9c3cd3c3487e25398deb2266ab2dbde /net-mail | |
parent | net-mail/cyrus-imapd: version bump to cyrus-imapd-2.5.8 (diff) | |
download | gentoo-6fef20b67b7f21d84a0a80c389cb61c9e04425cc.tar.gz gentoo-6fef20b67b7f21d84a0a80c389cb61c9e04425cc.tar.bz2 gentoo-6fef20b67b7f21d84a0a80c389cb61c9e04425cc.zip |
net-mail/cyrus-imapd: remove old
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/cyrus-imapd/Manifest | 3 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.5.4.ebuild | 176 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.5.5.ebuild | 176 | ||||
-rw-r--r-- | net-mail/cyrus-imapd/cyrus-imapd-2.5.6.ebuild | 178 |
4 files changed, 0 insertions, 533 deletions
diff --git a/net-mail/cyrus-imapd/Manifest b/net-mail/cyrus-imapd/Manifest index ffa756f2d8ee..4be7b14cf47d 100644 --- a/net-mail/cyrus-imapd/Manifest +++ b/net-mail/cyrus-imapd/Manifest @@ -1,8 +1,5 @@ DIST cyrus-imapd-2.4.16.tar.gz 2484201 SHA256 beac9d6059680bbf65948db60a30c6e8f59786df4a7821c70dc27b2a225f32c4 SHA512 31931e94ebe869516f10886cee5ab152fb6d6376bf009250718077732c6172a6430f3502370e15e94f6165500e5b4108623bceea7c0dcfb3eb746e9ff0fcffab WHIRLPOOL 1e9916d03448e7f036aa6320af69a7ae57ae37205f98d4cfee8c335d9dcdc1c09ba243f4506036da4ca17f859f5c7eef0cb56443dfe51ad3075f0e4d62874fcb DIST cyrus-imapd-2.4.17.tar.gz 2486355 SHA256 b3e30052c764ee7163947ffde27bdd58bd4dd2e5697ad144491941e46300a583 SHA512 86ffe1664ca3c3df164ed8fca21cc08ddae12380e1485deccec7da4ec263d8b953a806e05f0b10f6fb7717a0d40fc05669792b77cc66d7c5067061c8506e59ee WHIRLPOOL 22566578217a5901793b886ff020aa1deecbb81bf85f54a524b58de129029e51b0aa358db902a2139584d05f668404cb98ca2ff3fa33803ce986e07b95c69c45 DIST cyrus-imapd-2.4.18.tar.gz 2495098 SHA256 166a0a1efbf01f71d9d8449569152b3cda4949cd689f299a5e77a38d7026012c SHA512 3b234c1773fe5d57cae35743985930bc7fed2eedaa0919598da8fb19588f95b3beb8ad166d3b4f0c96faf006ff56ed5027ec516fab6007edbe46c4f45572a1ef WHIRLPOOL 1a243a9b3875105dfc414e1092f328691b6bef7c0d04f8bd91824ca0d01c715ebc2449c37bbca2ab86193e4d2dc426b33cfd31a0cdfdea0bacc081fd9010b1df -DIST cyrus-imapd-2.5.4.tar.gz 3070894 SHA256 98839d2865c0ff5c5dc0f59aba54ad111135697c3383919e037651d90f00aaaa SHA512 0bc78bf63560cc0d89f0ef4a5f6a160300cbb1090394d6bc62f51a0d73ea3615a1ecbf95cb6dab9d10c99afd3a95079a6df86a8157042e13bf907bb4eca94423 WHIRLPOOL 02ee9a685e6825473e9643e70ad4e22e22a9b6e263ec81692ff0d9e68c3b1b07b5ed1cdb1bbf4119242429779fe0435d9ae00651fbaec465308ac8bdf96650eb -DIST cyrus-imapd-2.5.5.tar.gz 2940177 SHA256 6cfd45856c869921fa8f89da9be9d5c640757011a678f964252e95a753182eee SHA512 86a0af8f84172104e1836372e4a0c0503b89dfd391a83e29d18f315162abadf00ddc939c5fcb1ee01a244addaba5a2d90b4c3065313b557edbd977ab8c0b3ce5 WHIRLPOOL 34e887140a0923ce4de9d6142c1ec1ae7c1831746d6c92570876448cfef84368fffbe41c11955912ba4d1e89eaf4255f85a60a26f76f2be7867f8713ca52fa9a -DIST cyrus-imapd-2.5.6.tar.gz 2938962 SHA256 60f9be717c17497e7d69f468a8da3daf926c49edeac958bc769b4547f10103df SHA512 7f5c758559cfe85217d1ba423004815c9af146e2dffc0b7596713690e00e79c5af971afe086584255163bc2ccc9abf1428899495df4c7584e7fa46b96bab2be8 WHIRLPOOL 5cd152304e029a303cb99a095274288f7093e05b525b9fa4ac55a435910d86d569d803bb00d538c6ebcdb6665bd940ccf30870fb34dfff411fb22ab0547f53c8 DIST cyrus-imapd-2.5.7.tar.gz 2928358 SHA256 f06c2c030b16b70145fecdf7edaa0f2ef6bf690b0d8fd6e2c62d95af303d68da SHA512 7514779cb3e36fb76bddfd12c7ec8d986609af671f8a1f0f3ae5007f5a7aa80c3c440bfbc8e7766d4de178dd5aa704076401b35cb5f03a2e25d2ea97ccbc7642 WHIRLPOOL 4db36b3fb27751d15cb74e63272c0adaa8348a90d7e9c4cb9c027837477e22347fce912b3e73c669a30a6b0c9de879644f146f7261eacd90fd237218051e1777 DIST cyrus-imapd-2.5.8.tar.gz 3069068 SHA256 664dd0a4eccfbf810ec74ccac1766c64e7db87f028f9066ae135390ab0d5c888 SHA512 e9c94696b980c7b10c52ee2c46f2dbdadc633a63ad943ebd5002c2052b13a64d8917e4e0ac4e4ae44a1f553e1fda02010840c9053c936374c06c7e88e09302ef WHIRLPOOL e8dcf43e694a8f91ab610d831ecddd516ebf1773b7543b15ba1b0e32fae7388681a9e0698951862efebb01e4894e6f40b29eae665dd36f16bf26d31583fe9822 diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.4.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.4.ebuild deleted file mode 100644 index ed147aab046c..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.5.4.ebuild +++ /dev/null @@ -1,176 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -inherit autotools eutils multilib pam ssl-cert user toolchain-funcs - -MY_P=${P/_/} - -DESCRIPTION="The Cyrus IMAP Server" -HOMEPAGE="http://www.cyrusimap.org/" -SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" - -LICENSE="BSD-with-attribution" -SLOT="0" -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \ - replication +server sieve snmp sqlite ssl static-libs tcpd" - -# virtual/mysql-5.5 added for the --variable= option below -DEPEND="sys-libs/zlib - dev-libs/libpcre - >=dev-libs/cyrus-sasl-2.1.13 - dev-libs/jansson - afs? ( net-fs/openafs ) - berkdb? ( >=sys-libs/db-3.2:* ) - clamav? ( app-antivirus/clamav ) - http? ( dev-libs/libxml2 dev-libs/libical ) - kerberos? ( virtual/krb5 ) - mysql? ( >=virtual/mysql-5.5 ) - nntp? ( !net-nntp/leafnode ) - pam? ( - virtual/pam - >=net-mail/mailbase-1 - ) - postgres? ( dev-db/postgresql:* ) - snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( >=dev-libs/openssl-1.0.1e:* ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )" - -# all blockers really needed? -RDEPEND="${DEPEND} - !mail-mta/courier - !net-mail/bincimap - !net-mail/courier-imap - !net-mail/uw-imap" - -REQUIRED_USE="afs? ( kerberos )" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - enewuser cyrus -1 -1 /usr/cyrus mail -} - -src_prepare() { - epatch "${FILESDIR}/${PN}-db.patch" - # 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" - - # lock.h to afs/lock.h - sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ - ptclient/afskrb.c || die - - eautoreconf -} - -src_configure() { - local myconf - if use afs ; then - myconf+=" --with-afs-libdir=/usr/$(get_libdir)" - myconf+=" --with-afs-incdir=/usr/include/afs" - fi - econf \ - --enable-murder \ - --enable-netscapehack \ - --enable-idled \ - --enable-event-notification \ - --enable-autocreate \ - --enable-pcre \ - --with-service-path=/usr/$(get_libdir)/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-sasl \ - --without-krb \ - --without-krbdes \ - --with-zlib \ - $(use_enable afs) \ - $(use_enable afs krb5afspts) \ - $(use_with berkdb bdb) \ - $(use_with clamav) \ - $(use_enable nntp) \ - $(use_enable replication) \ - $(use_enable kerberos gssapi) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with perl) \ - $(use_with sqlite) \ - $(use_with ssl openssl) \ - $(use_enable server) \ - $(use_enable sieve) \ - $(use_with snmp) \ - $(use_enable static-libs static) \ - $(use_with tcpd libwrap) \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" INSTALLDIRS=vendor install - - dodoc README* - dohtml doc/*.html - docinto text - dodoc doc/text/* - cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" - cp -r contrib tools "${D}/usr/share/doc/${PF}" - rm -f doc/text/Makefile* - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - # turn off sieve if not installed - if ! use sieve; then - sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die - fi - - 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_preinst() { - if ! has_version ${CATEGORY}/${PN} ; then - 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" - fi -} - -pkg_postinst() { - # do not install server.{key,pem) if they exist. - if use ssl ; then - 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 - fi -} diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.5.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.5.ebuild deleted file mode 100644 index ed147aab046c..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.5.5.ebuild +++ /dev/null @@ -1,176 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -inherit autotools eutils multilib pam ssl-cert user toolchain-funcs - -MY_P=${P/_/} - -DESCRIPTION="The Cyrus IMAP Server" -HOMEPAGE="http://www.cyrusimap.org/" -SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" - -LICENSE="BSD-with-attribution" -SLOT="0" -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \ - replication +server sieve snmp sqlite ssl static-libs tcpd" - -# virtual/mysql-5.5 added for the --variable= option below -DEPEND="sys-libs/zlib - dev-libs/libpcre - >=dev-libs/cyrus-sasl-2.1.13 - dev-libs/jansson - afs? ( net-fs/openafs ) - berkdb? ( >=sys-libs/db-3.2:* ) - clamav? ( app-antivirus/clamav ) - http? ( dev-libs/libxml2 dev-libs/libical ) - kerberos? ( virtual/krb5 ) - mysql? ( >=virtual/mysql-5.5 ) - nntp? ( !net-nntp/leafnode ) - pam? ( - virtual/pam - >=net-mail/mailbase-1 - ) - postgres? ( dev-db/postgresql:* ) - snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( >=dev-libs/openssl-1.0.1e:* ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )" - -# all blockers really needed? -RDEPEND="${DEPEND} - !mail-mta/courier - !net-mail/bincimap - !net-mail/courier-imap - !net-mail/uw-imap" - -REQUIRED_USE="afs? ( kerberos )" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - enewuser cyrus -1 -1 /usr/cyrus mail -} - -src_prepare() { - epatch "${FILESDIR}/${PN}-db.patch" - # 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" - - # lock.h to afs/lock.h - sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ - ptclient/afskrb.c || die - - eautoreconf -} - -src_configure() { - local myconf - if use afs ; then - myconf+=" --with-afs-libdir=/usr/$(get_libdir)" - myconf+=" --with-afs-incdir=/usr/include/afs" - fi - econf \ - --enable-murder \ - --enable-netscapehack \ - --enable-idled \ - --enable-event-notification \ - --enable-autocreate \ - --enable-pcre \ - --with-service-path=/usr/$(get_libdir)/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-sasl \ - --without-krb \ - --without-krbdes \ - --with-zlib \ - $(use_enable afs) \ - $(use_enable afs krb5afspts) \ - $(use_with berkdb bdb) \ - $(use_with clamav) \ - $(use_enable nntp) \ - $(use_enable replication) \ - $(use_enable kerberos gssapi) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with perl) \ - $(use_with sqlite) \ - $(use_with ssl openssl) \ - $(use_enable server) \ - $(use_enable sieve) \ - $(use_with snmp) \ - $(use_enable static-libs static) \ - $(use_with tcpd libwrap) \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" INSTALLDIRS=vendor install - - dodoc README* - dohtml doc/*.html - docinto text - dodoc doc/text/* - cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" - cp -r contrib tools "${D}/usr/share/doc/${PF}" - rm -f doc/text/Makefile* - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - # turn off sieve if not installed - if ! use sieve; then - sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die - fi - - 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_preinst() { - if ! has_version ${CATEGORY}/${PN} ; then - 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" - fi -} - -pkg_postinst() { - # do not install server.{key,pem) if they exist. - if use ssl ; then - 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 - fi -} diff --git a/net-mail/cyrus-imapd/cyrus-imapd-2.5.6.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-2.5.6.ebuild deleted file mode 100644 index 51937a3cf821..000000000000 --- a/net-mail/cyrus-imapd/cyrus-imapd-2.5.6.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -inherit autotools eutils multilib pam ssl-cert user toolchain-funcs - -MY_P=${P/_/} - -DESCRIPTION="The Cyrus IMAP Server" -HOMEPAGE="http://www.cyrusimap.org/" -SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" - -LICENSE="BSD-with-attribution" -SLOT="0" -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="afs berkdb clamav http kerberos mysql nntp pam perl postgres \ - replication +server sieve snmp sqlite ssl static-libs tcpd" - -# virtual/mysql-5.5 added for the --variable= option below -DEPEND="sys-libs/zlib - dev-libs/libpcre - >=dev-libs/cyrus-sasl-2.1.13 - dev-libs/jansson - afs? ( net-fs/openafs ) - berkdb? ( >=sys-libs/db-3.2:* ) - clamav? ( app-antivirus/clamav ) - http? ( dev-libs/libxml2 dev-libs/libical ) - kerberos? ( virtual/krb5 ) - mysql? ( >=virtual/mysql-5.5 ) - nntp? ( !net-nntp/leafnode ) - pam? ( - virtual/pam - >=net-mail/mailbase-1 - ) - postgres? ( dev-db/postgresql:* ) - snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( >=dev-libs/openssl-1.0.1e:* ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )" - -# all blockers really needed? -RDEPEND="${DEPEND} - !mail-mta/courier - !net-mail/bincimap - !net-mail/courier-imap - !net-mail/uw-imap - !net-mail/cyrus-imap-admin" - -REQUIRED_USE="afs? ( kerberos )" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - enewuser cyrus -1 -1 /usr/cyrus mail -} - -src_prepare() { - epatch "${FILESDIR}/${PN}-db.patch" - # 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" - - # lock.h to afs/lock.h - sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ - ptclient/afskrb.c || die - - eautoreconf -} - -src_configure() { - local myconf - if use afs ; then - myconf+=" --with-afs-libdir=/usr/$(get_libdir)" - myconf+=" --with-afs-incdir=/usr/include/afs" - fi - econf \ - --enable-murder \ - --enable-netscapehack \ - --enable-idled \ - --enable-event-notification \ - --enable-autocreate \ - --enable-pcre \ - --with-service-path=/usr/$(get_libdir)/cyrus \ - --with-cyrus-user=cyrus \ - --with-cyrus-group=mail \ - --with-com_err=yes \ - --with-sasl \ - --without-krb \ - --without-krbdes \ - --with-zlib \ - $(use_enable afs) \ - $(use_enable afs krb5afspts) \ - $(use_with berkdb bdb) \ - $(use_with clamav) \ - $(use_enable nntp) \ - $(use_enable http) \ - $(use_enable replication) \ - $(use_enable kerberos gssapi) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with perl) \ - $(use_with sqlite) \ - $(use_with ssl openssl) \ - $(use_enable server) \ - $(use_enable sieve) \ - $(use_with snmp) \ - $(use_enable static-libs static) \ - $(use_with tcpd libwrap) \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" INSTALLDIRS=vendor install - - dodoc README* - dohtml doc/*.html - docinto text - dodoc doc/text/* - cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" - cp -r contrib tools "${D}/usr/share/doc/${PF}" - rm -f doc/text/Makefile* - - insinto /etc - doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" - - # turn off sieve if not installed - if ! use sieve; then - sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die - fi - - 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_preinst() { - if ! has_version ${CATEGORY}/${PN} ; then - 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" - fi -} - -pkg_postinst() { - # do not install server.{key,pem) if they exist. - if use ssl ; then - 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 - fi -} |