If you read a later thread in that original message he admitted that he left out the patch command step after the "cd qmail-1.03" step.  Probably something like "patch -p0 < qmailqueue.patch"
 
---
Ed.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of dempsey
Sent: Saturday, June 01, 2002 12:28 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [Qmail-scanner-general]still not working

Something is not letting me install the patch. I went back looking for other methods to install the patch. I found this...
 
Here is how I add qmailqueue to an already running qmail system.
> >
> > # qmailctl stop    (or however you stop your mailserver)
> >
> > # cp -a /var/qmail/control /var/qmail/control-backup
> > # tar zxfv qmail-1.03.tar.gz
> > # cp qmailqueue.patch qmail-1.03
> > # cd qmail-1.03
> > # make setup check
> > # ./config-fast
> > # cp -fdpR /var/qmail/control-backup/* /var/qmail/control
> >
> > # qmailctl start  (or however you start your mailserver
> >
> > Now you have QMAILQUEUE support and nothing else has changed.
> > :)
> >
That also did not work. What could I have done that is preventing me from being able to install the qmailqueue patch?
 
Thanks
Doug
-----Original Message-----
From: dempsey [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 01, 2002 12:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [Qmail-scanner-general]still not working

Found my problem, I think. I ran a script I saw earlier in the list...
 
#!/bin/sh
#
# Short script to check if QMAILQUEUE is applied
#
echo -e '#!/bin/sh\n\ntouch /tmp/qmailqueue\nexit 0' >> /tmp/checkqq
chmod 755 /tmp/checkqq
QMAILQUEUE="/tmp/checkqq"; export QMAILQUEUE
echo "To: root@localhost" | /var/qmail/bin/qmail-inject
if [ -e /tmp/qmailqueue ]; then
echo -e "\n\n--------------\nQMAILQUEUE is installed\n--------------\n";
rm -rf /tmp/qmailqueue
else
echo -e "\n\n--------------\nQMAILQUEUE is NOT installed\n--------------\n";
fi;
rm -rf /tmp/checkqq
exit 0
 
The patch ain't installed.  I have been saving Bruce's patch in advanced editor under the name "qmailqueue.patch".  And then I have been issuing the patch -p1 < qmailqueue.patch command. I two .rej files.
 
Start########
 
Makefile.rej
 
***************
*** 1483,1494 ****
  trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o \
  datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a \
  lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o \
- auto_split.o
         ./load qmail-send qsutil.o control.o constmap.o newfield.o \
         prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o \
         qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a \
         wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a \
-        substdio.a error.a str.a fs.a auto_qmail.o auto_split.o
 
  qmail-send.0: \
  qmail-send.8
--- 1483,1494 ----
  trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o \
  datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a \
  lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o \
+ auto_split.o env.a
         ./load qmail-send qsutil.o control.o constmap.o newfield.o \
         prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o \
         qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a \
         wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a \
+        substdio.a error.a str.a fs.a auto_qmail.o auto_split.o env.a
 
  qmail-send.0: \
  qmail-send.8
 
end
########
 
########
Start
 
qmail.c.rej
***************
*** 6,19 ****
  #include "fd.h"
  #include "qmail.h"
  #include "auto_qmail.h"
 
- static char *binqqargs[2] = { "bin/qmail-queue", 0 } ;
 
  int qmail_open(qq)
  struct qmail *qq;
  {
    int pim[2];
    int pie[2];
 
    if (pipe(pim) == -1) return -1;
 
--- 6,30 ----
  #include "fd.h"
  #include "qmail.h"
  #include "auto_qmail.h"
+ #include "env.h"
 
+ static char *binqqargs[2] = { 0, 0 } ;
+
+ static void setup_qqargs()
+ {
+   if(!binqqargs[0])
+     binqqargs[0] = env_get("QMAILQUEUE");
+   if(!binqqargs[0])
+     binqqargs[0] = "bin/qmail-queue";
+ }
 
  int qmail_open(qq)
  struct qmail *qq;
  {
    int pim[2];
    int pie[2];
+
+   setup_qqargs();
 
    if (pipe(pim) == -1) return -1;
 
End
########
 
I am trying to install without using the rpms. Can someone tell me a way to do it? The way I am doing it is not working.
 
 
Thanks
Doug

Reply via email to