summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-02-05 01:46:09 +0000
committerNick Hadaway <raker@gentoo.org>2003-02-05 01:46:09 +0000
commit7f054da6b3578cee18d4446ce90b60f1f717d7cb (patch)
tree0c7309c428f1fd33d0779d8e100f402d3cbdafce /net-mail/qmail
parentVersion bump + esd + alsa (diff)
downloadgentoo-2-7f054da6b3578cee18d4446ce90b60f1f717d7cb.tar.gz
gentoo-2-7f054da6b3578cee18d4446ce90b60f1f717d7cb.tar.bz2
gentoo-2-7f054da6b3578cee18d4446ce90b60f1f717d7cb.zip
Moved ssl cert creation to pkg_config() and only runs if ssl and if cert
doesn't already exist.
Diffstat (limited to 'net-mail/qmail')
-rw-r--r--net-mail/qmail/ChangeLog8
-rw-r--r--net-mail/qmail/qmail-1.03-r10.ebuild39
2 files changed, 25 insertions, 22 deletions
diff --git a/net-mail/qmail/ChangeLog b/net-mail/qmail/ChangeLog
index 75206f03486a..ae1bb4761892 100644
--- a/net-mail/qmail/ChangeLog
+++ b/net-mail/qmail/ChangeLog
@@ -1,10 +1,14 @@
# ChangeLog for net-mail/qmail
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail/ChangeLog,v 1.13 2003/02/03 01:08:50 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail/ChangeLog,v 1.14 2003/02/05 01:46:09 raker Exp $
*qmail-1.03-r10 (01 Feb 2003)
- 02 Feb 2003; Nick Hadaway <raker@gentoo.org> qmail-1.03-r1.ebuild :
+ 04 Feb 2003; Nick Hadaway <raker@gentoo.org> qmail-1.03-r10.ebuild :
+ Moved the ssl cert creation to pkg_config() and it only goes through
+ the cert creation if the file doesn't already exist. Thanks vapier.
+
+ 02 Feb 2003; Nick Hadaway <raker@gentoo.org> qmail-1.03-r10.ebuild :
Added a missing qmail-todo. Thanks to shadow@ines.ro on bug #14963
for catching this so quickly.
diff --git a/net-mail/qmail/qmail-1.03-r10.ebuild b/net-mail/qmail/qmail-1.03-r10.ebuild
index e881e7f81aa9..f90dd4b04e6f 100644
--- a/net-mail/qmail/qmail-1.03-r10.ebuild
+++ b/net-mail/qmail/qmail-1.03-r10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail/qmail-1.03-r10.ebuild,v 1.4 2003/02/03 01:08:50 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail/qmail-1.03-r10.ebuild,v 1.5 2003/02/05 01:46:09 raker Exp $
IUSE="ssl"
@@ -264,25 +264,6 @@ pkg_postinst() {
echo -e "\e[32;01m and create the following links : \033[0m"
echo -e "\e[32;01m ln -s /var/qmail/supervise/qmail-send /service/qmail-send \033[0m"
echo -e "\e[32;01m ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd \033[0m"
-
-
- if use ssl; then
- echo "Creating a self-signed ssl-cert:"
- /usr/bin/openssl req -new -x509 -nodes -out /var/qmail/control/servercert.pem -days 366 -keyout /var/qmail/control/servercert.pem
- chmod 640 /var/qmail/control/servercert.pem
- chown qmaild.qmail /var/qmail/control/servercert.pem
- ln -s /var/qmail/control/servercert.pem /var/qmail/control/clientcert.pem
-
- echo -e "\e[32;01m If You want to have a signed cert, do the following: \033[0m"
- echo -e "\e[32;01m openssl req -new -nodes -out req.pem \ \033[0m"
- echo -e "\e[32;01m -keyout /var/qmail/control/servercert.pem \033[0m"
- echo -e "\e[32;01m chmod 640 /var/qmail/control/servercert.pem \033[0m"
- echo -e "\e[32;01m chown qmaild.qmail /var/qmail/control/servercert.pem \033[0m"
- echo -e "\e[32;01m ln -s /var/qmail/control/servercert.pem /var/qmail/control/clientcert.pem \033[0m"
- echo -e "\e[32;01m Send req.pem to your CA to obtain signed_req.pem, and do: \033[0m"
- echo -e "\e[32;01m cat signed_req.pem >> /var/qmail/control/servercert.pem \033[0m"
- fi
-
}
pkg_config() {
@@ -303,4 +284,22 @@ export qhost=`hostname`
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
+ if [ `use ssl` ]; then
+ if [ ! -f /var/qmail/controll/servercert.pem ]; then
+ echo "Creating a self-signed ssl-cert:"
+ /usr/bin/openssl req -new -x509 -nodes -out /var/qmail/control/servercert.pem -days 366 -keyout /var/qmail/control/servercert.pem
+ chmod 640 /var/qmail/control/servercert.pem
+ chown qmaild.qmail /var/qmail/control/servercert.pem
+ ln -s /var/qmail/control/servercert.pem /var/qmail/control/clientcert.pem
+
+ echo -e "\e[32;01m If You want to have a signed cert, do the following: \033[0m"
+ echo -e "\e[32;01m openssl req -new -nodes -out req.pem \ \033[0m"
+ echo -e "\e[32;01m -keyout /var/qmail/control/servercert.pem \033[0m"
+ echo -e "\e[32;01m chmod 640 /var/qmail/control/servercert.pem \033[0m"
+ echo -e "\e[32;01m chown qmaild.qmail /var/qmail/control/servercert.pem \033[0m"
+ echo -e "\e[32;01m ln -s /var/qmail/control/servercert.pem /var/qmail/control/clientcert.pem \033[0m"
+ echo -e "\e[32;01m Send req.pem to your CA to obtain signed_req.pem, and do: \033[0m"
+ echo -e "\e[32;01m cat signed_req.pem >> /var/qmail/control/servercert.pem \033[0m"
+ fi
+ fi
}