9e566a4
Name: cyrus-imapd
9e566a4
Version: 2.3.1
5cd817a
Release: 2.4%{?dist}
38f2261
38f2261
# ********************** BUILD TIME OPTIONS START **********************
38f2261
38f2261
# To modify parameters, edit the .spec file or build like this:
38f2261
# rpm --rebuild --define='SEEN_DB skiplist' cyrus-imapd-2.x.x-x.src.rpm
38f2261
38f2261
# use saslauth group
9e566a4
%{!?SASLGROUP: %define SASLGROUP 0}
38f2261
# include deliver-wrapper
9e566a4
%{!?DEL_WRAP: %define DEL_WRAP 0}
38f2261
# use preforking cyrus.conf
9e566a4
%{!?PREFORK: %define PREFORK 1}
38f2261
# enable Netscape hack (recommended)
9e566a4
%{!?NETSCAPEHACK: %define NETSCAPEHACK 1}
38f2261
# enable IMAP4 LIST extensions
9e566a4
%{!?LISTEXT: %define LISTEXT 1}
38f2261
# enable IDLED support
9e566a4
%{!?IDLED: %define IDLED 1}
9e566a4
# enable SNMP support
9e566a4
%{!?SNMP: %define SNMP 0}
38f2261
# force syncronous updates on ext3
9e566a4
%{!?FORCESYNCEXT3: %define FORCESYNCEXT3 0}
38f2261
# include autocreate feature
9e566a4
%{!?AUTOCREATE: %define AUTOCREATE 1}
38f2261
# include groupcache feature
9e566a4
%{!?GROUPCACHE: %define GROUPCACHE 1}
38f2261
# don't check for RFC compliant line termination (bare newlines)
9e566a4
%{!?NO_BARE_NL: %define NO_BARE_NL 0}
38f2261
# used syslog facility for logging
9e566a4
%{!?SYSLOGFACILITY: %define SYSLOGFACILITY MAIL}
38f2261
# use -fpie for linking
9e566a4
%{!?USEPIE: %define USEPIE 0}
38f2261
38f2261
# ********************** BUILD TIME OPTIONS END ************************
38f2261
9e566a4
%define _acversion 2.59
9e566a4
%define _use_internal_dependency_generator 0
9e566a4
%define _rhver %(eval rpm -q --queryformat '%{VERSION}' $(rpm -qf /etc/redhat-release))
9e566a4
%define _rhrelease %(eval %{__cat} /etc/redhat-release)
9e566a4
%define _dbver db4
9e566a4
%define _dbrpmver %(eval "rpm -q %{_dbver}")
38f2261
# Do we need the perl install hack for RedHat > 7.3 ?
9e566a4
%define _perlhack %(eval [ %{_rhver} = "6.2" -o %{_rhver} = "7.0" -o %{_rhver} = "7.1" -o %{_rhver} = "7.2" -o %{_rhver} = "7.3" -o %{_rhver} = "2.1AS" -o %{_rhver} = "2.1ES" ] && echo 0 || echo 1)
9e566a4
%define _perl_man3dir %(eval "$(perl -V:man3dir)"; echo $man3dir)
9e566a4
%define _withldap %(eval "rpm -q --requires openldap | grep -q ^libsasl2 && echo 1 || echo 0")
9e566a4
%define _snmpver %(eval "rpm -q --quiet ucd-snmp && echo ucd || echo net")
38f2261
# Disable -debuginfo package generation
9e566a4
#define debug_package %{nil}
9e566a4
# Do we have filesystem >= 2.3.2 (new pki location) ?
9e566a4
%define use_etc_pki %(eval [ $(rpm -q --queryformat '%{VERSION}' filesystem \| sed -e "s/\\.//g") -ge 232 ] && echo 1 || echo 0 )
9e566a4
%if %{use_etc_pki}
9e566a4
%define certs_dir %{_sysconfdir}/pki/tls/certs
7c68531
%define pki_dir %{_sysconfdir}/pki/%{name}
9e566a4
%else
9e566a4
%define certs_dir %{_datadir}/ssl/certs
9e566a4
%define pki_dir %{_datadir}/ssl/certs
9e566a4
%endif
7c68531
%define ssl_pem_file %{pki_dir}/%{name}.pem
9e566a4
%define uid 76
38f2261
%if %{SASLGROUP}
9e566a4
%define gid 76
9e566a4
%define _saslgroup saslauth
9e566a4
%endif
9e566a4
%define _cyrususer cyrus
9e566a4
%define _cyrusgroup mail
9e566a4
%define _vardata %{_var}/lib/imap
9e566a4
%define _spooldata %{_var}/spool/imap
9e566a4
%define _cyrexecdir %{_exec_prefix}/lib/%{name}
9e566a4
%define _confdir master/conf
9e566a4
%define _contribdir doc/contrib
38f2261
%if %{PREFORK}
9e566a4
%define _cyrusconf %{_confdir}/prefork.conf
38f2261
%else
9e566a4
%define _cyrusconf %{_confdir}/normal.conf
9e566a4
%endif
9e566a4
9e566a4
Summary: A high-performance mail server with IMAP, POP3, NNTP and SIEVE support.
9e566a4
License: BSD
9e566a4
Group: System Environment/Daemons
9e566a4
URL: http://asg.web.cmu.edu/cyrus/imapd/
9e566a4
#Packager: Simon Matter <simon.matter@invoca.ch>
9e566a4
#Vendor: Invoca Systems
9e566a4
#Distribution: Invoca Linux Server
9e566a4
Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
9e566a4
Source1: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz.sig
9e566a4
Source2: http://ftp.gnu.org/gnu/autoconf/autoconf-%{_acversion}.tar.gz
9e566a4
Source3: cyrus-deliver-wrapper.c
9e566a4
Source4: cyrus-user-procmailrc.template
9e566a4
Source5: cyrus-imapd.logrotate
9e566a4
Source6: cyrus-imapd.imap-2.3.x-conf
9e566a4
Source7: cyrus-imapd.pam-config
9e566a4
Source8: http://email.uoa.gr/projects/cyrus/autocreate/README.autocreate-cyrus-2.3
9e566a4
Source9: http://email.uoa.gr/projects/cyrus/autosievefolder/README.autosievefolder
9e566a4
Source10: http://oss.netfarm.it/download/skiplist.py
9e566a4
Source11: cyrus-imapd.init
9e566a4
Source12: cyrus-imapd.sysconfig
9e566a4
Source13: cyrus-imapd.cvt_cyrusdb_all
9e566a4
Source14: cyrus-imapd.magic
9e566a4
Source15: http://clement.hermann.free.fr/scripts/Cyrus/imapcreate.pl
9e566a4
Source16: http://eu.dl.sourceforge.net/cyrus-utils/cyrus_ldap_quota.pl
9e566a4
Source17: ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/batchreconstruct
9e566a4
Source18: ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/bsd2cyrus
9e566a4
Source19: ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/cpmsg
9e566a4
Source20: ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/folderxfer
9e566a4
Source21: ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/inboxfer
9e566a4
Source22: http://email.uoa.gr/download/cyrus/cyrus_sharedbackup/cyrus_sharedbackup-0.1.tar.gz
9e566a4
Source23: cyrus-imapd-README.RPM
9e566a4
Source24: cyrus-imapd-README.HOWTO-recover-mailboxes.db
9e566a4
Source25: cyrus-imapd.cron-daily
9e566a4
Source26: cyrus-procmailrc
9e566a4
Source27: cyrus-imapd-procmail+cyrus.mc
9e566a4
Source28: cyrus-imapd.rpm_set_permissions
9e566a4
Source29: cyrus-imapd-sendmail-8.12.9-cyrusv2.m4
9e566a4
Source30: cyrus-imapd-README.contrib
9e566a4
Source31: cyrus-imapd-README.groupcache
9e566a4
Source32: cyrus-imapd.upd_groupcache
9e566a4
Source33: cyrus-imapd-README.skiplist_recovery
9e566a4
Patch0: cyrus-imapd-2.2.12-no_transfig.patch
9e566a4
Patch1: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.1/cyrus-imapd-2.3.1-autocreate-0.10-0.diff
9e566a4
Patch2: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.1/cyrus-imapd-2.3.1-autosievefolder-0.6-0.diff
9e566a4
Patch3: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.1/cyrus-imapd-2.3.1-rmquota+deletemailbox-0.2-1.diff
9e566a4
Patch4: http://servercc.oakton.edu/~jwade/cyrus/cyrus-imapd-2.1.3/cyrus-imapd-2.1.3-flock.patch
9e566a4
Patch5: cyrus-imapd-2.2.12-munge8bit.patch
9e566a4
Patch6: cyrus-imapd-2.1.16-getrlimit.patch
9e566a4
Patch7: cyrus-imapd-2.1.15-nobarenewlinescheck.patch
9e566a4
Patch8: cyrus-imapd-2.2.10-groupcache.patch
9e566a4
Patch9: cyrus-imapd-2.3.1-config_defaults.patch
9e566a4
Patch10: cyrus-imapd-acceptinvalidfrom.patch
9e566a4
Patch11: cyrus-imapd-2.2.12-dam_invalid_id-christos.patch
9e566a4
Patch12: cyrus-imapd-2.2.12-notify_sms.patch
9e566a4
Patch13: allow_auth_plain_proxying.patch
9e566a4
Patch14: cyrus-imapd-2.3.1-authid_normalize.patch
9e566a4
Patch15: cyrus-imapd-2.3.1-make_md5_defaults.patch
9e566a4
# Patches >= 100 are / will be fixed in CVS
9e566a4
Patch100: cyrus-imapd-2.3.1-make_md5.patch
9e566a4
Patch101: cyrus-imapd-2.3.1-backend_sigsegv.patch
9e566a4
Patch102: cyrus-imapd-2.3.1-replication_policycheck.patch
9e566a4
BuildRoot: %{_tmppath}/%{name}-%{version}-root
9e566a4
BuildPrereq: cyrus-sasl-devel >= 2.1.15-1, perl, tcp_wrappers
9e566a4
BuildPrereq: %{_dbver}-devel, openssl-devel, pkgconfig
9e566a4
BuildPrereq: flex, bison, groff >= 1.15-8, automake
9e566a4
%if %{_withldap}
9e566a4
BuildPrereq: openldap-devel
9e566a4
%endif
9e566a4
%if %{SNMP}
9e566a4
BuildPrereq: %{_snmpver}-snmp-devel, lm_sensors-devel
38f2261
%endif
9e566a4
Prereq: e2fsprogs, /sbin/chkconfig, /sbin/service
9e566a4
Prereq: %{name}-utils = %{version}-%{release}
9e566a4
Requires: cyrus-sasl >= 2.1.15, file >= 3.35-1, %{_dbver}-utils
9e566a4
Obsoletes: %{name}-murder, %{name}-nntp
38f2261
38f2261
%description
38f2261
The %{name} package contains the core of the Cyrus IMAP server.
38f2261
It is a scaleable enterprise mail system designed for use from
38f2261
small to large enterprise environments using standards-based
38f2261
internet mail technologies.
38f2261
38f2261
A full Cyrus IMAP implementation allows a seamless mail and bulletin
38f2261
board environment to be set up across multiple servers. It differs from
38f2261
other IMAP server implementations in that it is run on "sealed"
9e566a4
servers, where users are not normally permitted to log in and have no
9e566a4
system account on the server. The mailbox database is stored in parts
9e566a4
of the filesystem that are private to the Cyrus IMAP server. All user
9e566a4
access to mail is through software using the IMAP, POP3 or KPOP
9e566a4
protocols. It also includes support for virtual domains, NNTP,
9e566a4
mailbox annotations, and much more. The private mailbox database design
9e566a4
gives the server large advantages in efficiency, scalability and
9e566a4
administratability. Multiple concurrent read/write connections to the
9e566a4
same mailbox are permitted. The server supports access control lists on
9e566a4
mailboxes and storage quotas on mailbox hierarchies.
9e566a4
9e566a4
The Cyrus IMAP server supports the IMAP4rev1 protocol described
9e566a4
in RFC 3501. IMAP4rev1 has been approved as a proposed standard.
9e566a4
It supports any authentication mechanism available from the SASL
9e566a4
library, imaps/pop3s/nntps (IMAP/POP3/NNTP encrypted using SSL and
9e566a4
TLSv1) can be used for security. The server supports single instance
9e566a4
store where possible when an email message is addressed to multiple
9e566a4
recipients, SIEVE provides server side email filtering.
38f2261
38f2261
%package devel
38f2261
Group: Development/Libraries
38f2261
Summary: Cyrus IMAP server development files.
38f2261
Requires: %{name} = %{version}-%{release}
38f2261
38f2261
%description devel
38f2261
The %{name}-devel package contains header files and libraries
38f2261
necessary for developing applications which use the imclient library.
38f2261
38f2261
%package -n perl-Cyrus
38f2261
Group: System Environment/Libraries
38f2261
Summary: Cyrus IMAP server utility Perl modules.
38f2261
38f2261
%description -n perl-Cyrus
38f2261
The perl-Cyrus package contains Perl modules necessary to use the
38f2261
Cyrus IMAP server administration utilities.
38f2261
38f2261
%package utils
38f2261
Group: Applications/System
38f2261
Summary: Cyrus IMAP server administration utilities.
9e566a4
Prereq: diffutils, findutils, grep, sed
38f2261
Requires: perl-Cyrus = %{version}-%{release}
38f2261
38f2261
%description utils
38f2261
The %{name}-utils package contains administrative tools for the
38f2261
Cyrus IMAP server. It can be installed on systems other than the
38f2261
one running the server.
38f2261
38f2261
%prep
9e566a4
%setup -q -a 2
9e566a4
%patch0 -p1 -b .no_transfig
38f2261
%if %{AUTOCREATE}
38f2261
%patch1 -p1 -b .autocreate
38f2261
%patch2 -p1 -b .autosievefolder
38f2261
%patch3 -p1 -b .rmquota
38f2261
%endif
38f2261
%patch4 -p1 -b .flock
38f2261
%patch5 -p1 -b .munge8bit
38f2261
%patch6 -p1 -b .getrlimit
38f2261
%if %{NO_BARE_NL}
38f2261
%patch7 -p1 -b .nobarenewlinescheck
38f2261
%endif
38f2261
%if %{GROUPCACHE}
38f2261
%patch8 -p1 -b .groupcache
38f2261
%endif
9e566a4
%patch9 -p1 -b .config_defaults
38f2261
%patch10 -p1 -b .acceptinvalidfrom
9e566a4
%patch11 -p1 -b .dam_invalid_id
9e566a4
%patch12 -p1 -b .notify_sms
9e566a4
%patch13 -p0 -b .allow_auth_plain
9e566a4
%patch14 -p1 -b .authid_normalize
9e566a4
%patch15 -p1 -b .make_md5_defaults
9e566a4
%patch100 -p1 -b .make_md5
9e566a4
%patch101 -p1 -b .backend_sigsegv
9e566a4
%patch102 -p1 -b .replication_policycheck
9e566a4
9e566a4
# build and run private autoconf
9e566a4
autodir=$(pwd)/auto-instroot
9e566a4
pushd autoconf-%{_acversion}
9e566a4
./configure --prefix=$autodir
9e566a4
make all install
9e566a4
popd
9e566a4
PATH=${autodir}/bin:${PATH}
9e566a4
aclocal -I cmulocal
9e566a4
autoheader
9e566a4
autoconf -f
38f2261
38f2261
%build
9e566a4
CPPFLAGS="-I%{_includedir}/et"; export CPPFLAGS
38f2261
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
9e566a4
if pkg-config openssl; then
9e566a4
  CPPFLAGS="$(pkg-config --cflags-only-I openssl) $CPPFLAGS"; export CPPFLAGS
9e566a4
  CFLAGS="$(pkg-config --cflags openssl) $CFLAGS"; export CFLAGS
9e566a4
  LDFLAGS="$(pkg-config --libs-only-L openssl) $LDFLAGS"; export LDFLAGS
9e566a4
fi
38f2261
CCDLFLAGS="-rdynamic"; export CCDLFLAGS
38f2261
%if %{USEPIE}
38f2261
%ifnarch ppc ppc64
38f2261
LDFLAGS="$LDFLAGS -pie"; export LDFLAGS
38f2261
%endif
38f2261
%endif
38f2261
38f2261
%{configure} \
38f2261
%if %{NETSCAPEHACK}
38f2261
  --enable-netscapehack \
38f2261
%endif
38f2261
%if %{LISTEXT}
38f2261
  --enable-listext \
38f2261
%endif
38f2261
%if %{IDLED}
9e566a4
  --enable-idled \
9e566a4
%endif
9e566a4
%if %{_withldap}
9e566a4
  --with-ldap \
9e566a4
%endif
9e566a4
%if %{SNMP}
9e566a4
  --with-snmp \
9e566a4
%else
9e566a4
  --without-snmp \
38f2261
%endif
38f2261
  --enable-murder \
9e566a4
  --enable-replication \
38f2261
  --enable-nntp \
38f2261
  --with-perl=%{__perl} \
38f2261
  --with-cyrus-prefix=%{_cyrexecdir} \
38f2261
  --with-service-path=%{_cyrexecdir} \
38f2261
  --with-bdb-incdir=%{_includedir}/%{_dbver} \
38f2261
  --with-extraident="Invoca-RPM-%{version}-%{release}" \
38f2261
  --with-syslogfacility=%{SYSLOGFACILITY}
38f2261
9e566a4
%{__make} -C man -f Makefile.dist
9e566a4
%{__make} -C doc -f Makefile.dist
38f2261
%{__make}
9e566a4
%{__make} -C notifyd notifytest
38f2261
%if %{DEL_WRAP}
38f2261
%{__cc} $CFLAGS -DLIBEXECDIR=\"%{_cyrexecdir}\" -Wall -o deliver-wrapper %{SOURCE3}
38f2261
%endif
38f2261
38f2261
# Modify docs master --> cyrus-master
38f2261
pushd man
38f2261
  %{__perl} -pi -e "s@master\(8\)@cyrus-master(8)@" $(ls *5 *8)
38f2261
popd
38f2261
pushd doc
38f2261
  %{__perl} -pi -e "s@master@cyrus-master@g;" man.html
38f2261
popd
38f2261
pushd doc/man
38f2261
  %{__perl} -pi -e "s@master\(8\)@cyrus-master(8)@;" $(ls *html)
38f2261
popd
38f2261
38f2261
# Modify path in perl scripts
38f2261
%{__perl} -pi -e "s@/usr/local/bin/perl@%{__perl}@" $(find . -type f -name "*.pl")
38f2261
38f2261
# Fix permissions on perl programs
38f2261
find . -type f -name "*.pl" -exec %{__chmod} 755 {} \;
38f2261
38f2261
# Cleanup of doc dir
38f2261
find doc perl -name CVS -type d | xargs -r %{__rm} -fr
9e566a4
find doc perl -name .cvsignore -type f | xargs -r %{__rm} -f
38f2261
find doc -name "*~" -type f | xargs -r %{__rm} -f
9e566a4
find doc -name "*.html.*" -type f | xargs -r %{__rm} -f
9e566a4
%{__rm} -f doc/Makefile.dist*
38f2261
%{__rm} -f doc/text/htmlstrip.c
38f2261
38f2261
# Create README.buildoptions
38f2261
%{__cat} << EOF >> doc/README.buildoptions
9e566a4
This RPM has been built on %{_rhrelease} using the following options:
38f2261
38f2261
use saslauth group
38f2261
SASLGROUP       : %{SASLGROUP}
38f2261
38f2261
include deliver-wrapper
38f2261
DEL_WRAP        : %{DEL_WRAP}
38f2261
38f2261
use preforking cyrus.conf
38f2261
PREFORK         : %{PREFORK}
38f2261
38f2261
enable Netscape hack (recommended)
38f2261
NETSCAPEHACK    : %{NETSCAPEHACK}
38f2261
38f2261
enable IMAP4 LIST extensions
38f2261
LISTEXT         : %{LISTEXT}
38f2261
38f2261
enable IDLED support
38f2261
IDLED           : %{IDLED}
38f2261
9e566a4
enable SNMP support
9e566a4
SNMP            : %{SNMP}
9e566a4
38f2261
force syncronous updates on ext3
38f2261
FORCESYNCEXT3   : %{FORCESYNCEXT3}
38f2261
38f2261
include autocreate feature
38f2261
AUTOCREATE      : %{AUTOCREATE}
38f2261
38f2261
include groupcache feature
38f2261
GROUPCACHE      : %{GROUPCACHE}
38f2261
38f2261
include nobarenewlinescheck patch
38f2261
NO_BARE_NL      : %{NO_BARE_NL}
38f2261
38f2261
used syslog facility for logging
38f2261
SYSLOGFACILITY  : %{SYSLOGFACILITY}
38f2261
38f2261
used -fpie for linking
38f2261
USEPIE          : %{USEPIE}
38f2261
9e566a4
enable LDAP support
9e566a4
(autodetected)  : %{_withldap}
38f2261
9e566a4
Berkeley DB version
9e566a4
(autodetected)  : %{_dbrpmver}
38f2261
38f2261
38f2261
To modify parameters, edit the .spec file or build like this:
38f2261
rpm --rebuild --define='FULLDIRHASH 1' %{name}-%{version}-%{release}.src.rpm
38f2261
EOF
38f2261
38f2261
%{__install} -m 644 %{SOURCE23}	doc/README.RPM
38f2261
%{__install} -m 644 %{SOURCE24}	doc/README.HOWTO-recover-mailboxes.db
38f2261
%if %{GROUPCACHE}
38f2261
%{__install} -m 644 %{SOURCE31}	doc/README.groupcache
38f2261
%endif
9e566a4
%{__install} -m 644 %{SOURCE33} doc/README.skiplist_recovery
38f2261
%if %{AUTOCREATE}
38f2261
%{__install} -m 644 %{SOURCE8}  doc/README.autocreate
38f2261
%{__install} -m 644 %{SOURCE9}  doc/README.autosievefolder
38f2261
%endif
38f2261
%{__install} -d doc/m4
9e566a4
%{__install} -m 644 %{SOURCE26}	doc/m4/cyrus-procmailrc
38f2261
%{__install} -m 644 %{SOURCE4}	doc/m4/cyrus-user-procmailrc.template
38f2261
%{__install} -m 644 %{SOURCE27}	doc/m4/%{name}-procmail+cyrus.mc
38f2261
%{__install} -m 644 %{SOURCE29}	doc/m4/%{name}-sendmail-8.12.9-cyrusv2.m4
38f2261
38f2261
# modify lmtp socket path in .conf files
38f2261
%{__perl} -pi -e "s@/var/imap/@%{_vardata}/@" %{_confdir}/*.conf doc/cyrusv2.mc doc/m4/%{name}-sendmail-8.12.9-cyrusv2.m4
38f2261
38f2261
# enable/disable idled in .conf files to prevent error messages
38f2261
%if %{IDLED}
38f2261
  %{__perl} -pi -e "s/#  idled/  idled/" %{_confdir}/*.conf
38f2261
%else
38f2261
  %{__perl} -pi -e "s/  idled/#  idled/" %{_confdir}/*.conf
38f2261
%endif
38f2261
38f2261
%install
38f2261
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
38f2261
38f2261
# This hack is needed on RedHat > 7.3 to install the perl files correctly
38f2261
%if %{_perlhack}
38f2261
pushd perl/imap
38f2261
  %{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix}
38f2261
popd
38f2261
pushd perl/sieve/managesieve
38f2261
  %{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix}
38f2261
popd
38f2261
38f2261
# Do what the regular make install does
38f2261
  %{__make} install DESTDIR=%{buildroot} PREFIX=%{_prefix} mandir=%{_mandir}
38f2261
  %{__make} -C man install DESTDIR=%{buildroot} PREFIX=%{_prefix} mandir=%{_mandir}
38f2261
%else
38f2261
  %{__make} install DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} mandir=%{_mandir}
38f2261
  %{__make} -C man install DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} mandir=%{_mandir}
38f2261
%endif
38f2261
38f2261
%if %{DEL_WRAP}
9e566a4
%{__install} -m 2755 deliver-wrapper    %{buildroot}%{_cyrexecdir}/
38f2261
%endif
9e566a4
%{__install} -m 755 imtest/imtest       %{buildroot}%{_bindir}/
9e566a4
%{__install} -m 755 notifyd/notifytest  %{buildroot}%{_bindir}/
9e566a4
%{__install} -m 755 perl/imap/cyradm    %{buildroot}%{_bindir}/
38f2261
38f2261
# Install tools
38f2261
for tool in tools/* ; do
38f2261
  test -f ${tool} && %{__install} -m 755 ${tool} %{buildroot}%{_cyrexecdir}/
38f2261
done
38f2261
38f2261
# Create directories
38f2261
%{__install} -d \
38f2261
  %{buildroot}%{_sysconfdir}/{rc.d/init.d,logrotate.d,pam.d,sysconfig,cron.daily} \
38f2261
  %{buildroot}%{_libdir}/sasl \
38f2261
  %{buildroot}%{_spooldata} \
9e566a4
  %{buildroot}%{_vardata}/{user,quota,proc,log,msg,socket,db,sieve,sync,md5,rpm,backup} \
9e566a4
%if %{_withldap}
9e566a4
  %{buildroot}%{_vardata}/ptclient \
9e566a4
%endif
38f2261
  %{buildroot}%{_datadir}/%{name}/rpm \
7c68531
  %{buildroot}%{pki_dir} \
38f2261
  %{_contribdir}
38f2261
38f2261
# Install additional files
38f2261
%{__install} -m 755 %{SOURCE13}   %{buildroot}%{_cyrexecdir}/cvt_cyrusdb_all
38f2261
%if %{GROUPCACHE}
38f2261
%{__install} -m 755 %{SOURCE32}   %{buildroot}%{_cyrexecdir}/upd_groupcache
38f2261
%endif
38f2261
%{__install} -m 755 %{SOURCE28}   %{buildroot}%{_cyrexecdir}/rpm_set_permissions
38f2261
%{__install} -m 644 %{SOURCE14}   %{buildroot}%{_datadir}/%{name}/rpm/magic
9e566a4
%{__install} -m 644 %{SOURCE10}   %{_contribdir}/
38f2261
%{__install} -m 644 %{SOURCE15}   %{_contribdir}/imapcreate
38f2261
%{__install} -m 644 %{SOURCE16}   %{_contribdir}/cyrus_ldap_quota
38f2261
%{__install} -m 644 %{SOURCE17}   %{_contribdir}/batchreconstruct
38f2261
%{__install} -m 644 %{SOURCE18}   %{_contribdir}/bsd2cyrus
38f2261
%{__install} -m 644 %{SOURCE19}   %{_contribdir}/cpmsg
38f2261
%{__install} -m 644 %{SOURCE20}   %{_contribdir}/folderxfer
38f2261
%{__install} -m 644 %{SOURCE21}   %{_contribdir}/inboxfer
38f2261
%{__install} -m 644 %{SOURCE22}   %{_contribdir}/
38f2261
%{__install} -m 644 %{SOURCE30}   %{_contribdir}/README
38f2261
38f2261
# Install config files
38f2261
%{__install} -m 644 %{_cyrusconf} %{buildroot}%{_sysconfdir}/cyrus.conf
38f2261
%{__install} -m 644 %{SOURCE6}    %{buildroot}%{_sysconfdir}/imapd.conf
38f2261
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/pop
38f2261
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/imap
38f2261
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/sieve
38f2261
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/mupdate
38f2261
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/lmtp
38f2261
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/nntp
9e566a4
%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/csync
38f2261
%{__install} -m 644 %{SOURCE12}   %{buildroot}%{_sysconfdir}/sysconfig/%{name}
38f2261
%{__install} -m 644 %{SOURCE5}    %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
38f2261
%{__install} -m 755 %{SOURCE25}   %{buildroot}%{_sysconfdir}/cron.daily/%{name}
38f2261
%{__install} -m 755 %{SOURCE11}   %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
38f2261
38f2261
# Install templates
38f2261
%{__install} -m 755 -d doc/conf
38f2261
%{__install} -m 644 %{_confdir}/*.conf doc/conf/
38f2261
9e566a4
# Generate db config file
9e566a4
( grep '^{' lib/imapoptions | grep _db | cut -d'"' -f 2,4 | \
9e566a4
  sed -e 's/^ *//' -e 's/-nosync//' -e 's/ *$//' -e 's/"/=/'
9e566a4
  echo sieve_version=2.2.3 ) | sort > %{buildroot}%{_datadir}/%{name}/rpm/db.cfg
9e566a4
66ca73e
# create the ghost pem file
66ca73e
touch %{buildroot}%{ssl_pem_file}
9e566a4
%if %{use_etc_pki}
66ca73e
# change config file so ssl certificates are under /etc rather than /usr/share
c51cc9a
%{__perl} -pi -e \
9e566a4
's@/usr/share/ssl/certs/%{name}.pem@%{ssl_pem_file}@g; \
c51cc9a
 s@/usr/share/ssl/certs/ca-bundle.crt@/etc/pki/tls/certs/ca-bundle.crt@' \
c51cc9a
 %{buildroot}%{_sysconfdir}/imapd.conf
9e566a4
%endif
66ca73e
38f2261
# Rename 'master' binary and manpage to avoid crash with postfix
38f2261
%{__mv} -f %{buildroot}%{_cyrexecdir}/master         %{buildroot}%{_cyrexecdir}/cyrus-master
38f2261
%{__mv} -f %{buildroot}%{_mandir}/man8/master.8      %{buildroot}%{_mandir}/man8/cyrus-master.8
38f2261
%{__mv} -f doc/man/master.8.html                     doc/man/cyrus-master.8.html
38f2261
%{__perl} -pi -e 's/master/cyrus-master/g'           %{buildroot}%{_mandir}/man8/cyrus-master.8
38f2261
%{__perl} -pi -e 's/Master/Cyrus-master/g'           %{buildroot}%{_mandir}/man8/cyrus-master.8
38f2261
%{__perl} -pi -e 's/MASTER/CYRUS-MASTER/g'           %{buildroot}%{_mandir}/man8/cyrus-master.8
38f2261
%{__perl} -pi -e 's/master/cyrus-master/g'           doc/man/cyrus-master.8.html
38f2261
%{__perl} -pi -e 's/Master/Cyrus-master/g'           doc/man/cyrus-master.8.html
38f2261
%{__perl} -pi -e 's/MASTER/CYRUS-MASTER/g'           doc/man/cyrus-master.8.html
38f2261
38f2261
# Rename 'fetchnews' binary and manpage to avoid crash with leafnode
38f2261
%{__mv} -f %{buildroot}%{_cyrexecdir}/fetchnews      %{buildroot}%{_cyrexecdir}/cyrfetchnews
38f2261
%{__mv} -f %{buildroot}%{_mandir}/man8/fetchnews.8   %{buildroot}%{_mandir}/man8/cyrfetchnews.8
38f2261
%{__mv} -f doc/man/fetchnews.8.html                  doc/man/cyrfetchnews.8.html
38f2261
%{__perl} -pi -e 's/fetchnews/cyrfetchnews/g'        %{buildroot}%{_mandir}/man8/cyrfetchnews.8
38f2261
%{__perl} -pi -e 's/Fetchnews/Cyrfetchnews/g'        %{buildroot}%{_mandir}/man8/cyrfetchnews.8
38f2261
%{__perl} -pi -e 's/FETCHNEWS/CYRFETCHNEWS/g'        %{buildroot}%{_mandir}/man8/cyrfetchnews.8
38f2261
%{__perl} -pi -e 's/fetchnews/cyrfetchnews/g'        doc/man/cyrfetchnews.8.html
38f2261
%{__perl} -pi -e 's/Fetchnews/Cyrfetchnews/g'        doc/man/cyrfetchnews.8.html
38f2261
%{__perl} -pi -e 's/FETCHNEWS/CYRFETCHNEWS/g'        doc/man/cyrfetchnews.8.html
38f2261
38f2261
# Create filelist for perl package, compress manpages before
38f2261
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
38f2261
find %{buildroot}%{perl_sitearch}/Cyrus %{buildroot}%{perl_sitearch}/auto/Cyrus -type f -print |
38f2261
  %{__sed} "s@^%{buildroot}@@g" |
38f2261
  %{__grep} -v perllocal.pod |
38f2261
  %{__grep} -v "\.packlist" > perl-Cyrus-%{version}-filelist
38f2261
find %{buildroot}%{_perl_man3dir} -type f -name "Cyrus*" -print |
38f2261
  %{__sed} "s@^%{buildroot}@@g" >> perl-Cyrus-%{version}-filelist
38f2261
if [ "$(%{__cat} perl-Cyrus-%{version}-filelist)X" = "X" ] ; then
38f2261
  echo "ERROR: EMPTY FILE LIST"
38f2261
  exit -1
38f2261
fi
38f2261
38f2261
# Strip binaries
38f2261
%{__strip} --strip-unneeded %{buildroot}%{_cyrexecdir}/* ||:
38f2261
38f2261
# Remove installed but not packaged files
38f2261
%{__rm} -f %{buildroot}%{_cyrexecdir}/not-mkdep
9e566a4
%{__rm} -f %{buildroot}%{_cyrexecdir}/config2header*
38f2261
%{__rm} -f %{buildroot}%{_cyrexecdir}/config2man
38f2261
%{__rm} -f %{buildroot}%{_cyrexecdir}/pop3proxyd
38f2261
find %{buildroot} -name "perllocal.pod" -exec %{__rm} -f {} \;
38f2261
find %{buildroot} -name ".packlist" -exec %{__rm} -f {} \;
38f2261
%if !%{IDLED}
38f2261
%{__rm} -f %{buildroot}%{_mandir}/man8/idled.8*
38f2261
%{__rm} -f doc/man/idled.8.html
38f2261
%endif
9e566a4
%{__rm} -f doc/text/Makefile
9e566a4
%{__rm} -f %{buildroot}%{_mandir}/man8/syncnews.8*
9e566a4
%{__rm} -f doc/man/syncnews.8.html
38f2261
38f2261
# On RedHat 7.3, this file is created here
38f2261
%{__rm} -f /perllocal.pod
38f2261
38f2261
%clean
38f2261
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
38f2261
38f2261
%pre
38f2261
# Let postun know whether cyrus-imapd was running
38f2261
if [ -e /var/lock/subsys/cyrus-imapd ]; then
38f2261
  /sbin/service %{name} stop >/dev/null 2>&1 || :
38f2261
  touch /var/lock/subsys/cyrus-imapd
38f2261
fi
38f2261
38f2261
%post
38f2261
/sbin/chkconfig --add %{name}
38f2261
38f2261
# Force synchronous updates, usually only on ext2 filesystems
38f2261
for i in %{_vardata}/{user,quota} %{_spooldata}
38f2261
do
38f2261
%if %{FORCESYNCEXT3}
38f2261
  if [ $(find $i -maxdepth 0 -printf %%F) = "ext2" -o $(find $i -maxdepth 0 -printf %%F) = "ext3" ]; then
38f2261
%else
38f2261
  if [ $(find $i -maxdepth 0 -printf %%F) = "ext2" ]; then
38f2261
%endif
38f2261
    chattr -R +S $i 2>/dev/null
38f2261
  fi
38f2261
done
38f2261
38f2261
# "ctl_deliver -E" is deprecated, now is "cyr_expire -E"
38f2261
if grep -q "ctl_deliver *-E" %{_sysconfdir}/cyrus.conf ; then
38f2261
  %{__perl} -pi -e "s/ctl_deliver *-E/cyr_expire -E/" %{_sysconfdir}/cyrus.conf
38f2261
fi
38f2261
38f2261
# prevent idled related errors to show up
38f2261
%if %{IDLED}
38f2261
  if grep -q "^#  idled" %{_sysconfdir}/cyrus.conf ; then
38f2261
    %{__perl} -pi -e "s/^#  idled/  idled/" %{_sysconfdir}/cyrus.conf
38f2261
  fi
38f2261
%else
38f2261
  if grep -q "^  idled" %{_sysconfdir}/cyrus.conf ; then
38f2261
    %{__perl} -pi -e "s/^  idled/#  idled/" %{_sysconfdir}/cyrus.conf
38f2261
  fi
38f2261
%endif
38f2261
9e566a4
%if %{use_etc_pki}
9e566a4
# change existing config so ssl certificates are under /etc rather than /usr/share
9e566a4
%{__perl} -pi -e \
9e566a4
's@/usr/share/ssl/certs/%{name}.pem@%{ssl_pem_file}@g; \
9e566a4
 s@/usr/share/ssl/certs/ca-bundle.crt@/etc/pki/tls/certs/ca-bundle.crt@' \
9e566a4
 %{_sysconfdir}/imapd.conf
9e566a4
%endif
9e566a4
38f2261
%preun
38f2261
if [ $1 = 0 ]; then
38f2261
  /sbin/service %{name} stop >/dev/null 2>&1 || :
38f2261
  /sbin/chkconfig --del %{name}
9e566a4
  %{__rm} -f %{_vardata}/socket/* 2> /dev/null
9e566a4
  %{__rm} -f %{_vardata}/proc/* 2> /dev/null
9e566a4
%if %{_withldap}
9e566a4
  %{__rm} -f %{_vardata}/ptclient/ptsock 2> /dev/null
9e566a4
%endif
38f2261
fi
38f2261
38f2261
%postun
9e566a4
if [ $1 != 0 ]; then
9e566a4
  /sbin/service %{name} condrestart >/dev/null 2>&1 || :
9e566a4
fi
9e566a4
9e566a4
%pre utils
9e566a4
# Create 'cyrus' user on target host
9e566a4
%if %{SASLGROUP}
9e566a4
/usr/sbin/groupadd -g %{gid} -r %{_saslgroup} 2> /dev/null || :
9e566a4
/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
9e566a4
  -G %{_saslgroup} -s /bin/bash -u %{uid} -r %{_cyrususer} 2> /dev/null || :
9e566a4
%else
9e566a4
/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
9e566a4
  -s /bin/bash -u %{uid} -r %{_cyrususer} 2> /dev/null || :
9e566a4
%endif
9e566a4
9e566a4
%post utils
9e566a4
# Create SSL certificates
9e566a4
exec > /dev/null 2> /dev/null
9e566a4
%if %{use_etc_pki}
9e566a4
# if the certificate is only in the old location, move it to the new location
9e566a4
if [ -f %{_datadir}/ssl/certs/%{name}.pem -a ! -f %{ssl_pem_file} ]; then
9e566a4
mv %{_datadir}/ssl/certs/%{name}.pem %{ssl_pem_file}
9e566a4
fi
9e566a4
%endif
9e566a4
if [ ! -f %{ssl_pem_file} ]; then
9e566a4
pushd %{certs_dir}
9e566a4
umask 077
9e566a4
%{__cat} << EOF | make %{name}.pem
9e566a4
--
9e566a4
SomeState
9e566a4
SomeCity
9e566a4
SomeOrganization
9e566a4
SomeOrganizationalUnit
9e566a4
localhost.localdomain
9e566a4
root@localhost.localdomain
9e566a4
EOF
9e566a4
%{__chown} root.%{_cyrusgroup} %{name}.pem
9e566a4
%{__chmod} 640 %{name}.pem
9e566a4
%if %{use_etc_pki}
9e566a4
mv %{name}.pem %{ssl_pem_file}
9e566a4
%endif
9e566a4
popd
9e566a4
fi
9e566a4
9e566a4
# Add service entries if necessary
9e566a4
if ! %{__grep} -q ^lmtp %{_sysconfdir}/services; then
9e566a4
  echo -e 'lmtp\t\t24/tcp\t\t\t\t# LMTP Mail Delivery over TCP' >> %{_sysconfdir}/services
9e566a4
  echo -e 'lmtp\t\t24/udp\t\t\t\t# LMTP Mail Delivery over TCP' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^nntps %{_sysconfdir}/services; then
9e566a4
  echo -e 'nntps\t\t563/tcp\t\t\t\t# NNTP over SSL' >> %{_sysconfdir}/services
9e566a4
  echo -e 'nntps\t\t563/udp\t\t\t\t# NNTP over SSL' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^pop3s %{_sysconfdir}/services; then
9e566a4
  echo -e 'pop3s\t\t995/tcp\t\t\t\t# POP-3 over SSL' >> %{_sysconfdir}/services
9e566a4
  echo -e 'pop3s\t\t995/udp\t\t\t\t# POP-3 over SSL' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^imaps %{_sysconfdir}/services; then
9e566a4
  echo -e 'imaps\t\t993/tcp\t\t\t\t# IMAP over SSL' >> %{_sysconfdir}/services
9e566a4
  echo -e 'imaps\t\t993/udp\t\t\t\t# IMAP over SSL' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^sieve %{_sysconfdir}/services; then
9e566a4
  echo -e 'sieve\t\t2000/tcp\t\t\t# Sieve Mail Filter Daemon' >> %{_sysconfdir}/services
9e566a4
  echo -e 'sieve\t\t2000/udp\t\t\t# Sieve Mail Filter Daemon' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^csync %{_sysconfdir}/services; then
9e566a4
  echo -e 'csync\t\t2005/tcp\t\t\t# Cyrus IMAP Replication Daemon' >> %{_sysconfdir}/services
9e566a4
  echo -e 'csync\t\t2005/udp\t\t\t# Cyrus IMAP Replication Daemon' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^mupdate %{_sysconfdir}/services; then
9e566a4
  echo -e 'mupdate\t\t3905/tcp\t\t\t# Cyrus IMAP Mupdate Daemon' >> %{_sysconfdir}/services
9e566a4
  echo -e 'mupdate\t\t3905/udp\t\t\t# Cyrus IMAP Mupdate Daemon' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
if ! %{__grep} -q ^fud %{_sysconfdir}/services; then
9e566a4
  echo -e 'fud\t\t4201/udp\t\t\t# Cyrus IMAP FUD Daemon' >> %{_sysconfdir}/services
9e566a4
fi
9e566a4
9e566a4
%postun utils
38f2261
if [ $1 = 0 ]; then
38f2261
  /usr/sbin/userdel %{_cyrususer} 2> /dev/null || :
38f2261
%if %{SASLGROUP}
38f2261
  if [ "$(%{__grep} ^%{_saslgroup}: %{_sysconfdir}/group | cut -d: -f4-)" = "" ]; then
38f2261
    /usr/sbin/groupdel %{_saslgroup} 2> /dev/null || :
38f2261
  fi
38f2261
%endif
38f2261
fi
38f2261
38f2261
%files
38f2261
%defattr(0644,root,root,0755)
38f2261
%config(noreplace) %{_sysconfdir}/cyrus.conf
38f2261
%config(noreplace) %{_sysconfdir}/imapd.conf
38f2261
%attr(0755,root,root) %config %{_sysconfdir}/rc.d/init.d/%{name}
38f2261
%config %{_sysconfdir}/logrotate.d/%{name}
38f2261
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
38f2261
%config(noreplace) %{_sysconfdir}/pam.d/pop
38f2261
%config(noreplace) %{_sysconfdir}/pam.d/imap
38f2261
%config(noreplace) %{_sysconfdir}/pam.d/sieve
38f2261
%config(noreplace) %{_sysconfdir}/pam.d/lmtp
9e566a4
%config(noreplace) %{_sysconfdir}/pam.d/mupdate
9e566a4
%config(noreplace) %{_sysconfdir}/pam.d/csync
9e566a4
%config(noreplace) %{_sysconfdir}/pam.d/nntp
38f2261
%attr(0755,root,root) %config %{_sysconfdir}/cron.daily/%{name}
38f2261
%dir %{_cyrexecdir}
38f2261
%attr(0755,root,root) %{_cyrexecdir}/arbitron
38f2261
%attr(0755,root,root) %{_cyrexecdir}/arbitronsort.pl
38f2261
%attr(0755,root,root) %{_cyrexecdir}/chk_cyrus
38f2261
%attr(0755,root,root) %{_cyrexecdir}/convert-sieve.pl
38f2261
%attr(0755,root,root) %{_cyrexecdir}/ctl_cyrusdb
38f2261
%attr(0755,root,root) %{_cyrexecdir}/ctl_deliver
38f2261
%attr(0755,root,root) %{_cyrexecdir}/ctl_mboxlist
38f2261
%attr(0755,root,root) %{_cyrexecdir}/cvt_cyrusdb
38f2261
%attr(0755,root,root) %{_cyrexecdir}/cyr_expire
38f2261
%attr(0755,root,root) %{_cyrexecdir}/cyrdump
38f2261
%attr(0755,root,root) %{_cyrexecdir}/cyrus-master
38f2261
%attr(0755,root,root) %{_cyrexecdir}/deliver
38f2261
%attr(0755,root,root) %{_cyrexecdir}/dohash
38f2261
%attr(0755,root,root) %{_cyrexecdir}/fud
38f2261
%attr(0755,root,root) %{_cyrexecdir}/imapd
38f2261
%attr(0755,root,root) %{_cyrexecdir}/ipurge
38f2261
%attr(0755,root,root) %{_cyrexecdir}/lmtpd
38f2261
%attr(0755,root,root) %{_cyrexecdir}/masssievec
38f2261
%attr(0755,root,root) %{_cyrexecdir}/mbexamine
38f2261
%attr(0755,root,root) %{_cyrexecdir}/mbpath
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/migrate-metadata
38f2261
%attr(0755,root,root) %{_cyrexecdir}/mkimap
38f2261
%attr(0755,root,root) %{_cyrexecdir}/mknewsgroups
38f2261
%attr(0755,root,root) %{_cyrexecdir}/notifyd
38f2261
%attr(0755,root,root) %{_cyrexecdir}/pop3d
38f2261
%attr(0755,root,root) %{_cyrexecdir}/quota
38f2261
%attr(0755,root,root) %{_cyrexecdir}/reconstruct
38f2261
%attr(0755,root,root) %{_cyrexecdir}/rehash
38f2261
%attr(0755,root,root) %{_cyrexecdir}/sievec
38f2261
%attr(0755,root,root) %{_cyrexecdir}/smmapd
38f2261
%attr(0755,root,root) %{_cyrexecdir}/squatter
38f2261
%attr(0755,root,root) %{_cyrexecdir}/timsieved
38f2261
%attr(0755,root,root) %{_cyrexecdir}/tls_prune
38f2261
%attr(0755,root,root) %{_cyrexecdir}/translatesieve
38f2261
%attr(0755,root,root) %{_cyrexecdir}/undohash
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/unexpunge
38f2261
%attr(0755,root,root) %{_cyrexecdir}/upgradesieve
38f2261
%attr(0755,root,root) %{_cyrexecdir}/cvt_cyrusdb_all
38f2261
%if %{GROUPCACHE}
38f2261
%attr(0755,root,root) %{_cyrexecdir}/upd_groupcache
38f2261
%endif
38f2261
%attr(0755,root,root) %{_cyrexecdir}/rpm_set_permissions
38f2261
%if %{IDLED}
38f2261
%attr(0755,root,root) %{_cyrexecdir}/idled
38f2261
%endif
38f2261
%if %{AUTOCREATE}
38f2261
%attr(0755,root,root) %{_cyrexecdir}/compile_sieve
38f2261
%endif
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/mupdate
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/mupdate-loadgen.pl
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/proxyd
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/make_md5
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/sync_client
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/sync_reset
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/sync_server
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/cyrfetchnews
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/nntpd
9e566a4
%if %{_withldap}
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/ptdump
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/ptexpire
9e566a4
%attr(0755,root,root) %{_cyrexecdir}/ptloader
9e566a4
%endif
38f2261
%if %{DEL_WRAP}
38f2261
%attr(2755,%{_cyrususer},%{_cyrusgroup}) %{_cyrexecdir}/deliver-wrapper
38f2261
%endif
38f2261
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}
38f2261
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/socket
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/user
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/quota
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/proc
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/log
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/msg
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/db
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/sieve
9e566a4
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/sync
9e566a4
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/md5
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/rpm
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/backup
9e566a4
%if %{_withldap}
9e566a4
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/ptclient
9e566a4
%endif
38f2261
%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_spooldata}
38f2261
%dir %{_datadir}/%{name}
38f2261
%dir %{_datadir}/%{name}/rpm
38f2261
%{_datadir}/%{name}/rpm/*
38f2261
%{_mandir}/man5/*
38f2261
%{_mandir}/man8/*
38f2261
%doc COPYRIGHT README
38f2261
%doc doc/*
9e566a4
%if %{use_etc_pki}
7c68531
%dir %{pki_dir}
9e566a4
%endif
66ca73e
%attr(0640,root,%{_cyrusgroup}) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssl_pem_file}
38f2261
38f2261
%files devel
38f2261
%defattr(0644,root,root,0755)
38f2261
%{_includedir}/cyrus
38f2261
%{_libdir}/lib*.a
38f2261
%{_mandir}/man3/imclient.3*
38f2261
38f2261
%files -n perl-Cyrus -f perl-Cyrus-%{version}-filelist
38f2261
%defattr(-,root,root)
38f2261
%doc perl/imap/README
38f2261
%doc perl/imap/Changes
38f2261
%doc perl/imap/examples
38f2261
38f2261
%files utils
38f2261
%defattr(0644,root,root,0755)
38f2261
%attr(0755,root,root) %{_bindir}/*
38f2261
%{_mandir}/man1/*
38f2261
38f2261
%changelog
cb7d588
* Tue Feb 28 2006 John Dennis <jdennis@redhat.com> - 2.3.1-2
cb7d588
- bring up to Simon Matter's 2.3.1-2 release
cb7d588
- fix bug #176470, hardcoded disttag
cb7d588
9e566a4
* Wed Jan 25 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-2
9e566a4
- add backend_sigsegv patch
9e566a4
- add replication_policycheck patch
9e566a4
9e566a4
* Mon Jan 23 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-1
9e566a4
- update to official autocreate and autosievefolder patches
9e566a4
9e566a4
* Thu Jan 19 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.18
9e566a4
- update rpm_set_permissions script
9e566a4
- add snmp support as build time option, disabled by default
9e566a4
  because it doesn't build on older distributions
9e566a4
9e566a4
* Wed Jan 18 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.15
9e566a4
- add make_md5 patch
9e566a4
9e566a4
* Mon Jan 16 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.13
9e566a4
- add autosievefolder patch
9e566a4
- add rmquota+deletemailbox patch
9e566a4
- change default path for make_md5, add md5 directory
9e566a4
9e566a4
* Fri Jan 13 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.10
9e566a4
- spec file cleanup
9e566a4
- add more cvt_cyrusdb_all fixes
9e566a4
- fix pre/post scripts
9e566a4
- fix requirements
9e566a4
- add patch to set Invoca RPM config defaults
9e566a4
- add sync directory used for replication
9e566a4
- add autocreate patch
9e566a4
9e566a4
* Thu Jan 12 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.8
9e566a4
- update cvt_cyrusdb_all script
9e566a4
- build db.cfg on the fly
9e566a4
9e566a4
* Thu Jan 05 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.5
9e566a4
- create ptclient directory if ldap enabled
9e566a4
9e566a4
* Wed Jan 04 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.4
9e566a4
- build without ldap support if openldap is linked against SASLv1
9e566a4
9e566a4
* Tue Jan 03 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.3
9e566a4
- fix ldap support
9e566a4
9e566a4
* Mon Jan 02 2006 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.2
9e566a4
- add openldap-devel to buildprereq, build with ldap support
9e566a4
9e566a4
* Wed Dec 21 2005 Simon Matter <simon.matter@invoca.ch> 2.3.1-0.1
9e566a4
- update to 2.3.1, officially called BETA-quality release
9e566a4
9e566a4
* Fri Dec 16 2005 Simon Matter <simon.matter@invoca.ch> 2.3.0-0.4
9e566a4
- add skiplist.py to contrib/
9e566a4
- port authid_normalize patch
9e566a4
9e566a4
* Thu Dec 15 2005 Simon Matter <simon.matter@invoca.ch> 2.3.0-0.3
9e566a4
- reintroduce subpackage utils, fix requirements
9e566a4
- move some utils to %{_bindir}/
9e566a4
9e566a4
* Wed Dec 14 2005 Simon Matter <simon.matter@invoca.ch> 2.3.0-0.2
9e566a4
- integrate subpackages murder, nntp, replication, utils
9e566a4
9e566a4
* Tue Dec 13 2005 Simon Matter <simon.matter@invoca.ch> 2.3.0-0.1
9e566a4
- update to 2.3.0, officially called BETA-quality release
9e566a4
- add replication subpackage
9e566a4
9e566a4
* Fri Dec 09 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-15.1
9e566a4
- add missing automake to buildprereq
9e566a4
- change package description
9e566a4
9e566a4
* Tue Dec 06 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-15
9e566a4
- update cvt_cyrusdb_all script
9e566a4
- update autocreate patches
9e566a4
9e566a4
* Mon Dec 05 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-14
9e566a4
- update cvt_cyrusdb_all script
9e566a4
9e566a4
* Mon Nov 14 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-13
9e566a4
- add 64bit quota support backported from 2.3
9e566a4
9e566a4
* Fri Nov 11 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-12
9e566a4
- add quickstart/stop option to init script to bypass db import/export
9e566a4
- add authid_normalize patch
9e566a4
- add allow_auth_plain_proxying patch
9e566a4
- update gcc4 patch
9e566a4
- remove useless fdatasync patch
9e566a4
- add private autoconf used for build, remove autoconf dependency
9e566a4
- generate correct docs including man pages
9e566a4
- remove unneeded files from doc directory
9e566a4
9e566a4
* Fri Nov 04 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-11
9e566a4
- add mupdate thread-safe patch
9e566a4
9e566a4
* Mon Oct 24 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-9.4
9e566a4
- add spool patch, which is already fixed in CVS
9e566a4
9e566a4
* Tue Aug 30 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-9.2
9e566a4
- pull in CPPFLAGS and LDFLAGS from openssl's pkg-config data, if it exists
9e566a4
9e566a4
* Wed Aug 24 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-9.1
9e566a4
- add timsieved_reset_sasl_conn patch
9e566a4
9e566a4
* Mon Aug 22 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-9
9e566a4
- cosmetic changes in pre and post scripts
9e566a4
9e566a4
* Fri Aug 19 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-8
9e566a4
- add more pki dir fixes for inplace upgrades
9e566a4
9e566a4
* Thu Aug 18 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-7
9e566a4
- include requirement for Berkeley DB utils
9e566a4
9e566a4
* Thu Aug 18 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-6
9e566a4
- fix recovery problems with db4, which do not exist with db3
9e566a4
- fix logic for handling ssl certs
9e566a4
- remove initlog from init script
9e566a4
9e566a4
* Wed Aug 17 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-5
9e566a4
- add notifytest to the distribution
9e566a4
- add functionality to convert all berkeley databases to skiplist
9e566a4
  on shutdown and convert them back as needed on startup. This should
9e566a4
  solve the upgrade problems with Berkeley databases.
9e566a4
9e566a4
* Tue Aug 16 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-4.14
9e566a4
- add gcc4 patch
9e566a4
- determine and handle pki directory for openssl correctly
9e566a4
- add skiplist recovery docs
9e566a4
- add notify_sms patch
9e566a4
9e566a4
* Mon Jul 18 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-4.10
9e566a4
- update cvt_cyrusdb_all script
9e566a4
- update autocreate patches
9e566a4
9e566a4
* Fri Jul 15 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-4.9
9e566a4
- add patch to remove ACLs with invalid identifier
9e566a4
- update cvt_cyrusdb_all script
9e566a4
9e566a4
* Sat Jun 18 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-4.1
9e566a4
- update munge8bit patch
9e566a4
9e566a4
* Wed Jun 08 2005 Simon Matter <simon.matter@invoca.ch> 2.2.12-4
9e566a4
- updated seenstate patch
9e566a4
9e566a4
* Thu Jun 02 2005 Simon Matter <simon.matter@invoca.ch>
9e566a4
- removed nolinkimapspool patch, added singleinstancestore patch instead
9e566a4
9e566a4
* Thu Jun 02 2005 Simon Matter <simon.matter@invoca.ch>
9e566a4
- added nolinkimapspool patch
9e566a4
- fix debug_package macro, it was still being expanded,
9e566a4
  comments don't hide macro expansion
9e566a4
- change license field to BSD, its not exact BSD, but BSD is the closest
9e566a4
c51cc9a
* Fri Apr 22 2005 John Dennis <jdennis@redhat.com> - 2.2.12-6.fc4
c51cc9a
- the openssl package moved all its certs, CA, Makefile, etc. to /etc/pki
c51cc9a
  now we are consistent with the openssl directory changes.
c51cc9a
7c68531
* Thu Apr 21 2005 John Dennis <jdennis@redhat.com> - 2.2.12-5.fc4
7c68531
- we finally have a common directory, /etc/pki for certs, so create
7c68531
  /etc/pki/cyrus-imapd and put the ssl pem file there. The /etc/cyrus-imapd
7c68531
  location will not be used, this change supercedes that.
7c68531
66ca73e
* Mon Apr 18 2005 John Dennis <jdennis@redhat.com> - 2.2.12-4.fc4
66ca73e
- fix bug #141479, move ssl pem file from /usr/share/ssl/certs to /etc/cyrus-imapd/cyrus-imapd.pem
66ca73e
- change license field to BSD, its not exact BSD, but BSD is the closest.
66ca73e
a0cc626
* Fri Apr 15 2005 John Dennis <jdennis@redhat.com> - 2.2.12-3.fc4
a0cc626
- fix release field to be single digit
a0cc626
38f2261
* Fri Apr 15 2005 John Dennis <jdennis@redhat.com> - 2.2.12-1.2.fc4
38f2261
- fix debug_package macro, it was still being expanded,
38f2261
  comments don't hide macro expansion
38f2261
- fix changelog chronological order
38f2261
- fix bug 118832, cyrus-imapd is modifying /etc/services
38f2261
38f2261
* Mon Apr  4 2005 John Dennis <jdennis@redhat.com> - 2.2.12-1.1.fc4
38f2261
- bring up to 2.2.12, includes security fix for CAN-2005-0546
38f2261
9e566a4
* Mon Mar 07 2005 Simon Matter <simon.matter@invoca.ch>
9e566a4
- updated rmquota+deletemailbox patches
9e566a4
38f2261
* Fri Mar  4 2005 John Dennis <jdennis@redhat.com> - 2.2.10-11.4.fc4
38f2261
- fix gcc4 build problems
38f2261
38f2261
* Thu Mar  3 2005 John Dennis <jdennis@redhat.com> 2.2.10-11.3.fc4
38f2261
- bump rev for build
38f2261
38f2261
* Mon Feb 14 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.12
38f2261
- updated autocreate and autosievefolder patches
38f2261
38f2261
* Fri Feb 11 2005 John Dennis <jdennis@redhat.com> - 2.2.10-11.2.fc4
38f2261
- make _contribdir identical to Simon's,
38f2261
  I had been getting burned by rpm's bizarre handling of macros in comments
38f2261
38f2261
* Thu Feb 10 2005 John Dennis <jdennis@redhat.com> - 2.2.10-11.1.fc4
38f2261
- bring up to date with Simon Matter's 2.2.10-11 rpm
38f2261
38f2261
* Sat Feb 05 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autosievefolder patch
38f2261
38f2261
* Tue Feb 01 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- remove special ownership and permissions from deliver
38f2261
- enable deliver-wrapper per default
38f2261
- enable OutlookExpress seenstate patch per default
38f2261
38f2261
* Wed Jan 19 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate patch
38f2261
38f2261
* Fri Jan 14 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- spec file cleanup
38f2261
38f2261
* Tue Jan 11 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate patch
38f2261
38f2261
* Fri Jan 07 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- moved contrib dir into doc, made scripts not executable
38f2261
38f2261
* Thu Jan 06 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- added more fixes to the autocreate patch
38f2261
- don't use %_libdir for %_cyrexecdir, it's a mess on x86_64
38f2261
- don't use %_libdir for symlinks
38f2261
- remove %_libdir pachtes
38f2261
- change pam configs to work on x86_64
38f2261
- changed default build option for IDLED to on
38f2261
- changed rpm_set_permissions to honor partitions in /etc/imapd.conf
38f2261
38f2261
* Tue Jan 04 2005 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate patch
38f2261
38f2261
* Mon Dec 20 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- remove idled docs when disabled, fixes RedHat's bug #142345
38f2261
38f2261
* Fri Dec 17 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- removed allnumeric patch, not needed anymore
38f2261
- made groupcache a compile time option
38f2261
- rename nntp's pam service, fixes RedHat's bug #142672
38f2261
38f2261
* Thu Dec 16 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated groupcache patch
38f2261
- updated cvt_cyrusdb_all to use runuser instead of su if available
38f2261
- added upd_groupcache tool
38f2261
38f2261
* Wed Dec 15 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- added groupfile patch to help those using nss_ldap
38f2261
38f2261
* Thu Dec 02 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- modified config directives and removed verify options
38f2261
38f2261
* Thu Dec  2 2004 John Dennis <jdennis@redhat.com> 2.2.10-3.devel
38f2261
- fix bug #141673, dup of bug #141470
38f2261
  Also make cyrus.conf noreplace in addition to imapd.conf
38f2261
  Remove the verify overrides on the noreplace config files,
38f2261
  we do want config file changes visible when verifying
38f2261
38f2261
* Wed Dec  1 2004 John Dennis <jdennis@redhat.com> 2.2.10-2.devel
38f2261
- fix bug #141470, make imapd.conf a noreplace config file
38f2261
38f2261
* Wed Dec  1 2004 John Dennis <jdennis@redhat.com> 2.2.10-1.devel
38f2261
- update to Simon Matter's 2.2.10 RPM,
38f2261
  fixes bug #139382, 
38f2261
  security advisories: CAN-2004-1011 CAN-2004-1012 CAN-2004-1013 CAN-2004-1015
38f2261
9e566a4
* Wed Nov 24 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.10
38f2261
38f2261
* Tue Nov 23 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.9
38f2261
38f2261
* Fri Nov 19 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- changed scripts to use runuser instead of su if available
38f2261
38f2261
* Thu Nov 18 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- changed requirement for file >= 3.35-1 from BuildPrereq to
38f2261
  Requires, fixes RedHat's bug #124991
38f2261
- added acceptinvalidfrom patch to fix RedHat's bug #137705
38f2261
38f2261
* Mon Oct 4 2004 Dan Walsh <dwalsh@redhat.com> 2.2.6-2.FC3.6
38f2261
- Change cyrus init scripts and cron job to use runuser instead of su
38f2261
38f2261
* Fri Aug  6 2004 John Dennis <jdennis@redhat.com> 2.2.6-2.FC3.5
38f2261
- remove obsoletes tag, fixes bugs #127448, #129274
38f2261
38f2261
* Wed Aug  4 2004 John Dennis <jdennis@redhat.com>
38f2261
- replace commas in release field with dots, bump build number
38f2261
38f2261
* Tue Aug 03 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- fixed symlinks for x86_64, now uses the _libdir macro
38f2261
  reported by John Dennis, fixes RedHat's bug #128964
38f2261
- removed obsoletes tag, fixes RedHat's bugs #127448, #129274
38f2261
38f2261
* Mon Aug  2 2004 John Dennis <jdennis@redhat.com> 2.2.6-2,FC3,3
38f2261
- fix bug #128964, lib symlinks wrong on x86_64
38f2261
38f2261
* Thu Jul 29 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.8
38f2261
38f2261
* Thu Jul 29 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate and autosieve patches
38f2261
- made authorization a compile time option
38f2261
- added sieve-bc_eval patch
38f2261
38f2261
* Tue Jul 27 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.7
38f2261
- modified autocreate patch or 2.2.7
38f2261
- removed snmpargs patch which was needed for RedHat 6.2
38f2261
38f2261
* Tue Jul 13 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- added mboxlist / mboxname patches from CVS
38f2261
38f2261
* Tue Jul 06 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated rmquota+deletemailbox patch
38f2261
38f2261
* Sat Jul  3 2004 John Dennis <jdennis@redhat.com> - 2.2.6-2,FC3,1
38f2261
- bring up to date with Simon Matter's latest upstream rpm 2.2.6-2
38f2261
- comment out illegal tags Packager, Vendor, Distribution
38f2261
  build for FC3
38f2261
38f2261
* Wed Jun 30 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- added quota patches from CVS
38f2261
38f2261
* Fri Jun 25 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate patch
38f2261
38f2261
* Fri Jun 18 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.6
38f2261
38f2261
* Fri Jun 11 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate and autosieve patches
38f2261
38f2261
* Tue Jun 01 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate, autosieve and rmquota patches
38f2261
- fixed rmquota patch to build on gcc v3.3.x
38f2261
- added lmtp_sieve patch
38f2261
38f2261
* Sat May 29 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.5
38f2261
38f2261
* Fri May 28 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.5 pre-release
38f2261
38f2261
* Mon May 24 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- added hash patch to fix a sig11 problem
38f2261
- added noncritical typo patch
38f2261
38f2261
* Fri May 21 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- include OutlookExpress seenstate patch
38f2261
- fixed allnumeric patch
38f2261
38f2261
* Thu May 20 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- don't enable cyrus-imapd per default
38f2261
- rename fetchnews to cyrfetchnews to avoid namespace conflicts with leafnode
38f2261
- replace fetchnews with cyrfetchnews in man pages
38f2261
- replace master with cyrus-master in man pages
38f2261
38f2261
* Tue May 18 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.4
38f2261
38f2261
* Fri Apr 30 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- Don't provides: imap
38f2261
38f2261
* Wed Mar 17 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- fix init script
38f2261
38f2261
* Thu Mar 04 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- strip binaries
38f2261
38f2261
* Tue Mar 02 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- add more SELinux fixes
38f2261
38f2261
* Wed Feb 25 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- add makedepend to path, thank you Andreas Piesk for reporting it
38f2261
38f2261
* Mon Feb 23 2004 Dan Walsh <dwalsh@redhat.com>
38f2261
- change su within init script to get input from /dev/null
38f2261
  this prevents hang when running in SELinux
38f2261
- don't use -fpie as default, it breaks different distributions
38f2261
38f2261
* Thu Feb 19 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- merged in most changes from Karsten Hopp's RedHat package
38f2261
- fixed permissions of files in contrib, thank you
38f2261
  Edward Rudd for reporting it.
38f2261
- modified snmp patch to make it build on RedHat 6.2 again
38f2261
38f2261
* Tue Feb 03 2004 Karsten Hopp <karsten@redhat.de>
38f2261
- switch to Simon Matter's cyrus-imapd package, which has
38f2261
  some major improvements over the old Red Hat package.
38f2261
  - configdirectory moved from /var/imap to /var/lib/imap
38f2261
  - sasl_pwcheck_method changed to saslauthd
38f2261
- needed to delete package/vendor tags for buildsystem.
38f2261
- added USEPIE variable for linking with -fpie flag
38f2261
- removed rpath from linker arguments
38f2261
- removed email header from README.HOWTO-recover-mailboxes
38f2261
- added lib64 patch
38f2261
- use CFLAGS from specfile in imtest subdir
38f2261
- disable -pie on ppc for now
38f2261
38f2261
* Tue Feb 03 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- added tls_ca_file: to imapd.conf
38f2261
- updated autocreate patch which fixes a small sig11 problem
38f2261
38f2261
* Thu Jan 29 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- convert sieve scripts to UTF-8 only if sievec failed before
38f2261
- add note to the readme about limiting loggin on busy servers
38f2261
- added build time option to chose the syslog facility
38f2261
38f2261
* Wed Jan 28 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- sieve scripts are now converted to UTF-8 with cvt_cyrusdb_all
38f2261
38f2261
* Tue Jan 27 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- fixed problems with masssievec
38f2261
- lots of small fixes in the init scripts
38f2261
38f2261
* Fri Jan 23 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated auto db converting functionality
38f2261
- added auto masssievec functionality
38f2261
38f2261
* Thu Jan 22 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate/autosievefolder patches
38f2261
38f2261
* Fri Jan 16 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.3
38f2261
38f2261
* Wed Jan 14 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- number of mailbox list dumps can now be configured
38f2261
38f2261
* Fri Jan 01 2004 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autosievefolder patch
38f2261
38f2261
* Thu Dec 18 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate/autosievefolder/rmquota patches
38f2261
38f2261
* Tue Oct 28 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated to 2.2.2-BETA
38f2261
38f2261
* Tue Aug 05 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- add sendmail m4 macro, some people were looking for it
38f2261
- just one source for pam default configuration (they were all the same)
38f2261
- added /etc/pam.d/lmtp
38f2261
- added build support for RedHat Beta severn
38f2261
38f2261
* Wed Jul 30 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated autocreate patch to 0.8.1
38f2261
- removed creation of spool/config dirs, not needed anymore
38f2261
- added cyrus_sharedbackup to contrib
38f2261
38f2261
* Fri Jul 18 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- modified for 2.2.1-BETA
38f2261
38f2261
* Wed Jul 09 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- modified rpm_set_permissions script
38f2261
38f2261
* Mon Jul 07 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- changed permissions on config and spool dirs
38f2261
- modified init script
38f2261
38f2261
* Thu Jul 03 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- upgraded to 2.1.14
38f2261
- removed now obsolete forcedowncase patch
38f2261
- use --with-extraident to add extra version information
38f2261
- updated munge8bit patch
38f2261
38f2261
* Wed Jun 04 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added RedHat 2.1ES support to the perlhack detection
38f2261
38f2261
* Tue May 20 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- upgraded autocreate patch
38f2261
38f2261
* Fri May 09 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- upgraded autocreate patch
38f2261
- modified init script
38f2261
38f2261
* Mon May 05 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- upgraded to 2.1.13
38f2261
- replaced commands with macros, cleaned up spec file
38f2261
38f2261
* Fri May 02 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added murder subpackage
38f2261
- changed exec path to /usr/lib/cyrus-imapd
38f2261
38f2261
* Thu May 01 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- included modified munge8bit patch again
38f2261
38f2261
* Tue Apr 29 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added new 8bit header patch
38f2261
- upgraded IPv6 patch
38f2261
- upgraded autocreate patch to 0.7
38f2261
38f2261
* Mon Apr 28 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added new autocreate patch
38f2261
38f2261
* Mon Mar 31 2003 H-E Sandstrom <hes@mailcore.net>
38f2261
- added munge8bit patch
38f2261
38f2261
* Mon Mar 24 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added createonpost fix patch
38f2261
38f2261
* Thu Mar 20 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added functionality to patch the IPv6 patch on the fly if
38f2261
  autoconf > 2.13, we can now use newer autoconf again.
38f2261
38f2261
* Tue Mar 18 2003 Paul Bender <pbender@qualcomm.com>
38f2261
- fixed spec file so that autoconf 2.13 will always be used,
38f2261
  since the IPv6 patch requires autoconf <= 2.13
38f2261
38f2261
* Fri Mar 14 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- fixed problems with new file package
38f2261
38f2261
* Thu Mar 13 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added kerberos include for RedHat Beta phoebe 2
38f2261
- added Henrique's forcedowncase patch
38f2261
38f2261
* Mon Mar 03 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- corrected imapd.conf
38f2261
38f2261
* Sat Mar 01 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added note about lmtp socket in sendmail
38f2261
- added flock patches
38f2261
38f2261
* Fri Feb 07 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added build time option for fulldirhash
38f2261
38f2261
* Wed Feb 05 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- added IPV6 patch to source rpm
38f2261
- fixed build on RedHat 6.2
38f2261
38f2261
* Tue Feb 04 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- update to 2.1.12
38f2261
- added logrotate entry for /var/log/auth.log
38f2261
- modified init script to use builtin daemon mode
38f2261
38f2261
* Fri Jan 10 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- small change in mboxlist backup script
38f2261
38f2261
* Fri Jan 10 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- fixed a cosmetic bug in cvt_cyrusdb_all
38f2261
- added cron.daily job to backup mailboxes.db
38f2261
38f2261
* Mon Jan 06 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- add more entries to /etc/services
38f2261
38f2261
* Wed Jan 01 2003 Simon Matter <simon.matter@invoca.ch>
38f2261
- include snmpargs patch for build on RedHat 6.2
38f2261
- added build support for RedHat 6.2
38f2261
38f2261
* Mon Dec 30 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- removed autoconf hack, not needed anymore
38f2261
- enabled build on RedHat Beta Phoebe
38f2261
- added services entry for lmtp
38f2261
- cleanup spec file
38f2261
38f2261
* Thu Dec 26 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- removed BuildPrereq for e2fsprogs-devel
38f2261
38f2261
* Thu Dec 12 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- modified RedHat release detection
38f2261
- added BuildPrereq for file
38f2261
38f2261
* Thu Dec 05 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- upgraded to cyrus-imapd 2.1.11
38f2261
- upgrade IPV6 patch to 20021205
38f2261
38f2261
* Thu Nov 28 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- Fixed some default attributes
38f2261
38f2261
* Thu Nov 28 2002 Troels Arvin <troels@arvin.dk>
38f2261
- Explicitly changed files-section to
38f2261
   - use defattr for simple (root-owned 0644) files
38f2261
   - explictly set root as user/group owner where
38f2261
     the user/group ownership was previously indicated
38f2261
     as "-"; this allows building valid packages without
38f2261
     having to being root when building
38f2261
38f2261
* Mon Nov 25 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- changed default build option for IDLED to off
38f2261
- included some useful info in README.*
38f2261
38f2261
* Thu Nov 21 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- added build time option for IDLED, thank you Roland Pope
38f2261
38f2261
* Tue Nov 19 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- fixed spec to really use fdatasync patch
38f2261
- added createonpost patch
38f2261
38f2261
* Thu Nov 14 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- upgraded to cyrus-imapd 2.1.10
38f2261
- build without IPv6 support by default
38f2261
38f2261
* Tue Nov 12 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- fixed db detection in .spec
38f2261
38f2261
* Mon Oct 21 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- updated cvt_cyrusdb_all script
38f2261
38f2261
* Fri Oct 18 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- added fdatasync patch
38f2261
38f2261
* Thu Oct 03 2002 Simon Matter <simon.matter@invoca.ch>
38f2261
- add RPM version 4.1 compatibility, which means remove installed
38f2261
  but not packaged files
38f2261
38f2261
* Wed Sep 18 2002 Simon Matter <simix@datacomm.ch>
38f2261
- added auto db converting functionality
38f2261
- changed default for MBOXLIST_DB and SEEN_DB to skiplist
38f2261
38f2261
* Mon Sep 16 2002 Simon Matter <simix@datacomm.ch>
38f2261
- remove creation of cyrus user at build time
38f2261
- added scripts from ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/
38f2261
38f2261
* Mon Sep 02 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.9
38f2261
38f2261
* Fri Aug 30 2002 Simon Matter <simix@datacomm.ch>
38f2261
- included extra ident string
38f2261
38f2261
* Thu Aug 29 2002 Simon Matter <simix@datacomm.ch>
38f2261
- modified path in deliver-wrapper, thank you Richard L. Phipps
38f2261
- added RedHat 2.1AS support to the perlhack detection
38f2261
- added build time option to force syncronous updates on ext3
38f2261
38f2261
* Wed Aug 28 2002 Simon Matter <simix@datacomm.ch>
38f2261
- added updated IPv6 patch from Hajimu UMEMOTO
38f2261
38f2261
* Wed Aug 28 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.8
38f2261
38f2261
* Thu Aug 22 2002 Simon Matter <simix@datacomm.ch>
38f2261
- included IPv6 patch from Hajimu UMEMOTO
38f2261
38f2261
* Wed Aug 21 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.7 because of wrong version info
38f2261
38f2261
* Wed Aug 21 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.6
38f2261
38f2261
* Mon Aug 19 2002 Simon Matter <simix@datacomm.ch>
38f2261
- change db version detection, thank you Chris for reporting
38f2261
38f2261
* Tue Aug 13 2002 Simon Matter <simix@datacomm.ch>
38f2261
- fixed autoconf detection
38f2261
38f2261
* Mon Aug 12 2002 Simon Matter <simix@datacomm.ch>
38f2261
- included support for different autoconf versions
38f2261
- modified the perl build and install process
38f2261
- made some .spec changes to build on RedHat 7.x and limbo
38f2261
38f2261
* Fri Aug 09 2002 Simon Matter <simix@datacomm.ch>
38f2261
- included sieve matching patch
38f2261
38f2261
* Thu Jun 27 2002 Simon Matter <simix@datacomm.ch>
38f2261
- fixed %post script where %F was expanded to file.file
38f2261
38f2261
* Wed Jun 26 2002 Simon Matter <simix@datacomm.ch>
38f2261
- fixed missing man page
38f2261
38f2261
* Tue Jun 25 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.5
38f2261
38f2261
* Mon Jun 24 2002 Simon Matter <simix@datacomm.ch>
38f2261
- added compile time parameters to configure the package based on
38f2261
  the idea from Luca Olivetti <luca@olivetti.cjb.net>
38f2261
- make deliver-wrapper a compile time option
38f2261
38f2261
* Fri May 02 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.4
38f2261
38f2261
* Mon Apr 22 2002 Simon Matter <simix@datacomm.ch>
38f2261
- small initscript fix
38f2261
38f2261
* Fri Mar 08 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.3
38f2261
- removed some stuff that was cleaned up in the sources
38f2261
- added compile time options for db backends
38f2261
38f2261
* Wed Mar 06 2002 Simon Matter <simix@datacomm.ch>
38f2261
- removed requires perl-File-Temp for utils package, it's in the RedHat
38f2261
  perl RPM now
38f2261
38f2261
* Fri Feb 22 2002 Simon Matter <simix@datacomm.ch>
38f2261
- removed deliverdb/db
38f2261
38f2261
* Wed Feb 20 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.2
38f2261
38f2261
* Mon Feb 11 2002 Simon Matter <simix@datacomm.ch>
38f2261
- changed sasl_mech_list: PLAIN in /etc/imapd.conf
38f2261
- added sieve to /etc/pam.d
38f2261
38f2261
* Fri Feb 08 2002 Simon Matter <simix@datacomm.ch>
38f2261
- added requires perl-File-Temp for utils package
38f2261
38f2261
* Wed Feb 06 2002 Simon Matter <simix@datacomm.ch>
38f2261
- added some %dir flags
38f2261
- removed /usr/lib/sasl/Cyrus.conf
38f2261
- added conf templates
38f2261
- build time option for usage of saslauth group
38f2261
38f2261
* Tue Feb 05 2002 Simon Matter <simix@datacomm.ch>
38f2261
- upgraded to cyrus-imapd 2.1.1
38f2261
- dependency of cyrus-sasl >= 2.1.0-1
38f2261
38f2261
* Sun Feb 03 2002 Simon Matter <simix@datacomm.ch>
38f2261
- saslauth group is only deleted on uninstall if there is no other
38f2261
  member in this group
38f2261
38f2261
* Sat Feb 02 2002 Simon Matter <simix@datacomm.ch>
38f2261
- changed start/stop level in init file
38f2261
38f2261
* Tue Jan 29 2002 Simon Matter <simix@datacomm.ch>
38f2261
- dependency of cyrus-sasl >= 1.5.24-22
38f2261
- dotstuffing patch for sendmail calls made by sieve for outgoing
38f2261
  mails
38f2261
- patch for ability to force ipurge to traverse personal folders
38f2261
38f2261
* Mon Jan 28 2002 Simon Matter <simix@datacomm.ch>
38f2261
- minor spec file changes
38f2261
38f2261
* Sat Jan 19 2002 Simon Matter <simix@datacomm.ch>
38f2261
- changed default auth to pam
38f2261
- remove several %dir from %files sections
38f2261
- change from /usr/lib/cyrus -> /usr/libexec/cyrus
38f2261
- rename source files to something like cyrus...
38f2261
- added rehash tool
38f2261
- changed to hashed spool
38f2261
38f2261
* Fri Jan 18 2002 Simon Matter <simix@datacomm.ch>
38f2261
- fixed init script
38f2261
- fixed %post section in spec
38f2261
38f2261
* Thu Jan 17 2002 Simon Matter <simix@datacomm.ch>
38f2261
- ready for first build
38f2261
38f2261
* Wed Jan 09 2002 Simon Matter <simix@datacomm.ch>
38f2261
- initial package, with help from other packages out there