public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/cyrus-imapd/
Date: Mon, 10 May 2021 09:28:12 +0000 (UTC)	[thread overview]
Message-ID: <1620638877.bccff51c278212c7e7a92ed17f71dc5d503d768e.sam@gentoo> (raw)

commit:     bccff51c278212c7e7a92ed17f71dc5d503d768e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May 10 09:27:57 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 10 09:27:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bccff51c

net-mail/cyrus-imapd: tidy up ebuild for 3.4.1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/cyrus-imapd/cyrus-imapd-3.4.1.ebuild | 33 +++++++++++++++------------
 1 file changed, 19 insertions(+), 14 deletions(-)

diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.4.1.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.4.1.ebuild
index d6d5a4de007..d0c9a1d5d28 100644
--- a/net-mail/cyrus-imapd/cyrus-imapd-3.4.1.ebuild
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.4.1.ebuild
@@ -28,15 +28,19 @@ CDEPEND="
 	calalarm? ( dev-libs/libical:0= )
 	caps? ( sys-libs/libcap )
 	clamav? ( app-antivirus/clamav )
-	http? ( dev-libs/libxml2:2 dev-libs/libical:0= net-libs/nghttp2 )
+	http? (
+		dev-libs/libxml2:2
+		dev-libs/libical:0=
+		net-libs/nghttp2
+	)
 	kerberos? ( virtual/krb5 )
 	ldap? ( net-nds/openldap )
 	mysql? ( dev-db/mysql-connector-c:0= )
 	nntp? ( !net-nntp/leafnode )
 	pam? (
-			sys-libs/pam
-			>=net-mail/mailbase-1
-		)
+		>=net-mail/mailbase-1
+		sys-libs/pam
+	)
 	perl? ( dev-lang/perl:= )
 	postgres? ( dev-db/postgresql:* )
 	ssl? ( >=dev-libs/openssl-1.0.1e:0=[-bindist] )
@@ -156,32 +160,33 @@ src_install() {
 
 	dodoc README*
 	dodoc -r doc
-	cp -r contrib tools "${D}/usr/share/doc/${PF}"
-	rm -f doc/text/Makefile*
 
-	mv "${D}"/usr/libexec/{master,cyrusmaster} || die
+	cp -r contrib tools "${ED}/usr/share/doc/${PF}" || die
+	rm -f doc/text/Makefile* || die
+
+	mv "${ED}"/usr/libexec/{master,cyrusmaster} || die
 
 	insinto /etc
-	newins "${D}/usr/share/doc/${PF}/doc/examples/cyrus_conf/normal.conf" cyrus.conf
-	newins "${D}/usr/share/doc/${PF}/doc/examples/imapd_conf/normal.conf" imapd.conf
+	newins "${ED}/usr/share/doc/${PF}/doc/examples/cyrus_conf/normal.conf" cyrus.conf
+	newins "${ED}/usr/share/doc/${PF}/doc/examples/imapd_conf/normal.conf" imapd.conf
 
 	sed -i -e '/^configdirectory/s|/var/.*|/var/imap|' \
 		-e '/^partition-default/s|/var/.*|/var/spool/imap|' \
 		-e '/^sievedir/s|/var/.*|/var/imap/sieve|' \
-		"${D}"/etc/imapd.conf
+		"${ED}"/etc/imapd.conf || die
 
 	sed -i -e 's|/var/imap/socket/lmtp|/run/cyrus/socket/lmtp|' \
 		-e 's|/var/imap/socket/notify|/run/cyrus/socket/notify|' \
-		"${D}"/etc/cyrus.conf
+		"${ED}"/etc/cyrus.conf || die
 
 	# turn off sieve if not installed
 	if ! use sieve; then
-		sed -i -e "/sieve/s/^/#/" "${D}/etc/cyrus.conf" || die
+		sed -i -e "/sieve/s/^/#/" "${ED}/etc/cyrus.conf" || die
 	fi
 
 	# same thing for http(s) as well
 	if ! use http; then
-		sed -i -e "/http/s/^/#/" "${D}/etc/cyrus.conf" || die
+		sed -i -e "/http/s/^/#/" "${ED}/etc/cyrus.conf" || die
 	fi
 
 	newinitd "${FILESDIR}/cyrus.rc8" cyrus
@@ -218,7 +223,7 @@ pkg_preinst() {
 pkg_postinst() {
 	# do not install server.{key,pem) if they exist
 	if use ssl ; then
-		if [ ! -f "${ROOT}"/etc/ssl/cyrus/server.key ]; 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


             reply	other threads:[~2021-05-10  9:28 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10  9:28 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-02 11:14 [gentoo-commits] repo/gentoo:master commit in: net-mail/cyrus-imapd/ David Seifert
2023-05-05 10:42 Arthur Zamarin
2023-03-25  6:35 Arthur Zamarin
2023-02-13  4:23 Sam James
2023-02-13  4:23 Sam James
2022-08-24  5:29 Agostino Sarubbo
2022-08-24  5:25 Agostino Sarubbo
2022-06-27  9:55 Sam James
2022-05-10 16:59 Sam James
2022-05-10 13:47 Agostino Sarubbo
2022-03-22 23:32 Sam James
2022-02-23  2:52 Sam James
2022-02-23  2:52 Sam James
2022-02-21  7:47 Agostino Sarubbo
2022-02-19 19:28 Sam James
2022-02-19 15:47 Jakov Smolić
2021-11-20 15:34 Arthur Zamarin
2021-10-09  3:20 Sam James
2021-10-08 18:49 Agostino Sarubbo
2021-10-08 18:48 Agostino Sarubbo
2021-10-08 18:48 Agostino Sarubbo
2021-09-25 19:08 Sam James
2021-09-16  1:18 Sam James
2021-09-16  1:18 Sam James
2021-09-13 20:30 David Seifert
2021-06-17 22:18 Thomas Deutschmann
2021-06-17 20:32 Thomas Deutschmann
2021-06-13  6:32 Agostino Sarubbo
2021-06-13  6:28 Agostino Sarubbo
2021-06-13  3:45 Sam James
2021-05-10  9:22 Sam James
2021-05-10  9:22 Sam James
2021-05-07 14:38 Sam James
2021-05-06 23:26 Sam James
2021-05-06 23:26 Sam James
2021-05-06 23:26 Sam James
2021-05-06 23:26 Sam James
2020-12-20 19:07 Thomas Deutschmann
2020-12-17 16:41 Agostino Sarubbo
2020-12-17  8:58 Sam James
2020-09-08  9:21 Eray Aslan
2020-09-08  6:40 Eray Aslan
2020-09-05  4:06 Sam James
2020-05-08  6:38 Agostino Sarubbo
2020-04-09 18:42 Eray Aslan
2019-12-12 14:58 Michał Górny
2019-10-12 21:24 Mikle Kolyada
2019-07-30  6:35 Eray Aslan
2019-06-13 14:54 Agostino Sarubbo
2019-06-13 14:53 Agostino Sarubbo
2019-06-13 14:28 Agostino Sarubbo
2019-06-13 14:12 Agostino Sarubbo
2019-06-09 11:40 Pacho Ramos
2019-06-09 11:40 Pacho Ramos
2019-06-04 19:01 Agostino Sarubbo
2019-06-03 15:00 Agostino Sarubbo
2019-05-28 10:17 Eray Aslan
2019-04-06 22:23 Patrice Clement
2019-03-26 20:17 Aaron Bauman
2019-02-18 20:29 Brian Evans
2018-08-29  5:41 Eray Aslan
2018-08-29  5:41 Eray Aslan
2018-04-30  8:06 Eray Aslan
2018-03-15 11:09 Mikle Kolyada
2018-03-11  2:16 Thomas Deutschmann
2018-01-22 14:21 Eray Aslan
2017-11-26 19:06 Sergei Trofimovich
2017-10-25  9:31 Agostino Sarubbo
2017-10-16 23:28 Sergei Trofimovich
2017-10-15 21:34 Sergei Trofimovich
2017-10-13 15:01 Thomas Deutschmann
2017-06-22  5:22 Eray Aslan
2017-05-17  7:39 Eray Aslan
2017-05-09  8:23 Eray Aslan
2017-01-24 21:16 Jeroen Roovers
2016-11-25 18:54 Agostino Sarubbo
2016-11-25 18:27 Agostino Sarubbo
2016-10-20 14:43 Eray Aslan
2016-07-25 10:26 Eray Aslan
2016-05-21 14:37 Eray Aslan
2016-05-21 14:37 Eray Aslan
2015-12-01 16:09 Eray Aslan
2015-09-17  6:21 Eray Aslan
2015-08-10 12:29 Eray Aslan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1620638877.bccff51c278212c7e7a92ed17f71dc5d503d768e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox