net-mail/courier-imap: Install a monthly cron job for dhparams
authorTupone Alfredo <tupone@gentoo.org>
Fri, 5 Jul 2019 07:14:20 +0000 (09:14 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Fri, 5 Jul 2019 07:14:20 +0000 (09:14 +0200)
Closes: https://bugs.gentoo.org/517682
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

net-mail/courier-imap/courier-imap-5.0.7.ebuild
net-mail/courier-imap/files/courier-imap.cron [new file with mode: 0644]

index c109323e7fa2ba014e2ad647a303c74779b1d58e..859c7b600a2d58c185ea1e6459bad95dc740a821 100644 (file)
@@ -233,6 +233,8 @@ src_install() {
        dodoc libs/rfc2045/*.html
        docinto tcpd
        dodoc libs/tcpd/README* libs/tcpd/*.html
+       exeinto /etc/cron.monthly
+       newexe "${FILESDIR}"/${PN}.cron ${PN}
 }
 
 pkg_postinst() {
diff --git a/net-mail/courier-imap/files/courier-imap.cron b/net-mail/courier-imap/files/courier-imap.cron
new file mode 100644 (file)
index 0000000..c1c517d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/sbin/mkdhparams