[-]
[+]
|
Changed |
courier-imap.spec
|
|
[-]
[+]
|
Added |
courier-imap-4.3.0_1.diff
^
|
@@ -0,0 +1,255 @@
+--- bdbobj/Makefile.in
++++ bdbobj/Makefile.in 2005/12/06 09:07:04
+@@ -217,7 +217,6 @@
+ @FOUND_DB_TRUE@testbdb_SOURCES = $(TESTBDBSOURCES)
+ @FOUND_DB_TRUE@testbdb_DEPENDENCIES = libbdbobj.la
+ @FOUND_DB_TRUE@testbdb_LDADD = libbdbobj.la @LIBDB@
+-@FOUND_DB_TRUE@testbdb_LDFLAGS = -static
+ @FOUND_DB_FALSE@noinst_SCRIPTS = notfound
+ EXTRA_DIST = $(LIBDBOBJSOURCES) $(TESTBDBSOURCES) testsuite testsuite.txt
+ all: config.h
+--- gdbmobj/Makefile.in
++++ gdbmobj/Makefile.in 2005/12/06 09:07:09
+@@ -218,7 +218,6 @@
+ @FOUND_GDBM_TRUE@testgdbm_SOURCES = $(TESTGDBMSOURCES)
+ @FOUND_GDBM_TRUE@testgdbm_DEPENDENCIES = libgdbmobj.la
+ @FOUND_GDBM_TRUE@testgdbm_LDADD = libgdbmobj.la @LIBGDBM@
+-@FOUND_GDBM_TRUE@testgdbm_LDFLAGS = -static
+ @FOUND_GDBM_FALSE@noinst_SCRIPTS = notfound
+ EXTRA_DIST = $(LIBGDBMSOURCES) $(TESTGDBMSOURCES) testsuite testsuite.txt
+ all: config.h
+--- imap/imapd-ssl.dist.in
++++ imap/imapd-ssl.dist.in 2005/12/06 09:05:42
+@@ -104,7 +104,7 @@
+ ##NAME: COURIERTLS:0
+ #
+
+-COURIERTLS=@bindir@/couriertls
++COURIERTLS=@sbindir@/couriertls
+
+ ##NAME: TLS_PROTOCOL:0
+ #
+--- imap/Makefile.in
++++ imap/Makefile.in 2005/12/06 09:07:25
+@@ -275,7 +275,6 @@
+ noinst_LTLIBRARIES = libimaplogin.la libimapd.la libpop3d.la
+ libimaplogin_la_SOURCES =
+ libimaplogin_la_LIBADD = ../tcpd/libspipe.la ../numlib/libnumlib.la
+-libimaplogin_la_LDFLAGS = -static
+ libimapd_la_SOURCES = mainloop.c imaptoken.c imaptoken.h imapwrite.c \
+ imapwrite.h capability.c smap.c smapsnapshot.c
+
+@@ -283,7 +282,6 @@
+ ../rfc822/librfc822.la ../liblock/liblock.la ../numlib/libnumlib.la \
+ ../unicode/libunicode.la
+
+-libimapd_la_LDFLAGS = -static
+ imaplogin_SOURCES = imaplogin.c authenticate_auth.c proxy.c proxy.h
+ imaplogin_DEPENDENCIES = libimapd.la libimaplogin.la
+ imaplogin_LDADD = libimapd.la libimaplogin.la \
+@@ -313,7 +311,6 @@
+ ../numlib/libnumlib.la
+
+ libpop3d_la_DEPENDENCIES = $(libpop3d_la_LIBADD)
+-libpop3d_la_LDFLAGS = -static
+ pop3d_SOURCES = pop3dserver.c pop3dcapa.c
+ pop3d_DEPENDENCIES = libpop3d.la
+ pop3d_LDADD = libpop3d.la @LDAUTH@ -lcourierauth
+--- imap/pop3d-ssl.dist.in
++++ imap/pop3d-ssl.dist.in 2005/12/06 09:05:42
+@@ -91,7 +91,7 @@
+ # at your own risk. Only the basic SSL/TLS functionality is known to be
+ # working. Keep this in mind as you play with the following variables.
+
+-COURIERTLS=@bindir@/couriertls
++COURIERTLS=@sbindir@/couriertls
+
+ ##NAME: TLS_PROTOCOL:0
+ #
+--- libhmac/Makefile.in
++++ libhmac/Makefile.in 2005/12/06 09:07:30
+@@ -203,11 +203,9 @@
+ md5hmactest_SOURCES = md5hmactest.c
+ md5hmactest_DEPENDENCIES = libhmac.la @hashlibs@
+ md5hmactest_LDADD = $(md5hmactest_DEPENDENCIES)
+-md5hmactest_LDFLAGS = -static
+ sha1hmactest_SOURCES = sha1hmactest.c
+ sha1hmactest_DEPENDENCIES = libhmac.la @hashlibs@
+ sha1hmactest_LDADD = $(sha1hmactest_DEPENDENCIES)
+-sha1hmactest_LDFLAGS = -static
+ EXTRA_DIST = md5hmactest.txt sha1hmactest.txt
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+--- liblock/Makefile.in
++++ liblock/Makefile.in 2005/12/06 09:07:33
+@@ -220,7 +220,6 @@
+ lockmail_SOURCES = lockmail.c
+ lockmail_DEPENDENCIES = liblock.la ../numlib/libnumlib.la
+ lockmail_LDADD = liblock.la ../numlib/libnumlib.la
+-lockmail_LDFLAGS = -static
+ noinst_DATA = lockmail.html lockmail.1
+ EXTRA_DIST = lockfcntl.c lockflock.c locklockf.c locktest.c $(noinst_DATA)
+ all: config.h
+--- maildir/Makefile.in
++++ maildir/Makefile.in 2005/12/06 09:07:45
+@@ -287,7 +287,6 @@
+ ../numlib/libnumlib.la
+
+ deliverquota_LDADD = libmaildir.la ../rfc822/librfc822.la ../numlib/libnumlib.la
+-deliverquota_LDFLAGS = -static
+ maildirmake_SOURCES = maildirmake.c
+ maildirmake_DEPENDENCIES = libmaildir.la ../numlib/libnumlib.la \
+ ../rfc822/librfc822.la
+@@ -295,15 +294,12 @@
+ maildirmake_LDADD = libmaildir.la ../numlib/libnumlib.la \
+ ../rfc822/librfc822.la
+
+-maildirmake_LDFLAGS = -static
+ testmaildirfilter_SOURCES = maildirfiltertypelist.h testmaildirfilter.c
+ testmaildirfilter_DEPENDENCIES = libmaildir.la ../numlib/libnumlib.la
+ testmaildirfilter_LDADD = libmaildir.la ../numlib/libnumlib.la @LIBPCRE@
+-testmaildirfilter_LDFLAGS = -static
+ maildirkwtest_SOURCES = maildirkwtest.c
+ maildirkwtest_LDADD = libmaildir.la
+ maildirkwtest_DEPENDENCIES = libmaildir.la
+-maildirkwtest_LDFLAGS = -static
+ maildirkw_SOURCES = maildirkw.c
+ maildirkw_LDADD = libmaildir.la ../liblock/liblock.la ../numlib/libnumlib.la \
+ `cat maildir.libdeps`
+@@ -311,7 +307,6 @@
+ maildirkw_DEPENDENCIES = libmaildir.la ../liblock/liblock.la \
+ ../numlib/libnumlib.la maildir.libdeps
+
+-maildirkw_LDFLAGS = -static
+ maildiracl = maildiracl.c
+ maildiracl_LDADD = libmaildir.la ../liblock/liblock.la ../numlib/libnumlib.la \
+ `cat maildir.libdeps`
+@@ -319,7 +314,6 @@
+ maildiracl_DEPENDENCIES = libmaildir.la ../liblock/liblock.la \
+ ../numlib/libnumlib.la maildir.libdeps
+
+-maildiracl_LDFLAGS = -static
+ maildiraclttest_SOURCES = testmaildiraclt.c
+ maildiraclttest_LDADD = libmaildir.la ../liblock/liblock.la \
+ ../numlib/libnumlib.la `cat maildir.libdeps`
+@@ -327,7 +321,6 @@
+ maildiraclttest_DEPENDENCIES = libmaildir.la ../liblock/liblock.la \
+ ../numlib/libnumlib.la maildir.libdeps
+
+-maildiraclttest_LDFLAGS = -static
+ EXTRA_DIST = README.maildirquota.html README.maildirquota.txt \
+ README.imapkeywords.html \
+ README.maildirfilter.html \
+--- makedat/Makefile.in
++++ makedat/Makefile.in 2005/12/06 09:07:49
+@@ -200,7 +200,6 @@
+ makedatprog_SOURCES = makedatprog.c
+ makedatprog_DEPENDENCIES = @dblibrary@
+ makedatprog_LDADD = @dblibrary@ @LIBGDBM@ @LIBDB@
+-makedatprog_LDFLAGS = -static
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+--- md5/Makefile.in
++++ md5/Makefile.in 2005/12/06 09:07:52
+@@ -204,7 +204,6 @@
+ md5test_SOURCES = md5test.c
+ md5test_DEPENDENCIES = libmd5.la
+ md5test_LDADD = libmd5.la
+-md5test_LDFLAGS = -static
+ EXTRA_DIST = md5test.txt hmac.c
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+--- rfc1035/Makefile.in
++++ rfc1035/Makefile.in 2005/12/06 09:08:01
+@@ -230,7 +230,6 @@
+ testlookup_LDADD = librfc1035.a ../soxwrap/libsoxwrap.a ../md5/libmd5.la \
+ ../random128/librandom128.la `cat ../soxwrap/soxlibs.dep`
+
+-testlookup_LDFLAGS = -static
+ EXTRA_DIST = testsuite.txt
+ testspf_SOURCES = testspf.c
+ testspf_DEPENDENCIES = librfc1035.a ../md5/libmd5.la \
+@@ -241,7 +240,6 @@
+ ../random128/librandom128.la ../soxwrap/libsoxwrap.a \
+ `cat ../soxwrap/soxlibs.dep`
+
+-testspf_LDFLAGS = -static
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+--- rfc2045/Makefile.in
++++ rfc2045/Makefile.in 2005/12/06 09:08:06
+@@ -239,15 +239,12 @@
+ ../numlib/libnumlib.la
+
+ reformime_DEPENDENCIES = $(reformime_LDADD)
+-reformime_LDFLAGS = -static
+ makemime_SOURCES = makemime.c
+ makemime_LDADD = ../rfc822/libencode.la ../rfc822/librfc822.la librfc2045.la @UNICODE_LIB@ ../numlib/libnumlib.la
+ makemime_DEPENDENCIES = $(makemime_LDADD)
+-makemime_LDFLAGS = -static
+ headercheck_SOURCES = headercheck.c
+ headercheck_LDADD = librfc2045.la ../rfc822/librfc822.la ../numlib/libnumlib.la
+ headercheck_DEPENDENCIES = $(headercheck_LDADD)
+-headercheck_LDFLAGS = -static
+ all: $(BUILT_SOURCES) rfc2045_config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+--- rfc822/Makefile.in
|
[-]
[+]
|
Added |
courier-imap-4.3.0_2.diff
^
|
@@ -0,0 +1,148 @@
+--- imap/imapd-ssl.dist.in.orig 2008-02-03 12:12:36.000000000 +0100
++++ imap/imapd-ssl.dist.in 2008-02-03 12:19:41.000000000 +0100
+@@ -254,7 +254,7 @@
+ #
+ # This is an experimental feature.
+
+-TLS_CERTFILE=@mydatadir@/imapd.pem
++TLS_CERTFILE=@sysconfig@/courier-imap/imapd.pem
+
+ ##NAME: TLS_TRUSTCERTS:0
+ #
+--- imap/pop3d-ssl.dist.in.orig 2008-02-03 12:12:36.000000000 +0100
++++ imap/pop3d-ssl.dist.in 2008-02-03 12:18:59.000000000 +0100
+@@ -241,7 +241,7 @@
+ #
+ # This is an experimental feature.
+
+-TLS_CERTFILE=@mydatadir@/pop3d.pem
++TLS_CERTFILE=@sysconfig@/courier-imap/pop3d.pem
+
+ ##NAME: TLS_TRUSTCERTS:0
+ #
+--- imap/mkimapdcert.in.orig 2007-11-04 21:50:15.000000000 +0100
++++ imap/mkimapdcert.in 2008-02-03 12:20:45.000000000 +0100
+@@ -18,41 +18,41 @@
+
+ prefix="@prefix@"
+
+-if test -f @mydatadir@/imapd.pem
++if test -f @sysconfig@/courier-imap/imapd.pem
+ then
+- echo "@mydatadir@/imapd.pem already exists."
++ echo "@sysconfig@/courier-imap/imapd.pem already exists."
+ exit 1
+ fi
+
+ umask 077
+
+ cleanup() {
+- rm -f @mydatadir@/imapd.pem
+- rm -f @mydatadir@/imapd.rand
+- rm -f @mydatadir@/imapd.key
+- rm -f @mydatadir@/imapd.cert
++ rm -f @sysconfig@/courier-imap/imapd.pem
++ rm -f @sysconfig@/courier-imap/imapd.rand
++ rm -f @sysconfig@/courier-imap/imapd.key
++ rm -f @sysconfig@/courier-imap/imapd.cert
+ exit 1
+ }
+
+-cd @mydatadir@
++cd @sysconfig@/courier-imap
+
+ if test "@ssllib@" = "openssl"
+ then
+- cp /dev/null @mydatadir@/imapd.pem
+- chmod 600 @mydatadir@/imapd.pem
+- chown @mailuser@ @mydatadir@/imapd.pem
++ cp /dev/null @sysconfig@/courier-imap/imapd.pem
++ chmod 600 @sysconfig@/courier-imap/imapd.pem
++ chown @mailuser@ @sysconfig@/courier-imap/imapd.pem
+
+- dd if=@RANDOMV@ of=@mydatadir@/imapd.rand count=1 2>/dev/null
++ dd if=@RANDOMV@ of=@sysconfig@/courier-imap/imapd.rand count=1 2>/dev/null
+ @OPENSSL@ req -new -x509 -days 365 -nodes \
+- -config @sysconfdir@/imapd.cnf -out @mydatadir@/imapd.pem -keyout @mydatadir@/imapd.pem || cleanup
+- @OPENSSL@ gendh -rand @mydatadir@/imapd.rand 512 >>@mydatadir@/imapd.pem || cleanup
+- @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @mydatadir@/imapd.pem || cleanup
+- rm -f @mydatadir@/imapd.rand
++ -config @sysconfdir@/imapd.cnf -out @sysconfig@/courier-imap/imapd.pem -keyout @sysconfig@/courier-imap/imapd.pem || cleanup
++ @OPENSSL@ gendh -rand @sysconfig@/courier-imap/imapd.rand 512 >>@sysconfig@/courier-imap/imapd.pem || cleanup
++ @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @sysconfig@/courier-imap/imapd.pem || cleanup
++ rm -f @sysconfig@/courier-imap/imapd.rand
+ else
+- cp /dev/null @mydatadir@/imapd.key
+- chmod 600 @mydatadir@/imapd.key
+- cp /dev/null @mydatadir@/imapd.cert
+- chmod 600 @mydatadir@/imapd.cert
++ cp /dev/null @sysconfig@/courier-imap/imapd.key
++ chmod 600 @sysconfig@/courier-imap/imapd.key
++ cp /dev/null @sysconfig@/courier-imap/imapd.cert
++ chmod 600 @sysconfig@/courier-imap/imapd.cert
+
+ @CERTTOOL@ --generate-privkey --outfile imapd.key
+ @CERTTOOL@ --generate-self-signed --load-privkey imapd.key --outfile imapd.cert --template @sysconfdir@/imapd.cnf
+--- imap/mkpop3dcert.in.orig 2007-11-04 21:50:15.000000000 +0100
++++ imap/mkpop3dcert.in 2008-02-03 12:22:08.000000000 +0100
+@@ -18,41 +18,41 @@
+
+ prefix="@prefix@"
+
+-if test -f @mydatadir@/pop3d.pem
++if test -f @sysconfig@/courier-imap/pop3d.pem
+ then
+- echo "@mydatadir@/pop3d.pem already exists."
++ echo "@sysconfig@/courier-imap/pop3d.pem already exists."
+ exit 1
+ fi
+
+ umask 077
+
+ cleanup() {
+- rm -f @mydatadir@/pop3d.pem
+- rm -f @mydatadir@/pop3d.rand
+- rm -f @mydatadir@/pop3d.key
+- rm -f @mydatadir@/pop3d.cert
++ rm -f @sysconfig@/courier-imap/pop3d.pem
++ rm -f @sysconfig@/courier-imap/pop3d.rand
++ rm -f @sysconfig@/courier-imap/pop3d.key
++ rm -f @sysconfig@/courier-imap/pop3d.cert
+ exit 1
+ }
+
+-cd @mydatadir@
++cd @sysconfig@/courier-imap
+
+ if test "@ssllib@" = "openssl"
+ then
+- cp /dev/null @mydatadir@/pop3d.pem
+- chmod 600 @mydatadir@/pop3d.pem
+- chown @mailuser@ @mydatadir@/pop3d.pem
++ cp /dev/null @sysconfig@/courier-imap/pop3d.pem
++ chmod 600 @sysconfig@/courier-imap/pop3d.pem
++ chown @mailuser@ @sysconfig@/courier-imap/pop3d.pem
+
+- dd if=@RANDOMV@ of=@mydatadir@/pop3d.rand count=1 2>/dev/null
++ dd if=@RANDOMV@ of=@sysconfig@/courier-imap/pop3d.rand count=1 2>/dev/null
+ @OPENSSL@ req -new -x509 -days 365 -nodes \
+- -config @sysconfdir@/pop3d.cnf -out @mydatadir@/pop3d.pem -keyout @mydatadir@/pop3d.pem || cleanup
+- @OPENSSL@ gendh -rand @mydatadir@/pop3d.rand 512 >>@mydatadir@/pop3d.pem || cleanup
+- @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @mydatadir@/pop3d.pem || cleanup
+- rm -f @mydatadir@/pop3d.rand
++ -config @sysconfdir@/pop3d.cnf -out @sysconfig@/courier-imap/pop3d.pem -keyout @sysconfig@/courier-imap/pop3d.pem || cleanup
++ @OPENSSL@ gendh -rand @sysconfig@/courier-imap/pop3d.rand 512 >>@sysconfig@/courier-imap/pop3d.pem || cleanup
++ @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @sysconfig@/courier-imap/pop3d.pem || cleanup
++ rm -f @sysconfig@/courier-imap/pop3d.rand
+ else
+- cp /dev/null @mydatadir@/pop3d.key
+- chmod 600 @mydatadir@/pop3d.key
+- cp /dev/null @mydatadir@/pop3d.cert
+- chmod 600 @mydatadir@/pop3d.cert
++ cp /dev/null @sysconfig@/courier-imap/pop3d.key
++ chmod 600 @sysconfig@/courier-imap/pop3d.key
++ cp /dev/null @sysconfig@/courier-imap/pop3d.cert
++ chmod 600 @sysconfig@/courier-imap/pop3d.cert
+
+ @CERTTOOL@ --generate-privkey --outfile pop3d.key
+ @CERTTOOL@ --generate-self-signed --load-privkey pop3d.key --outfile pop3d.cert --template @sysconfdir@/pop3d.cnf
|
[-]
[+]
|
Added |
imapd-ssl-dist.diff
^
|
@@ -0,0 +1,11 @@
+--- imap/imapd-ssl.dist.in.orig 2008-02-03 12:12:36.000000000 +0100
++++ imap/imapd-ssl.dist.in 2008-02-03 12:19:41.000000000 +0100
+@@ -254,7 +254,7 @@
+ #
+ # This is an experimental feature.
+
+-TLS_CERTFILE=@mydatadir@/imapd.pem
++TLS_CERTFILE=@sysconfig@/courier-imap/imapd.pem
+
+ ##NAME: TLS_TRUSTCERTS:0
+ #
|
[-]
[+]
|
Added |
mkimapcert-in.diff
^
|
@@ -0,0 +1,63 @@
+--- imap/mkimapdcert.in.orig 2007-11-04 21:50:15.000000000 +0100
++++ imap/mkimapdcert.in 2008-02-03 12:20:45.000000000 +0100
+@@ -18,41 +18,41 @@
+
+ prefix="@prefix@"
+
+-if test -f @mydatadir@/imapd.pem
++if test -f @sysconfig@/courier-imap/imapd.pem
+ then
+- echo "@mydatadir@/imapd.pem already exists."
++ echo "@sysconfig@/courier-imap/imapd.pem already exists."
+ exit 1
+ fi
+
+ umask 077
+
+ cleanup() {
+- rm -f @mydatadir@/imapd.pem
+- rm -f @mydatadir@/imapd.rand
+- rm -f @mydatadir@/imapd.key
+- rm -f @mydatadir@/imapd.cert
++ rm -f @sysconfig@/courier-imap/imapd.pem
++ rm -f @sysconfig@/courier-imap/imapd.rand
++ rm -f @sysconfig@/courier-imap/imapd.key
++ rm -f @sysconfig@/courier-imap/imapd.cert
+ exit 1
+ }
+
+-cd @mydatadir@
++cd @sysconfig@/courier-imap
+
+ if test "@ssllib@" = "openssl"
+ then
+- cp /dev/null @mydatadir@/imapd.pem
+- chmod 600 @mydatadir@/imapd.pem
+- chown @mailuser@ @mydatadir@/imapd.pem
++ cp /dev/null @sysconfig@/courier-imap/imapd.pem
++ chmod 600 @sysconfig@/courier-imap/imapd.pem
++ chown @mailuser@ @sysconfig@/courier-imap/imapd.pem
+
+- dd if=@RANDOMV@ of=@mydatadir@/imapd.rand count=1 2>/dev/null
++ dd if=@RANDOMV@ of=@sysconfig@/courier-imap/imapd.rand count=1 2>/dev/null
+ @OPENSSL@ req -new -x509 -days 365 -nodes \
+- -config @sysconfdir@/imapd.cnf -out @mydatadir@/imapd.pem -keyout @mydatadir@/imapd.pem || cleanup
+- @OPENSSL@ gendh -rand @mydatadir@/imapd.rand 512 >>@mydatadir@/imapd.pem || cleanup
+- @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @mydatadir@/imapd.pem || cleanup
+- rm -f @mydatadir@/imapd.rand
++ -config @sysconfdir@/imapd.cnf -out @sysconfig@/courier-imap/imapd.pem -keyout @sysconfig@/courier-imap/imapd.pem || cleanup
++ @OPENSSL@ gendh -rand @sysconfig@/courier-imap/imapd.rand 512 >>@sysconfig@/courier-imap/imapd.pem || cleanup
++ @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @sysconfig@/courier-imap/imapd.pem || cleanup
++ rm -f @sysconfig@/courier-imap/imapd.rand
+ else
+- cp /dev/null @mydatadir@/imapd.key
+- chmod 600 @mydatadir@/imapd.key
+- cp /dev/null @mydatadir@/imapd.cert
+- chmod 600 @mydatadir@/imapd.cert
++ cp /dev/null @sysconfig@/courier-imap/imapd.key
++ chmod 600 @sysconfig@/courier-imap/imapd.key
++ cp /dev/null @sysconfig@/courier-imap/imapd.cert
++ chmod 600 @sysconfig@/courier-imap/imapd.cert
+
+ @CERTTOOL@ --generate-privkey --outfile imapd.key
+ @CERTTOOL@ --generate-self-signed --load-privkey imapd.key --outfile imapd.cert --template @sysconfdir@/imapd.cnf
|
[-]
[+]
|
Added |
mkpop3cert-in.diff
^
|
@@ -0,0 +1,63 @@
+--- imap/mkpop3dcert.in.orig 2007-11-04 21:50:15.000000000 +0100
++++ imap/mkpop3dcert.in 2008-02-03 12:22:08.000000000 +0100
+@@ -18,41 +18,41 @@
+
+ prefix="@prefix@"
+
+-if test -f @mydatadir@/pop3d.pem
++if test -f @sysconfig@/courier-imap/pop3d.pem
+ then
+- echo "@mydatadir@/pop3d.pem already exists."
++ echo "@sysconfig@/courier-imap/pop3d.pem already exists."
+ exit 1
+ fi
+
+ umask 077
+
+ cleanup() {
+- rm -f @mydatadir@/pop3d.pem
+- rm -f @mydatadir@/pop3d.rand
+- rm -f @mydatadir@/pop3d.key
+- rm -f @mydatadir@/pop3d.cert
++ rm -f @sysconfig@/courier-imap/pop3d.pem
++ rm -f @sysconfig@/courier-imap/pop3d.rand
++ rm -f @sysconfig@/courier-imap/pop3d.key
++ rm -f @sysconfig@/courier-imap/pop3d.cert
+ exit 1
+ }
+
+-cd @mydatadir@
++cd @sysconfig@/courier-imap
+
+ if test "@ssllib@" = "openssl"
+ then
+- cp /dev/null @mydatadir@/pop3d.pem
+- chmod 600 @mydatadir@/pop3d.pem
+- chown @mailuser@ @mydatadir@/pop3d.pem
++ cp /dev/null @sysconfig@/courier-imap/pop3d.pem
++ chmod 600 @sysconfig@/courier-imap/pop3d.pem
++ chown @mailuser@ @sysconfig@/courier-imap/pop3d.pem
+
+- dd if=@RANDOMV@ of=@mydatadir@/pop3d.rand count=1 2>/dev/null
++ dd if=@RANDOMV@ of=@sysconfig@/courier-imap/pop3d.rand count=1 2>/dev/null
+ @OPENSSL@ req -new -x509 -days 365 -nodes \
+- -config @sysconfdir@/pop3d.cnf -out @mydatadir@/pop3d.pem -keyout @mydatadir@/pop3d.pem || cleanup
+- @OPENSSL@ gendh -rand @mydatadir@/pop3d.rand 512 >>@mydatadir@/pop3d.pem || cleanup
+- @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @mydatadir@/pop3d.pem || cleanup
+- rm -f @mydatadir@/pop3d.rand
++ -config @sysconfdir@/pop3d.cnf -out @sysconfig@/courier-imap/pop3d.pem -keyout @sysconfig@/courier-imap/pop3d.pem || cleanup
++ @OPENSSL@ gendh -rand @sysconfig@/courier-imap/pop3d.rand 512 >>@sysconfig@/courier-imap/pop3d.pem || cleanup
++ @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @sysconfig@/courier-imap/pop3d.pem || cleanup
++ rm -f @sysconfig@/courier-imap/pop3d.rand
+ else
+- cp /dev/null @mydatadir@/pop3d.key
+- chmod 600 @mydatadir@/pop3d.key
+- cp /dev/null @mydatadir@/pop3d.cert
+- chmod 600 @mydatadir@/pop3d.cert
++ cp /dev/null @sysconfig@/courier-imap/pop3d.key
++ chmod 600 @sysconfig@/courier-imap/pop3d.key
++ cp /dev/null @sysconfig@/courier-imap/pop3d.cert
++ chmod 600 @sysconfig@/courier-imap/pop3d.cert
+
+ @CERTTOOL@ --generate-privkey --outfile pop3d.key
+ @CERTTOOL@ --generate-self-signed --load-privkey pop3d.key --outfile pop3d.cert --template @sysconfdir@/pop3d.cnf
|
[-]
[+]
|
Added |
pop3d-ssl-dist.diff
^
|
@@ -0,0 +1,11 @@
+--- imap/pop3d-ssl.dist.in.orig 2008-02-03 12:12:36.000000000 +0100
++++ imap/pop3d-ssl.dist.in 2008-02-03 12:18:59.000000000 +0100
+@@ -241,7 +241,7 @@
+ #
+ # This is an experimental feature.
+
+-TLS_CERTFILE=@mydatadir@/pop3d.pem
++TLS_CERTFILE=@sysconfig@/courier-imap/pop3d.pem
+
+ ##NAME: TLS_TRUSTCERTS:0
+ #
|
|
Added |
courier-imap-4.3.0.tar.bz2
^
|