There's a small problem in all this... the maxrcpt patch was written for qmail 1.01. 
It does NOT apply on 1.03. I've rewritten this last week, but merged it with other 
patches. I'll try to re-separate it from the rest next Monday.


On Fri, Nov 05, 1999 at 07:58:57PM +0100, Andr�s M�ndez wrote:
> > 1. Get the source rpm
> 
> OK, I copy qmail-1.03-102memphis.src.rpm to /2/
> 
> > 2. Install it
> 
> I execute "rpm -i /2/qmail-1.03-102memphis.src.rpm"
> 
> > 3. Add the patch to the SOURCES directory
> 
> I go to /usr/src/redhat/SOURCES and decompress var-qmail-1.03.tar.gz inside
> /usr/src/redhat/SOURCES/var-qmail-1.03
> 
> Then I go to /usr/src/redhat/SOURCES/var-qmail-1.03/ and execute "patch -p1
> < /2/qmail-1.01-maxrcpt.patch", but then it asks for a file to patch.
> 
> As you can see I'm giving you all the details if I do something wrong.
> 
> Which file does it have to patch, qmail-smtpd.c? because it doesn't exists
> (exists qmail-smtpd and qmail-smtpd.8).
> 
> > 4. Edit the .spec file (in SPECS directory) to use that patch
> > 5. Do rpm -ba spec_file in the SPECS directory
> > 6. in the RPMS directory, you have both source and i386 rpm
> >
> > Read RPM-HOWTO if unsure
> 
> NOTE: After that I would like to apply another patch: mfcheck. I suppose I
> can apply another patch too, can't I?
> 
> 

When using RPMS, it's easier to get the SPEC file to apply patches for you.
Just add lines like

Patch0: maxrcpt.patch
Patch1: mfcheck.patch

and so on, after the Source: line (within the header). Then, after the %setup line, 
add lines like:

%patch0 -p1
%patch1 -p1

Note: The patch files referred to in the Patch: lines must reside in the 
$RPM_SOURCE_DIR.

                                        Regards;
                                                Ricardo

-- 
+-------------------
| Ricardo Cerqueira  -  [EMAIL PROTECTED]
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| FCCN/RCCN  -  Fundacao para a Computacao Cientifica Nacional 
| Av. Brasil, 101 / 1700-066 Lisboa / Portugal *** Tel: (+351) 1 8440100

Reply via email to