rpms/uw-imap/devel README.IMAPS, NONE, 1.1 imap-2001a-overflow.patch, NONE, 1.1 imap-2002d-ssltype.patch, NONE, 1.1 imap-2002e-authmd5.patch, NONE, 1.1 imap-2002e-shared.patch, NONE, 1.1 imap-2004-paths.patch, NONE, 1.1 imap-2004c1-mbxproto.patch, NONE, 1.1 imap-2004d-optflags.patch, NONE, 1.1 imap-xinetd, NONE, 1.1 imap.pamd, NONE, 1.1 imaps-xinetd, NONE, 1.1 ipop2-xinetd, NONE, 1.1 ipop3-xinetd, NONE, 1.1 pop3s-xinetd, NONE, 1.1 uw-imap.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Mon Sep 26 20:26:25 UTC 2005


Author: rdieter

Update of /cvs/extras/rpms/uw-imap/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24611/devel

Modified Files:
	.cvsignore sources 
Added Files:
	README.IMAPS imap-2001a-overflow.patch 
	imap-2002d-ssltype.patch imap-2002e-authmd5.patch 
	imap-2002e-shared.patch imap-2004-paths.patch 
	imap-2004c1-mbxproto.patch imap-2004d-optflags.patch 
	imap-xinetd imap.pamd imaps-xinetd ipop2-xinetd ipop3-xinetd 
	pop3s-xinetd uw-imap.spec 
Log Message:
auto-import uw-imap-2004g-1 on branch devel from uw-imap-2004g-1.src.rpm


--- NEW FILE README.IMAPS ---
The IMAP server is now configured by default to use its built-in SSL
support instead of using stunnel.  Accordingly, the name of the
certificate file in @@SSLCERTS@@ has changed from stunnel.pem
to imapd.pem.  Users upgrading from previous releases will need to
rename, copy, or create a symbolic link to their existing certificate.

imap-2001a-overflow.patch:

--- NEW FILE imap-2001a-overflow.patch ---
--- imap-2001a/src/c-client/rfc822.c.overflow	Wed Apr 17 22:39:13 2002
+++ imap-2001a/src/c-client/rfc822.c	Wed Apr 17 22:40:25 2002
@@ -610,6 +610,9 @@
 	if (CHR (bs) == '\012'){/* following LF? */
 	  c = SNX (bs); i--;	/* yes, slurp it */
 	}
+	if (!i)			/* Make sure we don't get an overflow for */
+	  break;		/* messages ending on \015 (or the following */
+				/* i-- will cause i to be MAXINT. Not good.) */
       case '\012':		/* at start of a line, start with -- ? */
 	if (i-- && ((c = SNX (bs)) == '-') && i-- && ((c = SNX (bs)) == '-')) {
 				/* see if cookie matches */

imap-2002d-ssltype.patch:

--- NEW FILE imap-2002d-ssltype.patch ---
*** imap-2002d.orig/Makefile	2003-04-16 20:32:42.000000000 -0400
--- imap-2002d/Makefile	2003-07-11 15:47:30.000000000 -0400
***************
*** 419,427 ****
  	@echo + In order to rectify this problem, you MUST build with:
  	@echo ++ SSLTYPE=$(SSLTYPE).nopwd
  	@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- 	@echo
- 	@echo Do you want to continue this build anyway?  Type y or n please:
- 	@$(SH) -c 'read x; case "$$x" in y) exit 0;; *) exit 1;; esac'
  
  sslnone:
  	@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--- 419,424 ----
***************
*** 434,442 ****
  	@echo ++ SSLTYPE=nopwd
  	@echo + You must also have OpenSSL or equivalent installed.
  	@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- 	@echo
- 	@echo Do you want to continue this build anyway?  Type y or n please:
- 	@$(SH) -c 'read x; case "$$x" in y) exit 0;; *) exit 1;; esac'
  
  
  # C compiler types
--- 431,436 ----

imap-2002e-authmd5.patch:

--- NEW FILE imap-2002e-authmd5.patch ---

Make some more functions static to prevent such horrible namespace
pollution.

--- imap-2002e/src/c-client/auth_md5.c.authmd5	2004-03-02 17:25:43.000000000 +0000
+++ imap-2002e/src/c-client/auth_md5.c	2004-03-02 17:25:51.000000000 +0000
@@ -34,17 +34,17 @@
 
 /* Prototypes */
 
-long auth_md5_valid (void);
-long auth_md5_client (authchallenge_t challenger,authrespond_t responder,
+static long auth_md5_valid (void);
+static long auth_md5_client (authchallenge_t challenger,authrespond_t responder,
 		      char *service,NETMBX *mb,void *stream,
 		      unsigned long *trial,char *user);
-char *auth_md5_server (authresponse_t responder,int argc,char *argv[]);
-char *auth_md5_pwd (char *user);
+static char *auth_md5_server (authresponse_t responder,int argc,char *argv[]);
+static char *auth_md5_pwd (char *user);
 char *apop_login (char *chal,char *user,char *md5,int argc,char *argv[]);
-char *hmac_md5 (char *text,unsigned long tl,char *key,unsigned long kl);
-void md5_init (MD5CONTEXT *ctx);
-void md5_update (MD5CONTEXT *ctx,unsigned char *data,unsigned long len);
-void md5_final (unsigned char *digest,MD5CONTEXT *ctx);
+static char *hmac_md5 (char *text,unsigned long tl,char *key,unsigned long kl);
+static void md5_init (MD5CONTEXT *ctx);
+static void md5_update (MD5CONTEXT *ctx,unsigned char *data,unsigned long len);
+static void md5_final (unsigned char *digest,MD5CONTEXT *ctx);
 static void md5_transform (unsigned long *state,unsigned char *block);
 static void md5_encode (unsigned char *dst,unsigned long *src,int len);
 static void md5_decode (unsigned long *dst,unsigned char *src,int len);

imap-2002e-shared.patch:

--- NEW FILE imap-2002e-shared.patch ---
--- imap-2002e/src/osdep/unix/Makefile.shared	2004-04-07 00:16:48.370334040 +0300
+++ imap-2002e/src/osdep/unix/Makefile	2004-04-07 00:18:31.458379840 +0300
@@ -131,6 +131,10 @@
  EXTRADRIVERS='$(EXTRADRIVERS)' EXTRAAUTHENTICATORS='$(EXTRAAUTHENTICATORS)'\
  PASSWDTYPE=$(PASSWDTYPE) SSLTYPE=$(SSLTYPE)
 
+# Need this for the shared library rule to work correctly
+.SUFFIXES: .o .so
+SOFILES=${BINARIES:.o=.so}
+
 
 # Here if no make argument established
 
@@ -762,18 +766,24 @@
 
 # Build it!
 
-build:	clean once $(ARCHIVE)
+build:	clean once $(ARCHIVE) $(SHLIBNAME)
 
-all:	$(ARCHIVE)
+all:	$(ARCHIVE) $(SHLIBNAME)
 
 $(ARCHIVE): $(BINARIES)
 	sh -c '$(RM) $(ARCHIVE) || true'
 	@$(CAT) ARCHIVE
 	@$(SH) ARCHIVE
 
-.c.o:
-	`$(CAT) CCTYPE` -c `$(CAT) CFLAGS` $*.c
+$(SHLIBNAME):	$(SOFILES)
+	gcc -shared -Wl,-soname,$(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES) `cat LDFLAGS`
+	ln -s $(SHLIBNAME) lib$(SHLIBBASE).so
+
+.c.so:	osdep.h
+	$(CC) -fPIC -DPIC -D_REENTRANT -c `$(CAT) CFLAGS` ${@:.so=.c} -o $@
 
+.c.o:
+	$(CC) -c `$(CAT) CFLAGS` $*.c
 
 # Cleanup
 
@@ -812,7 +822,7 @@
 
 # OS-dependent
 
-osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
+OSDEPS=	mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
 	osdep.h env_unix.h tcp_unix.h \
 	osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c \
 	auths.c crexcl.c flocksim.c nfstest.c flcksafe.c fsync.c gethstid.c \
@@ -825,12 +835,19 @@
 	write.c sslstdio.c \
 	strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
 	OSCFLAGS
+
+osdep.o:	$(OSDEPS)
+	$(CC) $(CFLAGS) `$(CAT) OSCFLAGS` -c osdep.c
+	@echo ========================================================================
 	@echo Building OS-dependent module
 	@echo If you get No such file error messages for files x509.h, ssl.h,
 	@echo pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
 	@echo is not installed on your system.  Either install OpenSSL first
 	@echo or build with command: make `$(CAT) OSTYPE` SSLTYPE=none
-	`$(CAT) CCTYPE` -c `$(CAT) CFLAGS` `$(CAT) OSCFLAGS` -c osdep.c
+	@echo ========================================================================
+
+osdep.so:	$(OSDEPS)
+	$(CC) -fPIC -DPIC -D_REENTRANT -c $(CFLAGS) `cat OSCFLAGS` osdep.c -o $@
 
 osdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c
 	$(CAT) osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c

imap-2004-paths.patch:

--- NEW FILE imap-2004-paths.patch ---
--- imap-2004/src/osdep/unix/Makefile.linux-patch	2004-07-07 09:33:00.000000000 -0500
+++ imap-2004/src/osdep/unix/Makefile	2004-07-07 09:33:00.000000000 -0500
@@ -71,14 +71,13 @@
 LOGINPW=std
 SIGTYPE=bsd
 CRXTYPE=std
-ACTIVEFILE=/usr/lib/news/active
-SPOOLDIR=/usr/spool
+ACTIVEFILE=/var/lib/news/active
+SPOOLDIR=/var/spool
 MAILSPOOL=$(SPOOLDIR)/mail
 NEWSSPOOL=$(SPOOLDIR)/news
-RSHPATH=/usr/ucb/rsh
+RSHPATH=/usr/bin/rsh
 LOCKPGM=/etc/mlock
 
-
 # Default formats for creating new mailboxes and for empty mailboxes in the
 # default namespace; must be set to the associated driver's prototype.
 #

imap-2004c1-mbxproto.patch:

--- NEW FILE imap-2004c1-mbxproto.patch ---
--- imap-2004c1/src/osdep/unix/Makefile.mbxproto	2005-04-28 12:44:53.000000000 -0500
+++ imap-2004c1/src/osdep/unix/Makefile	2005-04-28 12:59:29.000000000 -0500
@@ -91,7 +91,7 @@
 # set certain other formats (e.g. mbx and mx) as the EMPTYPROTO since these
 # formats can never be empty files.
 
-CREATEPROTO=unixproto
+CREATEPROTO=mbxproto
 EMPTYPROTO=unixproto
 
 

imap-2004d-optflags.patch:

--- NEW FILE imap-2004d-optflags.patch ---
--- imap-2004d/src/osdep/unix/Makefile.optflags	2005-04-29 12:53:09.000000000 -0500
+++ imap-2004d/src/osdep/unix/Makefile	2005-04-29 12:55:16.000000000 -0500
@@ -36,7 +36,7 @@
 # -O3 seems to be safe, but empirical observation from our local expert
 # indicates that in some (many?) cases -O3 code runs slower than -O2.
 
-GCCOPTLEVEL= -O2
+GCCOPTLEVEL= -O2 $(RPM_OPT_FLAGS)
 
 
 # Extended flags needed for SSL.  You may need to modify.
@@ -454,7 +454,7 @@
 	 SPOOLDIR=/var/spool \
 	 ACTIVEFILE=/var/lib/news/active \
 	 RSHPATH=/usr/bin/rsh \
-	 BASECFLAGS="-g -fno-omit-frame-pointer $(GCCOPTLEVEL)" \
+	 BASECFLAGS="$(GCCOPTLEVEL)" \
 	 BASELDFLAGS="$(PAMLDFLAGS)"
 
 lnx:	# Linux non-shadow passwords


--- NEW FILE imap-xinetd ---
# default: off
# description: The IMAP service allows remote users to access their mail using \
#              an IMAP client such as Mutt, Pine, fetchmail, or Netscape \
#              Communicator.
service imap
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/imapd
	log_on_success	+= HOST DURATION
	log_on_failure	+= HOST
	disable			= yes
}


--- NEW FILE imap.pamd ---
#%PAM-1.0
auth       required	pam_stack.so service=system-auth
account    required	pam_stack.so service=system-auth


--- NEW FILE imaps-xinetd ---
# default: off
# description: The IMAPS service allows remote users to access their mail \
#	       using an IMAP client with SSL support such as Netscape \
#	       Communicator or fetchmail.
service imaps
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/imapd
	log_on_success  += HOST DURATION
	log_on_failure	+= HOST
	disable			= yes
}


--- NEW FILE ipop2-xinetd ---
# default: off
# description: The POP2 service allows remote users to access their mail \
#              using an POP2 client such as fetchmail.  In most cases, clients \
#              support POP3 instead of POP2, so enabling this service is rarely \
#              necessary.
service pop2
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/ipop2d
	log_on_success  += HOST DURATION 
	log_on_failure  += HOST
	disable			= yes
}


--- NEW FILE ipop3-xinetd ---
# default: off
# description: The POP3 service allows remote users to access their mail \
#              using an POP3 client such as Netscape Communicator, mutt, \
#	       or fetchmail.
service pop3
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/ipop3d
	log_on_success	+= HOST DURATION
	log_on_failure	+= HOST
	disable			= yes
}


--- NEW FILE pop3s-xinetd ---
# default: off
# description: The POP3S service allows remote users to access their mail \
#              using an POP3 client with SSL support such as fetchmail.
service pop3s
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/ipop3d
	log_on_success	+= HOST DURATION
	log_on_failure	+= HOST
	disable			= yes
}


--- NEW FILE uw-imap.spec ---
# $Id: imap.spec,v 1.4 2004/07/23 14:41:13 rexdieter Exp $

# Change the default connected directory from the user's home directory
# to the named subdirectory of the user's home directory
%define mail_subdirectory      Mail

Summary: UW Server daemons for IMAP and POP network mail protocols
Name:	 uw-imap 
#Epoch:	 1
Version: 2004g
Release: 1%{?dist}
License: University of Washington Free-Fork License
Group: 	 System Environment/Daemons
URL:	 http://www.washington.edu/imap/
# Old (non-latest) releases live at  ftp://ftp.cac.washington.edu/imap/old/
Source:	 ftp://ftp.cac.washington.edu/imap/imap-2004g.tar.Z
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%define soname    c-client
%define somajver  %{version} 
%define shlibname lib%{soname}.so.%{somajver}
%define imap_libs lib%{soname}%{somajver}
#Old naming
#define imap_libs	imap-libs

# FC4 uses %%_sysconfdir/pki/tls/certs, previous releases used %%_datadir/ssl/certs
%define sslcerts  %{expand:%(if [ -d %{_sysconfdir}/pki/tls/certs ]; then echo "%{_sysconfdir}/pki/tls/certs"; else echo "%{_datadir}/ssl/certs"; fi)}

# imap -> uw-imap rename
Obsoletes: imap < 1:%{version}

Source1: imap.pamd
Source3: imap-xinetd
Source4: ipop2-xinetd
Source5: ipop3-xinetd
Source6: imaps-xinetd
Source7: pop3s-xinetd
Source9: README.IMAPS

Patch1: imap-2004-paths.patch
Patch2: imap-2004d-optflags.patch
Patch5: imap-2001a-overflow.patch
Patch7: imap-2002d-ssltype.patch
Patch9: imap-2002e-shared.patch
Patch10: imap-2002e-authmd5.patch
Patch11: imap-2004c1-mbxproto.patch

# for legacy machines
BuildRequires: krb5-devel
BuildRequires: openssl-devel
BuildRequires: pam-devel

# Prereq is shorter than separate Requires, Requires(post), Requires(postun)
Prereq: xinetd
Requires(post): openssl
Requires(triggerpostun): sed >= 4.0

%description
The %{name} package provides UW server daemons for both the IMAP (Internet
Message Access Protocol) and POP (Post Office Protocol) mail access
protocols.  The POP protocol uses a "post office" machine to collect
mail for users and allows users to download their mail to their local
machine for reading. The IMAP protocol allows a user to read mail on a
remote machine without downloading it to their local machine.

%package -n %{imap_libs} 
Summary: UW C-client mail library 
Group:	 System Environment/Libraries
%description -n %{imap_libs} 
Provides a common API for accessing mailboxes. 

%package devel
Summary: Development tools for programs which will use the UW IMAP library
Group: 	 Development/Libraries
Requires: %{imap_libs} = %{version}-%{release}
# imap -> uw-imap rename
Obsoletes: imap-devel < 1:%{version}
Conflicts: libc-client-devel
%description devel
Contains the header files and static libraries for developing programs 
which will use the UW C-client common API.

%package utils
Summary: UW IMAP Utilities to make managing your email simpler
Group: 	 Applications/System 
# imap -> uw-imap rename
Obsoletes: imap-utils < 1:%{version}
%description utils
This package contains some utilities for managing UW IMAP email.


%prep
%setup -q -n imap-%{version}

%patch1 -p1 -b .paths
%patch2 -p1 -b .optflags

%patch5 -p1 -b .overflow

%patch7 -p1 -b .ssltype

%patch9 -p1 -b .shared
%patch10 -p1 -b .authmd5
# use mbx (instead of unix/mbox) folder format by default
%patch11 -p1 -b .mbxproto

install -m644 %{SOURCE9} README.IMAPS 
sed -i -e "s|@@SSLCERTS@@|%{sslcerts}|" README.IMAPS


%build
# Not sure why this is included, omitting for now -- Rex
#EXTRACFLAGS="$EXTRACFLAGS -DDISABLE_POP_PROXY=1"

# Kerberos setup (proabably legacy-only -- Rex)
if [ -x %{_sysconfdir}/profile.d/krb5.sh ]; then
  . %{_sysconfdir}/profile.d/krb5.sh
elif ! echo ${PATH} | grep -q %{_prefix}kerberos/bin ; then
  export PATH=%{_prefix}/kerberos/bin:${PATH}
fi
GSSDIR=$(krb5-config --prefix)

# SSL setup (probably legacy-only -- Rex)
export EXTRACFLAGS="$EXTRACFLAGS $(pkg-config --cflags openssl 2>/dev/null)"

make %{?_smp_mflags} lnp \
EXTRACFLAGS="$EXTRACFLAGS" \
EXTRALDFLAGS="$EXTRALDFLAGS" \
EXTRAAUTHENTICATORS=gss \
SPECIALS="GSSDIR=${GSSDIR} LOCKPGM=%{_sbindir}/mlock SSLCERTS=%{sslcerts} SSLDIR=%{_datadir}/ssl SSLINCLUDE=%{_includedir}/openssl SSLLIB=%{_libdir}" \
SSLTYPE=unix \
CCLIENTLIB=$(pwd)/c-client/%{shlibname} \
SHLIBBASE=%{soname} \
SHLIBNAME=%{shlibname}
# Blank line


%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_libdir}
install -p -m644 ./c-client/c-client.a $RPM_BUILD_ROOT%{_libdir}/
ln -s c-client.a  $RPM_BUILD_ROOT%{_libdir}/libc-client.a

install -p -m755 ./c-client/%{shlibname} $RPM_BUILD_ROOT%{_libdir}/
ln -s %{shlibname} $RPM_BUILD_ROOT%{_libdir}/lib%{soname}.so

mkdir -p $RPM_BUILD_ROOT%{_includedir}/imap
install -m644 ./c-client/*.h $RPM_BUILD_ROOT%{_includedir}/imap
# Added linkage.c to fix (#34658) <mharris>
install -m644 ./c-client/linkage.c $RPM_BUILD_ROOT%{_includedir}/imap
install -m644 ./src/osdep/tops-20/shortsym.h $RPM_BUILD_ROOT%{_includedir}/imap

mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -p -m644 src/{ipopd/ipopd,imapd/imapd}.8 $RPM_BUILD_ROOT%{_mandir}/man8/
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
install -p -m755 ipopd/ipop{2d,3d} $RPM_BUILD_ROOT%{_sbindir}/
install -p -m755 imapd/imapd $RPM_BUILD_ROOT%{_sbindir}/
install -p -m755 mlock/mlock $RPM_BUILD_ROOT%{_sbindir}/

mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -p -m755 dmail/dmail mailutil/mailutil mtest/mtest tmail/tmail $RPM_BUILD_ROOT%{_bindir}/
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m644 src/{dmail/dmail,mailutil/mailutil,tmail/tmail}.1 $RPM_BUILD_ROOT%{_mandir}/man1/

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -p -m644 -D ${RPM_SOURCE_DIR}/imap.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/imap
install -p -m644 -D ${RPM_SOURCE_DIR}/imap.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/pop

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/
install -p -m644 -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/imap
install -p -m644 -D %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/imaps
install -p -m644 -D %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/ipop2
install -p -m644 -D %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/ipop3
install -p -m644 -D %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/pop3s

# Generate ghost *.pem files
mkdir -p $RPM_BUILD_ROOT%{sslcerts}
touch $RPM_BUILD_ROOT%{sslcerts}/{imapd,ipop3d}.pem

# c-client.cf: mail_subdirectory
cat > c-client.cf <<EOF
I accept the risk of using UW-IMAP
set mail-subdirectory %{mail_subdirectory} 
EOF
install -p -m644 -D c-client.cf $RPM_BUILD_ROOT%{_sysconfdir}/c-client.cf


%post
{
cd %{sslcerts} &> /dev/null || :
for CERT in imapd.pem ipop3d.pem ;do
   if [ ! -e $CERT ];then
      if [ -e stunnel.pem ];then
         cp stunnel.pem $CERT &> /dev/null || :
      elif [ -e Makefile ];then
         make $CERT << EOF &> /dev/null || :
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
localhost.localdomain
root at localhost.localdomain
EOF
      fi
   fi
done
} || :
/sbin/service xinetd reload > /dev/null 2>&1 || :

%postun
/sbin/service xinetd reload > /dev/null 2>&1 || :

%post -n %{imap_libs} -p /sbin/ldconfig

%postun -n %{imap_libs} -p /sbin/ldconfig

%triggerpostun -- imap < 1:2004
#if upgrading from old version, don't change/set (default) MailDir
if [ -r %{_sysconfdir}/c-client.cf ]; then
  if grep -q "^set mail-subdirectory %{mail_subdirectory}" %{_sysconfdir}/c-client.cf; then
    sed -i -e 's/^set mail-subdirectory/\#set mail-subdirectory/g' \
      %{_sysconfdir}/c-client.cf
  fi
fi


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc README.IMAPS docs/CONFIG
%config %{_sysconfdir}/pam.d/imap
%config %{_sysconfdir}/pam.d/pop
%config(noreplace) %{_sysconfdir}/xinetd.d/imap
%config(noreplace) %{_sysconfdir}/xinetd.d/ipop2
%config(noreplace) %{_sysconfdir}/xinetd.d/ipop3
# These need to be replaced (ie, can't use %%noreplace), or imaps/pop3s will fail after an upgrade
%config %{_sysconfdir}/xinetd.d/imaps
%config %{_sysconfdir}/xinetd.d/pop3s
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{sslcerts}/imapd.pem
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{sslcerts}/ipop3d.pem
%config(noreplace) %{_sysconfdir}/c-client.cf
%{_mandir}/man8/*
%{_sbindir}/ipop2d
%{_sbindir}/ipop3d
%{_sbindir}/imapd

%files utils
%defattr(-,root,root)
%{_bindir}/*
%attr(2755, root, mail) %{_sbindir}/mlock
%{_mandir}/man1/*

%files -n lib%{soname}%{version}
%defattr(-,root,root)
%doc docs/RELNOTES docs/*.txt
%doc docs/CONFIG 
%{_libdir}/lib%{soname}.so.*

%files devel
%defattr(-,root,root)
%doc docs/SSLBUILD
%{_includedir}/imap
%{_libdir}/c-client.a
%{_libdir}/libc-client.a
%{_libdir}/lib%{soname}.so


%changelog
* Mon Sep 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2004g-1
- imap-2004g
- /etc -> %%_sysconfdir
- use %%{?_smp_mflags}

* Mon Aug 15 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2004e-1
- imap-2004e
- rename: imap -> uw-imap (yay, we get to drop the Epoch)
- sslcerts=%{_sysconfdir}/pki/tls/certs if exists, else /usr/share/ssl/certs

* Fri Apr 29 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1:2004d-1
- 2004d
- imap-libs -> lib%%{soname}%%{version} (ie, libc-client2004d), so we can 
  have multiple versions (shared-lib only) installed
- move mlock to -utils.
- revert RFC2301, locks out too many folks where SSL is unavailable

* Thu Apr 28 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1:2004-0.fdr.11.c1
- change default driver from mbox to mbx
- comply with RFC 3501 security: Unencrypted plaintext passwords are prohibited

* Fri Jan 28 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1:2004-0.fdr.10.c1
- imap-2004c1 security release:
  http://www.kb.cert.org/vuls/id/702777

* Thu Jan 20 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1:2004-0.fdr.9.c
- imap2004c
- -utils: dmail,mailutil,tmail
- -libs: include mlock (so it's available for other imap clients, like pine)
- remove extraneous patches
- %%_sysconfigdir/c-client.cf: use to set MailDir (but don't if upgrading from
  an older version (ie, if folks don't want/expect a change in behavior)

* Mon Sep 13 2004 Rex Dieter <rexdieter at sf.net. 1:2004-0.fdr.8.a
- don't use mailsubdir patch (for now)

* Wed Aug 11 2004 Rex Dieter <rexdieter at sf.net> 1:2004-0.fdr.7.a
- mailsubdir patch (default to ~/Mail instead of ~)

* Fri Jul 23 2004 Rex Dieter <rexdieter at sf.net> 1:2004-0.fdr.6.a
- remove Obsoletes/Provides: libc-client (they can, in fact, co-xist)
- -devel: remove O/P: libc-client-devel -> Conflicts: libc-client-devel

* Thu Jul 16 2004 Rex Dieter <rexdieter at sf.net> 1:2004-0.fdr.5.a
- imap2004a

* Tue Jul 13 2004 Rex Dieter <rexdieter at sf.net> 1:2004-0.fdr.4
- -devel: Req: %%{name}-libs

* Tue Jul 13 2004 Rex Dieter <rexdieter at sf.net> 1:2004-0.fdr.3
- previous imap pkgs had Epoch: 1, we need it too.

* Wed Jul 07 2004 Rex Dieter <rexdieter at sf.net> 2004-0.fdr.2
- use %%version as %%somajver (like how openssl does it)

* Wed Jul 07 2004 Rex Dieter <rexdieter at sf.net> 2004-0.fdr.1
- imap-2004
- use mlock, if available.
- Since libc-client is an attrocious name choice, we'll trump it, 
  and provide imap, imap-libs, imap-devel instead (redhat bug #120873)

* Wed Apr 07 2004 Kaj J. Niemi <kajtzu at fi.basen.net> 2002e-4
- Use CFLAGS (and RPM_OPT_FLAGS) during the compilation
- Build the .so through gcc instead of directly calling ld 

* Fri Mar  5 2004 Joe Orton <jorton at redhat.com> 2002e-3
- install .so with permissions 0755
- make auth_md5.c functions static to avoid symbol conflicts
- remove Epoch: 0

* Tue Mar 02 2004 Kaj J. Niemi <kajtzu at fi.basen.net> 0:2002e-2
- "lnp" already uses RPM_OPT_FLAGS
- have us conflict with imap, imap-devel

* Tue Mar  2 2004 Joe Orton <jorton at redhat.com> 0:2002e-1
- add post/postun, always use -fPIC

* Tue Feb 24 2004 Kaj J. Niemi <kajtzu at fi.basen.net>
- Name change from c-client to libc-client

* Sat Feb 14 2004 Kaj J. Niemi <kajtzu at fi.basen.net> 0:2002e-0.1
- c-client 2002e is based on imap-2002d
- Build shared version, build logic is copied from FreeBSD net/cclient



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/uw-imap/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	26 Sep 2005 20:24:17 -0000	1.1
+++ .cvsignore	26 Sep 2005 20:26:23 -0000	1.2
@@ -0,0 +1 @@
+imap-2004g.tar.Z


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/uw-imap/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	26 Sep 2005 20:24:17 -0000	1.1
+++ sources	26 Sep 2005 20:26:23 -0000	1.2
@@ -0,0 +1 @@
+9a80f58d8d6a0979c13714ae69050020  imap-2004g.tar.Z




More information about the fedora-extras-commits mailing list