forked from pool/courier-imap
Accepting request 50341 from server:mail
checked in (request 50341) OBS-URL: https://build.opensuse.org/request/show/50341 OBS-URL: https://build.opensuse.org/package/show/server:mail/courier-imap?expand=0&rev=49
This commit is contained in:
parent
b6837c9f11
commit
8e50f1090c
248
courier-imap-4.7.0-LDFLAGS.patch
Normal file
248
courier-imap-4.7.0-LDFLAGS.patch
Normal file
@ -0,0 +1,248 @@
|
||||
diff -ruN courier-imap-4.7.0-orig/bdbobj/Makefile.in courier-imap-4.7.0/bdbobj/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/bdbobj/Makefile.in 2009-11-22 14:44:45.000000000 +0000
|
||||
+++ courier-imap-4.7.0/bdbobj/Makefile.in 2010-02-24 22:41:57.787849116 +0000
|
||||
@@ -238,7 +238,6 @@
|
||||
@FOUND_DB_TRUE@testbdb_SOURCES = $(TESTBDBSOURCES)
|
||||
@FOUND_DB_TRUE@testbdb_DEPENDENCIES = libbdbobj.la
|
||||
@FOUND_DB_TRUE@testbdb_LDADD = libbdbobj.la
|
||||
-@FOUND_DB_TRUE@testbdb_LDFLAGS = -static
|
||||
@FOUND_DB_FALSE@noinst_SCRIPTS = notfound
|
||||
EXTRA_DIST = $(LIBDBOBJSOURCES) $(TESTBDBSOURCES) testsuite testsuite.txt
|
||||
all: config.h
|
||||
diff -ruN courier-imap-4.7.0-orig/gdbmobj/Makefile.in courier-imap-4.7.0/gdbmobj/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/gdbmobj/Makefile.in 2009-11-22 14:44:52.000000000 +0000
|
||||
+++ courier-imap-4.7.0/gdbmobj/Makefile.in 2010-02-24 22:41:57.791849297 +0000
|
||||
@@ -239,7 +239,6 @@
|
||||
@FOUND_GDBM_TRUE@testgdbm_SOURCES = $(TESTGDBMSOURCES)
|
||||
@FOUND_GDBM_TRUE@testgdbm_DEPENDENCIES = libgdbmobj.la
|
||||
@FOUND_GDBM_TRUE@testgdbm_LDADD = libgdbmobj.la
|
||||
-@FOUND_GDBM_TRUE@testgdbm_LDFLAGS = -static
|
||||
@FOUND_GDBM_FALSE@noinst_SCRIPTS = notfound
|
||||
EXTRA_DIST = $(LIBGDBMSOURCES) $(TESTGDBMSOURCES) testsuite testsuite.txt
|
||||
all: config.h
|
||||
diff -ruN courier-imap-4.7.0-orig/imap/Makefile.in courier-imap-4.7.0/imap/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/imap/Makefile.in 2009-12-25 22:08:53.000000000 +0000
|
||||
+++ courier-imap-4.7.0/imap/Makefile.in 2010-02-24 22:41:57.795849478 +0000
|
||||
@@ -306,7 +306,6 @@
|
||||
libimaplogin_la_LIBADD = ../tcpd/libspipe.la ../tcpd/libtlsclient.la \
|
||||
../numlib/libnumlib.la
|
||||
|
||||
-libimaplogin_la_LDFLAGS = -static
|
||||
libimapd_la_SOURCES = mainloop.c imaptoken.c imaptoken.h imapwrite.c \
|
||||
imapwrite.h capability.c externalauth.c smap.c smapsnapshot.c
|
||||
|
||||
@@ -314,7 +313,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 \
|
||||
@@ -344,7 +342,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
|
||||
diff -ruN courier-imap-4.7.0-orig/libhmac/Makefile.in courier-imap-4.7.0/libhmac/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/libhmac/Makefile.in 2009-11-22 14:45:03.000000000 +0000
|
||||
+++ courier-imap-4.7.0/libhmac/Makefile.in 2010-02-24 22:41:57.795849478 +0000
|
||||
@@ -222,11 +222,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
|
||||
diff -ruN courier-imap-4.7.0-orig/liblock/Makefile.in courier-imap-4.7.0/liblock/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/liblock/Makefile.in 2009-11-22 14:45:09.000000000 +0000
|
||||
+++ courier-imap-4.7.0/liblock/Makefile.in 2010-02-24 22:41:57.799849658 +0000
|
||||
@@ -228,7 +228,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
|
||||
diff -ruN courier-imap-4.7.0-orig/maildir/Makefile.in courier-imap-4.7.0/maildir/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/maildir/Makefile.in 2009-11-22 14:45:16.000000000 +0000
|
||||
+++ courier-imap-4.7.0/maildir/Makefile.in 2010-02-24 22:41:57.803849839 +0000
|
||||
@@ -327,7 +327,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
|
||||
@@ -335,15 +334,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`
|
||||
@@ -351,7 +347,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`
|
||||
@@ -359,7 +354,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`
|
||||
@@ -367,7 +361,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 \
|
||||
diff -ruN courier-imap-4.7.0-orig/makedat/Makefile.in courier-imap-4.7.0/makedat/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/makedat/Makefile.in 2009-11-22 14:45:22.000000000 +0000
|
||||
+++ courier-imap-4.7.0/makedat/Makefile.in 2010-02-24 22:41:57.803849839 +0000
|
||||
@@ -210,7 +210,6 @@
|
||||
makedatprog_SOURCES = makedatprog.c
|
||||
makedatprog_DEPENDENCIES = @dblibrary@
|
||||
makedatprog_LDADD = @dblibrary@
|
||||
-makedatprog_LDFLAGS = -static
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
diff -ruN courier-imap-4.7.0-orig/md5/Makefile.in courier-imap-4.7.0/md5/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/md5/Makefile.in 2009-11-22 14:45:27.000000000 +0000
|
||||
+++ courier-imap-4.7.0/md5/Makefile.in 2010-02-24 22:41:57.807850020 +0000
|
||||
@@ -218,7 +218,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
|
||||
diff -ruN courier-imap-4.7.0-orig/rfc1035/Makefile.in courier-imap-4.7.0/rfc1035/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/rfc1035/Makefile.in 2009-11-22 14:45:45.000000000 +0000
|
||||
+++ courier-imap-4.7.0/rfc1035/Makefile.in 2010-02-24 22:41:57.807850020 +0000
|
||||
@@ -249,7 +249,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 \
|
||||
@@ -260,7 +259,6 @@
|
||||
../random128/librandom128.la ../soxwrap/libsoxwrap.a \
|
||||
`cat ../soxwrap/soxlibs.dep`
|
||||
|
||||
-testspf_LDFLAGS = -static
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
diff -ruN courier-imap-4.7.0-orig/rfc2045/Makefile.in courier-imap-4.7.0/rfc2045/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/rfc2045/Makefile.in 2009-11-22 21:22:32.000000000 +0000
|
||||
+++ courier-imap-4.7.0/rfc2045/Makefile.in 2010-02-24 22:41:57.811850201 +0000
|
||||
@@ -257,17 +257,14 @@
|
||||
../unicode/libunicode.la ../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/libunicode.la ../numlib/libnumlib.la ../unicode/libunicode.la
|
||||
makemime_DEPENDENCIES = $(makemime_LDADD)
|
||||
-makemime_LDFLAGS = -static
|
||||
headercheck_SOURCES = headercheck.c
|
||||
headercheck_LDADD = librfc2045.la ../rfc822/librfc822.la ../numlib/libnumlib.la \
|
||||
../unicode/libunicode.la
|
||||
|
||||
headercheck_DEPENDENCIES = $(headercheck_LDADD)
|
||||
-headercheck_LDFLAGS = -static
|
||||
all: $(BUILT_SOURCES) rfc2045_config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
diff -ruN courier-imap-4.7.0-orig/rfc822/Makefile.in courier-imap-4.7.0/rfc822/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/rfc822/Makefile.in 2009-11-22 21:22:30.000000000 +0000
|
||||
+++ courier-imap-4.7.0/rfc822/Makefile.in 2010-02-24 22:41:57.815850381 +0000
|
||||
@@ -240,11 +240,9 @@
|
||||
testsuite_SOURCES = testsuite.c
|
||||
testsuite_DEPENDENCIES = librfc822.la
|
||||
testsuite_LDADD = librfc822.la
|
||||
-testsuite_LDFLAGS = -static
|
||||
reftest_SOURCES = reftest.c imaprefs.h
|
||||
reftest_DEPENDENCIES = librfc822.la ../unicode/libunicode.la
|
||||
reftest_LDADD = librfc822.la ../unicode/libunicode.la
|
||||
-reftest_LDFLAGS = -static
|
||||
EXTRA_DIST = testsuite.txt reftest.txt $(BUILT_SOURCES)
|
||||
all: $(BUILT_SOURCES) config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
diff -ruN courier-imap-4.7.0-orig/sha1/Makefile.in courier-imap-4.7.0/sha1/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/sha1/Makefile.in 2009-11-22 14:46:00.000000000 +0000
|
||||
+++ courier-imap-4.7.0/sha1/Makefile.in 2010-02-24 22:41:57.815850381 +0000
|
||||
@@ -218,7 +218,6 @@
|
||||
testsuite_SOURCES = testsuite.c
|
||||
testsuite_DEPENDENCIES = libsha1.la
|
||||
testsuite_LDADD = $(testsuite_DEPENDENCIES)
|
||||
-testsuite_LDFLAGS = -static
|
||||
EXTRA_DIST = testsuite.txt hmac.c
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
diff -ruN courier-imap-4.7.0-orig/tcpd/Makefile.in courier-imap-4.7.0/tcpd/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/tcpd/Makefile.in 2009-11-22 14:46:09.000000000 +0000
|
||||
+++ courier-imap-4.7.0/tcpd/Makefile.in 2010-02-24 22:41:57.819850562 +0000
|
||||
@@ -291,11 +291,9 @@
|
||||
../md5/libmd5.la ../random128/librandom128.la \
|
||||
$(couriertcpd_t:%=-Wl,%)
|
||||
|
||||
-couriertcpd_LDFLAGS = -static
|
||||
tlscachetest_SOURCES = tlscachetest.c
|
||||
tlscachetest_DEPENDENCIES = ../numlib/libnumlib.la ../liblock/liblock.la
|
||||
tlscachetest_LDADD = ../numlib/libnumlib.la ../liblock/liblock.la
|
||||
-tlscachetest_LDFLAGS = -static
|
||||
libspipe_la_SOURCES = spipe.c spipe.h
|
||||
couriertls_SOURCES = starttls.c argparse.c argparse.h
|
||||
couriertls_t = @soxdep@
|
||||
@@ -309,7 +307,6 @@
|
||||
../numlib/libnumlib.la ../liblock/liblock.la \
|
||||
../soxwrap/libsoxwrap.a $(couriertls_t:%=-Wl,%)
|
||||
|
||||
-couriertls_LDFLAGS = -static
|
||||
libcouriertlsopenssl_la_SOURCES = libcouriertls.c libcouriertls.h tlsinfo.c
|
||||
libcouriertlsopenssl_la_LIBADD = @openssldep@
|
||||
libcouriertlsgnutls_la_SOURCES = libcouriergnutls.c tlsinfo.c
|
||||
diff -ruN courier-imap-4.7.0-orig/unicode/Makefile.in courier-imap-4.7.0/unicode/Makefile.in
|
||||
--- courier-imap-4.7.0-orig/unicode/Makefile.in 2009-11-22 14:46:15.000000000 +0000
|
||||
+++ courier-imap-4.7.0/unicode/Makefile.in 2010-02-24 22:41:57.823850743 +0000
|
||||
@@ -235,7 +235,6 @@
|
||||
unicode_info_SOURCES = unicodeinfo.c
|
||||
unicode_info_DEPENDENCIES = libunicode.la
|
||||
unicode_info_LDADD = libunicode.la
|
||||
-unicode_info_LDFLAGS = -static
|
||||
ISO8859CFILES = iso88591.c iso88592.c iso88593.c iso88594.c iso88595.c\
|
||||
iso88596.c iso88597.c iso88598.c iso88599.c iso885910.c iso885913.c\
|
||||
iso885914.c iso885915.c
|
351
courier-imap-4.8.0-certsdir.patch
Normal file
351
courier-imap-4.8.0-certsdir.patch
Normal file
@ -0,0 +1,351 @@
|
||||
diff -ruN courier-imap-4.8.0-orig/configure courier-imap-4.8.0/configure
|
||||
--- courier-imap-4.8.0-orig/configure 2010-05-30 23:20:04.000000000 +0200
|
||||
+++ courier-imap-4.8.0/configure 2010-08-05 16:27:03.000000000 +0200
|
||||
@@ -890,6 +890,7 @@
|
||||
with_socks
|
||||
with_authchangepwdir
|
||||
with_package
|
||||
+with_certsdir
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1540,6 +1541,7 @@
|
||||
|
||||
--with-db=gdbm Use the GDBM library.
|
||||
--with-db=db Use the libdb.a library.
|
||||
+ --with-certsdir[=ARG] Directory where certs are created
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
@@ -11104,6 +11106,12 @@
|
||||
HAVE_HTML_FALSE=
|
||||
fi
|
||||
|
||||
+# Check whether --with-certsdir was given.
|
||||
+if test "${with_certsdir+set}" = set; then :
|
||||
+ withval=$with_certsdir; certsdir="$withval"
|
||||
+else
|
||||
+ certsdir=$datadir
|
||||
+fi
|
||||
|
||||
ac_config_files="$ac_config_files Makefile dbobj.h dbobj.config imapd.rc imapd-ssl.rc pop3d.rc pop3d-ssl.rc courier-imap.sysvinit courier-imap.spec courier-imap.lpspec INSTALL.html packaging/suse/courier-imap.init"
|
||||
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/configure courier-imap-4.8.0/imap/configure
|
||||
--- courier-imap-4.8.0-orig/imap/configure 2010-05-30 23:20:45.000000000 +0200
|
||||
+++ courier-imap-4.8.0/imap/configure 2010-08-05 16:30:02.000000000 +0200
|
||||
@@ -753,6 +753,7 @@
|
||||
HAVE_SGML_FALSE
|
||||
HAVE_SGML_TRUE
|
||||
mydatadir
|
||||
+certsdir
|
||||
smap
|
||||
NETLIBS
|
||||
dblibrary
|
||||
@@ -902,6 +903,7 @@
|
||||
enable_workarounds_for_imap_client_bugs
|
||||
with_dirsync
|
||||
with_smap
|
||||
+with_certsdir
|
||||
with_package
|
||||
with_version
|
||||
with_trashquota
|
||||
@@ -1556,14 +1558,15 @@
|
||||
both]
|
||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||
--with-mailer=prog Your mail submission program
|
||||
- --with-random=/dev/urandom - location of the system random file generator
|
||||
---without-random - there is no system random file generator
|
||||
+ --with-random=/dev/urandom - location of the system random file generator
|
||||
+ --without-random - there is no system random file generator
|
||||
|
||||
--with-piddir Directory where imapd.pid is created
|
||||
|
||||
- --with-dirsync Manually sync queue file directory
|
||||
- --without-smap Do not compile SMAP support
|
||||
- --with-trashquota Count deleted messages as part of the quota
|
||||
+ --with-dirsync Manually sync queue file directory
|
||||
+ --without-smap Do not compile SMAP support
|
||||
+ --with-certsdir[=ARG] Directory where certs are created
|
||||
+ --with-trashquota Count deleted messages as part of the quota
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
@@ -16506,6 +16509,13 @@
|
||||
eval "sysconfdir=$sysconfdir"
|
||||
eval "localstatedir=$localstatedir"
|
||||
|
||||
+# Check whether --with-certsdir was given.
|
||||
+if test "${with_certsdir+set}" = set; then :
|
||||
+ withval=$with_certsdir; certsdir="$withval"
|
||||
+else
|
||||
+ certsdir="$datadir"
|
||||
+fi
|
||||
+
|
||||
mydatadir="$datadir"
|
||||
# Avoid useless autoconf warning
|
||||
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/imapd.cnf.openssl.in courier-imap-4.8.0/imap/imapd.cnf.openssl.in
|
||||
--- courier-imap-4.8.0-orig/imap/imapd.cnf.openssl.in 2007-11-04 21:49:58.000000000 +0100
|
||||
+++ courier-imap-4.8.0/imap/imapd.cnf.openssl.in 2010-08-05 14:42:33.000000000 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
-RANDFILE = @mydatadir@/imapd.rand
|
||||
+RANDFILE = @certsdir@/imapd.rand
|
||||
|
||||
[ req ]
|
||||
default_bits = 1024
|
||||
@@ -15,7 +15,7 @@
|
||||
O=Courier Mail Server
|
||||
OU=Automatically-generated IMAP SSL key
|
||||
CN=localhost
|
||||
-emailAddress=postmaster@example.com
|
||||
+emailAddress=postmaster@localhost
|
||||
|
||||
|
||||
[ cert_type ]
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/imapd-ssl.dist.in courier-imap-4.8.0/imap/imapd-ssl.dist.in
|
||||
--- courier-imap-4.8.0-orig/imap/imapd-ssl.dist.in 2009-08-13 05:06:42.000000000 +0200
|
||||
+++ courier-imap-4.8.0/imap/imapd-ssl.dist.in 2010-08-05 14:37:38.000000000 +0200
|
||||
@@ -260,7 +260,7 @@
|
||||
#
|
||||
# This is an experimental feature.
|
||||
|
||||
-TLS_CERTFILE=@mydatadir@/imapd.pem
|
||||
+TLS_CERTFILE=@certsdir@/imapd.pem
|
||||
|
||||
##NAME: TLS_TRUSTCERTS:0
|
||||
#
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/Makefile.in courier-imap-4.8.0/imap/Makefile.in
|
||||
--- courier-imap-4.8.0-orig/imap/Makefile.in 2010-05-30 23:20:45.000000000 +0200
|
||||
+++ courier-imap-4.8.0/imap/Makefile.in 2010-08-05 14:40:45.000000000 +0200
|
||||
@@ -234,6 +234,7 @@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
cacerts = @cacerts@
|
||||
+certsdir = @certsdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
dblibrary = @dblibrary@
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/mkimapdcert.8.in courier-imap-4.8.0/imap/mkimapdcert.8.in
|
||||
--- courier-imap-4.8.0-orig/imap/mkimapdcert.8.in 2010-02-20 05:12:44.000000000 +0100
|
||||
+++ courier-imap-4.8.0/imap/mkimapdcert.8.in 2010-08-05 14:47:01.000000000 +0200
|
||||
@@ -29,18 +29,18 @@
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
IMAP over SSL requires a valid, signed, X\&.509 certificate\&. The default location for the certificate file is
|
||||
-@datadir@/imapd\&.pem\&.
|
||||
+@certsdir@/imapd\&.pem\&.
|
||||
\fBmkimapdcert\fR
|
||||
generates a self\-signed X\&.509 certificate, mainly for testing\&. For production use the X\&.509 certificate must be signed by a recognized certificate authority, in order for mail clients to accept the certificate\&.
|
||||
.PP
|
||||
|
||||
-@datadir@/imapd\&.pem
|
||||
+@certsdir@/imapd\&.pem
|
||||
must be owned by the @mailuser@ user and have no group or world permissions\&. The
|
||||
\fBmkimapdcert\fR
|
||||
command will enforce this\&. To prevent an unfortunate accident,
|
||||
\fBmkimapdcert\fR
|
||||
will not work if
|
||||
-\fB@datadir@/imapd\&.pem\fR
|
||||
+\fB@certsdir@/imapd\&.pem\fR
|
||||
already exists\&.
|
||||
.PP
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
to be installed\&.
|
||||
.SH "FILES"
|
||||
.PP
|
||||
-@datadir@/imapd\&.pem
|
||||
+@certsdir@/imapd\&.pem
|
||||
.RS 4
|
||||
X\&.509 certificate\&.
|
||||
.RE
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/mkimapdcert.html.in courier-imap-4.8.0/imap/mkimapdcert.html.in
|
||||
--- courier-imap-4.8.0-orig/imap/mkimapdcert.html.in 2010-02-20 05:12:44.000000000 +0100
|
||||
+++ courier-imap-4.8.0/imap/mkimapdcert.html.in 2010-08-05 14:39:46.000000000 +0200
|
||||
@@ -7,22 +7,22 @@
|
||||
--></head><body><div class="refentry" title="mkimapdcert"><a id="mkimapdcert" shape="rect"> </a><div class="titlepage"/><div class="refnamediv"><h2>Name</h2><p>mkimapdcert — create a test SSL certificate for IMAP over SSL</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">@sbindir@/mkimapdcert</code> </p></div></div><div class="refsect1" title="DESCRIPTION"><a id="id381669" shape="rect"> </a><h2>DESCRIPTION</h2><p>
|
||||
IMAP over SSL requires a valid, signed, X.509 certificate. The default
|
||||
location for the certificate file is
|
||||
-<code class="filename">@datadir@/imapd.pem</code>.
|
||||
+<code class="filename">@certsdir@/imapd.pem</code>.
|
||||
<span class="command"><strong>mkimapdcert</strong></span> generates a self-signed X.509 certificate,
|
||||
mainly for
|
||||
testing.
|
||||
For production use the X.509 certificate must be signed by a
|
||||
recognized certificate authority, in order for mail clients to accept the
|
||||
certificate.</p><p>
|
||||
-<code class="filename">@datadir@/imapd.pem</code> must be owned by the
|
||||
+<code class="filename">@certsdir@/imapd.pem</code> must be owned by the
|
||||
@mailuser@ user and
|
||||
have no group or world permissions.
|
||||
The <span class="command"><strong>mkimapdcert</strong></span> command will
|
||||
enforce this. To prevent an unfortunate accident,
|
||||
<span class="command"><strong>mkimapdcert</strong></span>
|
||||
-will not work if <span class="command"><strong>@datadir@/imapd.pem</strong></span> already exists.</p><p>
|
||||
+will not work if <span class="command"><strong>@certsdir@/imapd.pem</strong></span> already exists.</p><p>
|
||||
<span class="command"><strong>mkimapdcert</strong></span> requires
|
||||
-<span class="application">OpenSSL</span> to be installed.</p></div><div class="refsect1" title="FILES"><a id="id397983" shape="rect"> </a><h2>FILES</h2><div class="variablelist"><dl><dt><span class="term">@datadir@/imapd.pem</span></dt><dd>
|
||||
+<span class="application">OpenSSL</span> to be installed.</p></div><div class="refsect1" title="FILES"><a id="id397983" shape="rect"> </a><h2>FILES</h2><div class="variablelist"><dl><dt><span class="term">@certsdir@/imapd.pem</span></dt><dd>
|
||||
X.509 certificate.
|
||||
</dd><dt><span class="term">@sysconfdir@/imapd.cnf</span></dt><dd>
|
||||
Parameters used by OpenSSL to
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/mkimapdcert.in courier-imap-4.8.0/imap/mkimapdcert.in
|
||||
--- courier-imap-4.8.0-orig/imap/mkimapdcert.in 2007-11-04 21:49:58.000000000 +0100
|
||||
+++ courier-imap-4.8.0/imap/mkimapdcert.in 2010-08-05 14:36:53.000000000 +0200
|
||||
@@ -18,41 +18,41 @@
|
||||
|
||||
prefix="@prefix@"
|
||||
|
||||
-if test -f @mydatadir@/imapd.pem
|
||||
+if test -f @certsdir@/imapd.pem
|
||||
then
|
||||
- echo "@mydatadir@/imapd.pem already exists."
|
||||
+ echo "@certsdir@/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 @certsdir@/imapd.pem
|
||||
+ rm -f @certsdir@/imapd.rand
|
||||
+ rm -f @certsdir@/imapd.key
|
||||
+ rm -f @certsdir@/imapd.cert
|
||||
exit 1
|
||||
}
|
||||
|
||||
-cd @mydatadir@
|
||||
+cd @certsdir@
|
||||
|
||||
if test "@ssllib@" = "openssl"
|
||||
then
|
||||
- cp /dev/null @mydatadir@/imapd.pem
|
||||
- chmod 600 @mydatadir@/imapd.pem
|
||||
- chown @mailuser@ @mydatadir@/imapd.pem
|
||||
+ cp /dev/null @certsdir@/imapd.pem
|
||||
+ chmod 600 @certsdir@/imapd.pem
|
||||
+ chown @mailuser@ @certsdir@/imapd.pem
|
||||
|
||||
- dd if=@RANDOMV@ of=@mydatadir@/imapd.rand count=1 2>/dev/null
|
||||
+ dd if=@RANDOMV@ of=@certsdir@/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 @certsdir@/imapd.pem -keyout @certsdir@/imapd.pem || cleanup
|
||||
+ @OPENSSL@ gendh -rand @certsdir@/imapd.rand 512 >>@certsdir@/imapd.pem || cleanup
|
||||
+ @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @certsdir@/imapd.pem || cleanup
|
||||
+ rm -f @certsdir@/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 @certsdir@/imapd.key
|
||||
+ chmod 600 @certsdir@/imapd.key
|
||||
+ cp /dev/null @certsdir@/imapd.cert
|
||||
+ chmod 600 @certsdir@/imapd.cert
|
||||
|
||||
@CERTTOOL@ --generate-privkey --outfile imapd.key
|
||||
@CERTTOOL@ --generate-self-signed --load-privkey imapd.key --outfile imapd.cert --template @sysconfdir@/imapd.cnf
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/mkpop3dcert.in courier-imap-4.8.0/imap/mkpop3dcert.in
|
||||
--- courier-imap-4.8.0-orig/imap/mkpop3dcert.in 2007-11-04 21:49:58.000000000 +0100
|
||||
+++ courier-imap-4.8.0/imap/mkpop3dcert.in 2010-08-05 14:35:48.000000000 +0200
|
||||
@@ -18,41 +18,41 @@
|
||||
|
||||
prefix="@prefix@"
|
||||
|
||||
-if test -f @mydatadir@/pop3d.pem
|
||||
+if test -f @certsdir@/pop3d.pem
|
||||
then
|
||||
- echo "@mydatadir@/pop3d.pem already exists."
|
||||
+ echo "@certsdir@/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 @certsdir@/pop3d.pem
|
||||
+ rm -f @certsdir@/pop3d.rand
|
||||
+ rm -f @certsdir@/pop3d.key
|
||||
+ rm -f @certsdir@/pop3d.cert
|
||||
exit 1
|
||||
}
|
||||
|
||||
-cd @mydatadir@
|
||||
+cd @certsdir@
|
||||
|
||||
if test "@ssllib@" = "openssl"
|
||||
then
|
||||
- cp /dev/null @mydatadir@/pop3d.pem
|
||||
- chmod 600 @mydatadir@/pop3d.pem
|
||||
- chown @mailuser@ @mydatadir@/pop3d.pem
|
||||
+ cp /dev/null @certsdir@/pop3d.pem
|
||||
+ chmod 600 @certsdir@/pop3d.pem
|
||||
+ chown @mailuser@ @certsdir@/pop3d.pem
|
||||
|
||||
- dd if=@RANDOMV@ of=@mydatadir@/pop3d.rand count=1 2>/dev/null
|
||||
+ dd if=@RANDOMV@ of=@certsdir@/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 @certsdir@/pop3d.pem -keyout @certsdir@/pop3d.pem || cleanup
|
||||
+ @OPENSSL@ gendh -rand @certsdir@/pop3d.rand 512 >>@certsdir@/pop3d.pem || cleanup
|
||||
+ @OPENSSL@ x509 -subject -dates -fingerprint -noout -in @certsdir@/pop3d.pem || cleanup
|
||||
+ rm -f @certsdir@/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 @certsdir@/pop3d.key
|
||||
+ chmod 600 @certsdir@/pop3d.key
|
||||
+ cp /dev/null @certsdir@/pop3d.cert
|
||||
+ chmod 600 @certsdir@/pop3d.cert
|
||||
|
||||
@CERTTOOL@ --generate-privkey --outfile pop3d.key
|
||||
@CERTTOOL@ --generate-self-signed --load-privkey pop3d.key --outfile pop3d.cert --template @sysconfdir@/pop3d.cnf
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/pop3d.cnf.openssl.in courier-imap-4.8.0/imap/pop3d.cnf.openssl.in
|
||||
--- courier-imap-4.8.0-orig/imap/pop3d.cnf.openssl.in 2007-11-04 21:49:58.000000000 +0100
|
||||
+++ courier-imap-4.8.0/imap/pop3d.cnf.openssl.in 2010-08-05 14:43:48.000000000 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
-RANDFILE = @mydatadir@/pop3d.rand
|
||||
+RANDFILE = @certsdir@/pop3d.rand
|
||||
|
||||
[ req ]
|
||||
default_bits = 1024
|
||||
@@ -15,7 +15,7 @@
|
||||
O=Courier Mail Server
|
||||
OU=Automatically-generated POP3 SSL key
|
||||
CN=localhost
|
||||
-emailAddress=postmaster@example.com
|
||||
+emailAddress=postmaster@localhost
|
||||
|
||||
|
||||
[ cert_type ]
|
||||
diff -ruN courier-imap-4.8.0-orig/imap/pop3d-ssl.dist.in courier-imap-4.8.0/imap/pop3d-ssl.dist.in
|
||||
--- courier-imap-4.8.0-orig/imap/pop3d-ssl.dist.in 2009-08-13 05:06:42.000000000 +0200
|
||||
+++ courier-imap-4.8.0/imap/pop3d-ssl.dist.in 2010-08-05 14:43:05.000000000 +0200
|
||||
@@ -248,7 +248,7 @@
|
||||
#
|
||||
# This is an experimental feature.
|
||||
|
||||
-TLS_CERTFILE=@mydatadir@/pop3d.pem
|
||||
+TLS_CERTFILE=@certsdir@/pop3d.pem
|
||||
|
||||
##NAME: TLS_TRUSTCERTS:0
|
||||
#
|
3
courier-imap-4.8.0.tar.bz2
Normal file
3
courier-imap-4.8.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec7511a4398920a04f3bb60cf1208e29a9a5432baeff4d356a4ec142113bfbf2
|
||||
size 3362734
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a8deae0843a0ed5ae3c7fa774523978fcde38c4386488e3814092ae9d8b9fb67
|
||||
size 3352500
|
@ -1,25 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 11 12:46:50 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- update to 4.8.1
|
||||
* Makefile.am (imapd.cnf): Compatibility fixes.
|
||||
- 2010-08-15 Sam Varshavchik <mrsam@courier-mta.com>
|
||||
* maildir/maildirwatch.c (maildirwatch_alloc): Use alarm() to kill
|
||||
the process if FAMOpen() takes more than 15 seconds to return.
|
||||
Should prevent a hung process if FAM/Gamin is fubared.
|
||||
- 2010-07-11 Sam Varshavchik <mrsam@courier-mta.com>
|
||||
* pop3dserver.c: Make printed() and putchar() macros.
|
||||
- 2010-07-01 Sam Varshavchik <mrsam@courier-mta.com>
|
||||
* imapd.cnf pop3d.cnf (default_md): added default_md = sha1
|
||||
- 2010-06-28 Sam Varshavchik <mrsam@courier-mta.com>
|
||||
* rfc822/rfc822.c (rfc822_print_common_nameaddr): Prevent segfault if
|
||||
address decode fails.
|
||||
* Fix make check failure when libidn is not available.
|
||||
- 2010-05-31 Sam Varshavchik <mrsam@courier-mta.com>
|
||||
* Rebuilt man pages with updated stylesheets.
|
||||
- remove obsolete certsdir patch
|
||||
- remove LDFLAGS patch, add configure option --disable-static
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 5 16:06:36 UTC 2010 - chris@computersalat.de
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package courier-imap (Version 4.8.1)
|
||||
# spec file for package courier-imap (Version 4.8.0)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -20,8 +20,8 @@
|
||||
|
||||
Name: courier-imap
|
||||
Summary: An IMAP and POP3 Server for Maildir MTAs
|
||||
Version: 4.8.1
|
||||
Release: 1
|
||||
Version: 4.8.0
|
||||
Release: 2
|
||||
License: GPLv2+
|
||||
Group: Productivity/Networking/Email/Servers
|
||||
Url: http://www.courier-mta.org/imap/
|
||||
@ -35,7 +35,10 @@ Source7: courier-pop-ssl.init
|
||||
Source8: %{name}.firewall
|
||||
Source9: %{name}-ssl.firewall
|
||||
Patch0: %{name}-4.8.0-sbindir.patch
|
||||
Patch1: %{name}-4.7.0-LDFLAGS.patch
|
||||
Patch2: %{name}-ulimit_conf.diff
|
||||
# bnc#628487
|
||||
Patch3: %{name}-4.8.0-certsdir.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 910
|
||||
BuildRequires: audit-libs
|
||||
@ -80,7 +83,10 @@ install the entire Courier server.
|
||||
%prep
|
||||
%setup -n %{name}-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2
|
||||
# bnc#628487
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
@ -89,7 +95,6 @@ install the entire Courier server.
|
||||
--sysconfdir=%{_sysconfdir}/courier \
|
||||
--sharedstatedir=%{_sharedstatedir}/%{name} \
|
||||
--with-piddir=%{_localstatedir}/run \
|
||||
--disable-static \
|
||||
--disable-root-check \
|
||||
--enable-unicode \
|
||||
--with-authdaemonvar=%{_localstatedir}/run/authdaemon.%{name} \
|
||||
|
Loading…
Reference in New Issue
Block a user