d6b7ea47c8
- regenerate patches and name them consistently. Note that the configuration file format and names have changed with this release - add an INSTALL shell fragment to detect old versions of the config files and warn the user to regenerate them - config files now live in /etc/courier-imap, as they are very generic names, and this avoid conflict with other imap daemons Summary of changes: This release fixes some bugs in the POP3 server, adds optional support for gb2312 and big5 text search, and introduces a new configuration file format. The new configuration file format will allow future upgrades to automatically preserve the existing system configuration data, instead of installing a default set of configuration files
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
$OpenBSD: patch-imap_mkimapdcert_in,v 1.3 2000/12/29 18:51:57 avsm Exp $
|
|
--- imap/mkimapdcert.in.orig Mon Sep 18 11:14:24 2000
|
|
+++ imap/mkimapdcert.in Fri Dec 29 15:14:10 2000
|
|
@@ -9,29 +9,27 @@
|
|
# IMAP over SSL. Normally this script would get called by an automatic
|
|
# package installation routine.
|
|
|
|
-test -x @OPENSSL@ || exit 0
|
|
+SSLDIR=/etc/ssl/private
|
|
|
|
-prefix="@prefix@"
|
|
-
|
|
-if test -f @datadir@/imapd.pem
|
|
+if test -f ${SSLDIR}/imapd.pem
|
|
then
|
|
- echo "@datadir@/imapd.pem already exists."
|
|
+ echo "${SSLDIR}/imapd.pem already exists."
|
|
exit 1
|
|
fi
|
|
|
|
-cp /dev/null @datadir@/imapd.pem
|
|
-chmod 600 @datadir@/imapd.pem
|
|
-chown @mailuser@ @datadir@/imapd.pem
|
|
+cp /dev/null ${SSLDIR}/imapd.pem
|
|
+chmod 600 ${SSLDIR}/imapd.pem
|
|
+chown @mailuser@ ${SSLDIR}/imapd.pem
|
|
|
|
cleanup() {
|
|
- rm -f @datadir@/imapd.pem
|
|
- rm -f @datadir@/imapd.rand
|
|
+ rm -f ${SSLDIR}/imapd.pem
|
|
+ rm -f ${SSLDIR}/imapd.rand
|
|
exit 1
|
|
}
|
|
|
|
-dd if=@RANDOMV@ of=@datadir@/imapd.rand count=1 2>/dev/null
|
|
+dd if=@RANDOMV@ of=${SSLDIR}/imapd.rand count=1 2>/dev/null
|
|
@OPENSSL@ req -new -x509 -days 365 -nodes \
|
|
- -config @sysconfdir@/imapd.cnf -out @datadir@/imapd.pem -keyout @datadir@/imapd.pem || cleanup
|
|
-@OPENSSL@ gendh -rand @datadir@/imapd.rand 512 >>@datadir@/imapd.pem || cleanup
|
|
-@OPENSSL@ x509 -subject -dates -fingerprint -noout -in @datadir@/imapd.pem || cleanup
|
|
-rm -f @datadir@/imapd.rand
|
|
+ -config @sysconfdir@/imapd.cnf -out ${SSLDIR}/imapd.pem -keyout ${SSLDIR}/imapd.pem || cleanup
|
|
+@OPENSSL@ gendh -rand ${SSLDIR}/imapd.rand 512 >> ${SSLDIR}/imapd.pem || cleanup
|
|
+@OPENSSL@ x509 -subject -dates -fingerprint -noout -in ${SSLDIR}/imapd.pem || cleanup
|
|
+rm -f ${SSLDIR}/imapd.rand
|