summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hanselmann <hansmi@gentoo.org>2005-10-19 19:51:54 +0000
committerMichael Hanselmann <hansmi@gentoo.org>2005-10-19 19:51:54 +0000
commit138894a198daccf15bbc056946d3861882046ae0 (patch)
tree4a01d8d0c2a5366a37c8774d9a5ffe3c2125be38 /mail-mta
parentMarked stable on amd64 (diff)
downloadgentoo-2-138894a198daccf15bbc056946d3861882046ae0.tar.gz
gentoo-2-138894a198daccf15bbc056946d3861882046ae0.tar.bz2
gentoo-2-138894a198daccf15bbc056946d3861882046ae0.zip
Added the gencertdaily use flag to only generate the SSL certificates daily.
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/qmail/ChangeLog5
-rw-r--r--mail-mta/qmail/qmail-1.03-r16.ebuild16
2 files changed, 15 insertions, 6 deletions
diff --git a/mail-mta/qmail/ChangeLog b/mail-mta/qmail/ChangeLog
index c82b0116f7b0..2ee653b981c6 100644
--- a/mail-mta/qmail/ChangeLog
+++ b/mail-mta/qmail/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for mail-mta/qmail
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/ChangeLog,v 1.64 2005/10/17 20:29:14 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/ChangeLog,v 1.65 2005/10/19 19:51:54 hansmi Exp $
+
+ 19 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> qmail-1.03-r16.ebuild:
+ Added the gencertdaily use flag to only generate the SSL certificates daily.
17 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> qmail-1.03-r15.ebuild,
qmail-1.03-r16.ebuild:
diff --git a/mail-mta/qmail/qmail-1.03-r16.ebuild b/mail-mta/qmail/qmail-1.03-r16.ebuild
index 5d1553b88b5c..430854bdb556 100644
--- a/mail-mta/qmail/qmail-1.03-r16.ebuild
+++ b/mail-mta/qmail/qmail-1.03-r16.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/qmail-1.03-r16.ebuild,v 1.40 2005/10/17 20:29:14 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/qmail-1.03-r16.ebuild,v 1.41 2005/10/19 19:51:54 hansmi Exp $
inherit toolchain-funcs eutils fixheadtails flag-o-matic
-IUSE="ssl noauthcram notlsbeforeauth selinux logmail mailwrapper"
+IUSE="ssl noauthcram notlsbeforeauth selinux logmail mailwrapper gencertdaily"
DESCRIPTION="A modern replacement for sendmail which uses maildirs and includes SSL/TLS, AUTH SMTP, and queue optimization"
HOMEPAGE="http://www.qmail.org/
http://members.elysium.pl/brush/qmail-smtpd-auth/
@@ -69,6 +69,12 @@ MY_PVR=${PV}-r14
TCPRULES_DIR=/etc/tcprules.d
+if use gencertdaily; then
+ CRON_FOLDER=cron.daily
+else
+ CRON_FOLDER=cron.hourly
+fi
+
src_unpack() {
# unpack the initial stuff
unpack ${P}.tar.gz
@@ -456,9 +462,9 @@ src_install() {
einfo "SSL Certificate creation script"
dobin ${FILESDIR}/mkservercert
einfo "RSA key generation cronjob"
- insinto /etc/cron.hourly
+ insinto /etc/${CRON_FOLDER}
doins ${FILESDIR}/qmail-genrsacert.sh
- chmod +x ${D}/etc/cron.hourly/qmail-genrsacert.sh
+ chmod +x ${D}/etc/${CRON_FOLDER}/qmail-genrsacert.sh
# for some files
keepdir /var/qmail/control/tlshosts/
@@ -616,7 +622,7 @@ pkg_config() {
if use ssl; then
ebegin "Generating RSA keys for SSL/TLS, this can take some time"
- ${ROOT}etc/cron.hourly/qmail-genrsacert.sh
+ ${ROOT}etc/${CRON_FOLDER}/qmail-genrsacert.sh
eend $?
einfo "Creating a self-signed ssl-certificate:"
/var/qmail/bin/mkservercert