81236e
--- procmail-3.22.orig/examples/advanced
81236e
+++ procmail-3.22/examples/advanced
81236e
@@ -251,14 +251,14 @@
81236e
    --------------------------------------------------------
81236e
 
81236e
 There are many different reasons why more and more sites decide not to
81236e
-store mail in /usr/spool/mail or /usr/mail anymore.
81236e
+store mail in /var/spool/mail or /var/mail anymore.
81236e
 Some of the obvious advantages when storing mail in the recipient's home
81236e
 directory are:
81236e
 	- Mail is automatically subject to the user's quota limitations.
81236e
 	- Often there is more room on the home partition(s) than on that
81236e
-	  one /usr/mail partition.
81236e
+	  one /var/mail partition.
81236e
 
81236e
-The quota limitations also apply to /usr/spool/mail or /usr/mail if procmail
81236e
+The quota limitations also apply to /var/spool/mail or /var/mail if procmail
81236e
 does the delivery.  These quota limitations often do not work with the
81236e
 regular /bin/mail since that usually writes the mailbox with root permissions
81236e
 (eluding the quota restrictions).
81236e
@@ -276,7 +276,7 @@
81236e
 	defined SYSTEM_MBOX to be.  Some braindamaged mail programs
81236e
 	do not pick up the MAIL environment variable, these either
81236e
 	have to be patched/recompiled or you have to create symbolic
81236e
-	links in /usr/mail to every person's new mailbox.
81236e
+	links in /var/mail to every person's new mailbox.
81236e
 
81236e
 				---
81236e
 
81236e
--- procmail-3.22.orig/man/procmail.man
81236e
+++ procmail-3.22/man/procmail.man
81236e
@@ -166,7 +166,8 @@
81236e
 accept an unlimited number of arguments.@ETCRCS_desc@
81236e
 For some advanced usage of this option you should look in the
81236e
 .B EXAMPLES
81236e
-section below.@LMTPOPTdesc@.SH ARGUMENTS
81236e
+section below.@LMTPOPTdesc@
81236e
+.SH ARGUMENTS
81236e
 Any arguments containing an '=' are considered to be environment variable
81236e
 assignments, they will
81236e
 .I all
81236e
@@ -723,6 +724,15 @@
81236e
 .fi
81236e
 .ad
81236e
 .PP
81236e
+Some mailers (notably exim) do not currently accept the above syntax.
81236e
+In such case use this instead:
81236e
+.PP
81236e
+.na
81236e
+.nf
81236e
+|/usr/bin/procmail
81236e
+.fi
81236e
+.ad
81236e
+.PP
81236e
 Procmail can also be invoked to postprocess an already filled system
81236e
 mailbox.  This can be useful if you don't want to or can't use a
81236e
 $HOME/@DOT_FORWARD@ file (in which case the following script could
81236e
@@ -754,7 +764,7 @@
81236e
 .SS "A sample small @PROCMAILRC@:"
81236e
 .na
81236e
 .nf
81236e
-PATH=/bin:/usr/bin:@BINDIR@
81236e
+PATH=/usr/local/bin:/usr/bin:/bin
81236e
 MAILDIR=$HOME/Mail      #you'd better make sure it exists
81236e
 DEFAULT=$MAILDIR/mbox   #completely optional
81236e
 LOGFILE=$MAILDIR/from   #recommended
81236e
--- procmail-3.22.orig/man/procmailrc.man
81236e
+++ procmail-3.22/man/procmailrc.man
81236e
@@ -779,7 +779,7 @@
81236e
 .PP
81236e
 Some non-optimal and non-obvious regexps set MATCH to an incorrect
81236e
 value.  The regexp can be made to work by removing one or more unneeded
81236e
-'*', '+', or '?' operator on the left-hand side of the \e/ token.
81236e
+\&'*', '+', or '?' operator on the left-hand side of the \e/ token.
81236e
 .SH MISCELLANEOUS
81236e
 If the regular expression contains `\fB@TO_key@\fP' it will be substituted by
81236e
 .na
81236e
--- procmail-3.22.orig/src/comsat.c
81236e
+++ procmail-3.22/src/comsat.c
81236e
@@ -92,7 +92,7 @@
81236e
    }
81236e
   if(newvalid)						  /* so far, so good */
81236e
    { int s;
81236e
-     if(!*chp)						       /* no service */
81236e
+     if(!chad||!*chp)					       /* no service */
81236e
 	chp=BIFF_serviceport;				/* new balls please! */
81236e
      s=strtol(chp,&chad,10);
81236e
      if(chp!=chad)			       /* the service is not numeric */
81236e
@@ -120,7 +120,7 @@
81236e
 { int s;const char*p;
81236e
   if(!csvalid||!buf)		  /* is comat on and set to a valid address? */
81236e
      return;
81236e
-  if(!*cslgname||strlen(cslgname)+2>linebuf)	       /* is $LOGNAME bogus? */
81236e
+  if(!cslgname||!*cslgname||strlen(cslgname)+2>linebuf)/* is $LOGNAME bogus? */
81236e
      return;
81236e
   if(!(p=folder?folder:cslastf))		     /* do we have a folder? */
81236e
      return;
81236e
--- procmail-3.22.orig/src/formail.c
81236e
+++ procmail-3.22/src/formail.c
81236e
@@ -758,9 +758,9 @@
81236e
 	lputssn(buf,buffilled),ctlength-=buffilled,buffilled=lnl=0;
81236e
      ;{ int tbl=buflast,lwr='\n';
81236e
 	while(--ctlength>=0&&tbl!=EOF)	       /* skip Content-Length: bytes */
81236e
-	   lnl=lwr==tbl&&lwr=='\n',putcs(lwr=tbl),tbl=getchar();
81236e
+	   lnl=lwr==tbl&&lwr=='\n',lputcs(lwr=tbl),tbl=getchar();
81236e
 	if((buflast=tbl)=='\n'&&lwr!=tbl)	/* just before a line break? */
81236e
-	   putcs('\n'),buflast=getchar();		/* wrap up loose end */
81236e
+	   lputcs('\n'),buflast=getchar();		/* wrap up loose end */
81236e
       }
81236e
      if(!quiet&&ctlength>0)
81236e
       { charNUM(num,ctlength);
81236e
--- procmail-3.22.orig/src/memblk.c
81236e
+++ procmail-3.22/src/memblk.c
81236e
@@ -51,11 +51,11 @@
81236e
 {
81236e
 #ifdef USE_MMAP
81236e
   if(mb->fd>=0)
81236e
-   { long len=mb->len+1;
81236e
-     if(munmap(mb->p,len))
81236e
-	mmapfailed(len);		      /* don't want to continue here */
81236e
-     if((mb->p=mmap(0,len,PROT_READ,MAP_PRIVATE,mb->fd,(off_t)0))==MAP_FAILED)
81236e
-	mmapfailed(len);
81236e
+   { long mlen=mb->len+1;
81236e
+     if(munmap(mb->p,mlen))
81236e
+	mmapfailed(mlen);		      /* don't want to continue here */
81236e
+     if((mb->p=mmap(0,mlen,PROT_READ,MAP_PRIVATE,mb->fd,(off_t)0))==MAP_FAILED)
81236e
+	mmapfailed(mlen);
81236e
      close(mb->fd);
81236e
      mb->fd=ropen(devnull,O_RDWR,0);		/* XXX Perhaps -1 is better? */
81236e
    }
81236e
@@ -77,8 +77,8 @@
81236e
      strcpy(filename,MMAP_DIR);
81236e
      if(unique(filename,strchr(filename,'\0'),MMAP_FILE_LEN,MMAP_PERM,0,0)&&
81236e
 	(mb->fd=ropen(filename,O_RDWR,MMAP_PERM),unlink(filename),mb->fd>=0))
81236e
-      { mb->filelen=len;
81236e
-	if(lseek(mb->fd,mb->filelen-1,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
81236e
+      { mb->filelen=len+1;
81236e
+	if(lseek(mb->fd,len,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
81236e
 dropf:	 { close(mb->fd);mb->fd= -1;
81236e
 	   if(verbose)nlog("Unable to extend or use tempfile");
81236e
 	 }
81236e
@@ -98,9 +98,9 @@
81236e
       }
81236e
    }
81236e
   if(mb->fd>=0)
81236e
-   { if(len>mb->filelen)				  /* need to extend? */
81236e
-      { mb->filelen=len;
81236e
-	if(lseek(mb->fd,mb->filelen-1,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
81236e
+   { if(len>=mb->filelen)				  /* need to extend? */
81236e
+      { mb->filelen=len+1;
81236e
+	if(lseek(mb->fd,len,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
81236e
 	 { char*p=malloc(len+1);	   /* can't extend, switch to malloc */
81236e
 	   tmemmove(p,mb->p,mb->len);
81236e
 	   munmap(mb->p,mb->len+1);
81236e
@@ -124,9 +124,9 @@
81236e
    }
81236e
   else
81236e
      mb->p=realloc(mb->p,len+1);
81236e
-  mb->len=len+1;
81236e
-  mb->p[len]='\0';
81236e
+  mb->len=len;
81236e
 ret1:
81236e
+  mb->p[len]='\0';
81236e
   return 1;
81236e
 }
81236e
 
81236e
--- procmail-3.22.orig/src/autoconf
81236e
+++ procmail-3.22/src/autoconf
81236e
@@ -1470,15 +1470,14 @@
81236e
  grep 'Mlocal.*procmail' >$DEVNULL ||
81236e
  echo '#define CF_no_procmail_yet' >>$ACONF
81236e
 
81236e
-cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
81236e
- grep '^V' >$DEVNULL ||
81236e
- echo '#define buggy_SENDMAIL' >>$ACONF
81236e
+# cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
81236e
+#  grep '^V' >$DEVNULL ||
81236e
+#  echo '#define buggy_SENDMAIL' >>$ACONF
81236e
 
81236e
 lpath='/bin'
81236e
 bins="/bin"
81236e
 
81236e
-for newd in /usr/bin /usr/ucb /usr/5bin $BINDIR /local/bin /usr/local/bin \
81236e
- /global/bin /usr/bin/X11 /usr/X*/bin
81236e
+for newd in /usr/bin $BINDIR /usr/bin/X11 /usr/X*/bin
81236e
 do
81236e
   if test -d $newd
81236e
   then
81236e
--- procmail-3.22.orig/src/procmail.c
81236e
+++ procmail-3.22/src/procmail.c
81236e
@@ -652,8 +652,7 @@
81236e
 	      nrcond= -1;
81236e
 	   if(tolock)		 /* clear temporary buffer for lockfile name */
81236e
 	      free(tolock);
81236e
-	   for(i=maxindex(flags);i;i--)			  /* clear the flags */
81236e
-	      flags[i]=0;
81236e
+	   bbzero(flags,sizeof(flags));		  /* clear the flags */
81236e
 	   for(tolock=0,locknext=0;;)
81236e
 	    { chp=skpspace(chp);
81236e
 	      switch(i= *chp++)
81236e
--- procmail-3.22.orig/src/pipes.c
81236e
+++ procmail-3.22/src/pipes.c
81236e
@@ -145,7 +145,9 @@
81236e
   if(Stdout)
81236e
    { *(eq=strchr(Stdout,'\0')-1)='\0';			     /* chop the '=' */
81236e
      if(!(backblock=getenv(Stdout)))			/* no current value? */
81236e
-	PRDB=PWRB= -1;
81236e
+      { PRDB=PWRB= -1;
81236e
+	backlen=0;
81236e
+      }
81236e
      else
81236e
       { backlen=strlen(backblock);
81236e
 	goto pip;
81236e
@@ -155,9 +157,7 @@
81236e
 pip: rpipe(pbackfd);
81236e
   rpipe(pinfd);						 /* main pipes setup */
81236e
   if(!(pidchild=sfork()))			/* create a sending procmail */
81236e
-   { if(Stdout&&backblock)
81236e
-	backlen=strlen(backblock);
81236e
-     else
81236e
+   { if(!Stdout)
81236e
 	backblock=source,backlen=len;
81236e
      childsetup();rclose(PRDI);rclose(PRDB);
81236e
      rpipe(poutfd);rclose(STDOUT);
81236e
@@ -194,7 +194,7 @@
81236e
      makeblock(&temp,Stdfilled);
81236e
      tmemmove(temp.p,Stdout,Stdfilled);
81236e
      readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);
81236e
-     Stdout=realloc(Stdout,&Stdfilled+1);
81236e
+     Stdout=realloc(Stdout,Stdfilled+1);
81236e
      tmemmove(Stdout,temp.p,Stdfilled+1);
81236e
      freeblock(&temp);
81236e
      retStdout(Stdout,pwait&&pipw,!backblock);
81236e
--- procmail-3.22.orig/src/memblk.h
81236e
+++ procmail-3.22/src/memblk.h
81236e
@@ -1,6 +1,6 @@
81236e
 typedef struct memblk {
81236e
     char*p;						  /* where it starts */
81236e
-    long len;					 /* currently allocated size */
81236e
+    long len;			 /* current size, not including trailing NUL */
81236e
 #ifdef USE_MMAP
81236e
     off_t filelen;				     /* how long is the file */
81236e
     int fd;					   /* file which is mmap()ed */
81236e
--- procmail-3.22.orig/src/manconf.c
81236e
+++ procmail-3.22/src/manconf.c
81236e
@@ -233,7 +233,7 @@
81236e
  \2-@PRESERVOPT@\1and\1.BR \2-@FROMWHOPT@ .\1");
81236e
   pc("LMTPOPT",LMTPOPT);
81236e
 #else
81236e
-  ps("LMTPOPTdesc","");ps("LMTPusage","");
81236e
+  ps("LMTPOPTdesc","");ps("LMTPusage","\1");
81236e
 #endif
81236e
   pname("INIT_UMASK",0);printf("0%lo/g\n",(unsigned long)INIT_UMASK);lines--;
81236e
   pn("DEFlinebuf",DEFlinebuf);
81236e
--- procmail-3.22.orig/src/recommend.c
81236e
+++ procmail-3.22/src/recommend.c
81236e
@@ -47,7 +47,7 @@
81236e
      printf("chmod %lo %s\n",(unsigned long)(sgid|PERMIS),argv[2]);
81236e
   else if(chmdir==1)
81236e
      goto nogchmod;
81236e
-  if(chmdir)
81236e
+  if(0)
81236e
      printf("chmod %c+w %s/.\n",chmdir==1?'g':'a',mailspooldir);
81236e
 nogchmod:
81236e
   return EXIT_SUCCESS;
81236e
--- procmail-3.22.orig/src/foldinfo.h
81236e
+++ procmail-3.22/src/foldinfo.h
81236e
@@ -10,7 +10,7 @@
81236e
 
81236e
 #define ft_lock(type)	   ((type)>ft_MAILDIR)		   /* kernel lock fd */
81236e
 #define ft_atime(type)	   ((type)==ft_FILE)	      /* force atime < mtime */
81236e
-#define ft_dotlock(type)   ((type)==ft_FILE)		 /* dotlock $DEFAULT */
81236e
+#define ft_dotlock(type)   ((type)>ft_MAILDIR)		 /* dotlock $DEFAULT */
81236e
 #define ft_delim(type)	   ((type)==ft_FILE)		   /* add MMDF delim */
81236e
 #define ft_checkcloser(type) ((type)>ft_MH)
81236e
 #define ft_forceblank(type) ((type)!=ft_MAILDIR)  /* force blank line at end */
81236e
--- procmail-3.22.orig/src/mailfold.c
81236e
+++ procmail-3.22/src/mailfold.c
81236e
@@ -378,7 +378,8 @@
81236e
 	dfilled=mailread=0;
81236e
      else if(rhead)				/* only read in a new header */
81236e
       { memblk new;
81236e
-	dfilled=mailread=0;makeblock(&new,0);readdyn(&new,&dfilled,0);
81236e
+	dfilled=mailread=0;makeblock(&new,0);
81236e
+	readdyn(&new,&dfilled,thebody-themail.p);
81236e
 	if(tobesent>dfilled&&isprivate)		     /* put it in place here */
81236e
 	 { tmemmove(themail.p+dfilled,thebody,filled-=tobesent);
81236e
 	   tmemmove(themail.p,new.p,dfilled);
81236e
--- procmail-3.22.orig/FAQ
81236e
+++ procmail-3.22/FAQ
81236e
@@ -57,8 +57,8 @@
81236e
 		Forward to |/usr/bin/procmail
81236e
 	or if that doesn't work, try:
81236e
 		Pipe to /usr/bin/procmail
81236e
-	as the only line in your mail spool file (e.g. /usr/mail/$LOGNAME), as
81236e
-	well as doing a "chmod 06660 /usr/mail/$LOGNAME".  For more information
81236e
+	as the only line in your mail spool file (e.g. /var/mail/$LOGNAME), as
81236e
+	well as doing a "chmod 06660 /var/mail/$LOGNAME".  For more information
81236e
 	on such systems, do a "man mail".
81236e
 
81236e
 	If all of this doesn't work, procmail can be called on a periodical
81236e
@@ -210,14 +210,14 @@
81236e
 	procmail with both the fcntl() and lockf() locking method
81236e
 	disabled (see config.h).
81236e
 
81236e
-17. I sometimes get these `Lock failure on "/usr/mail/$LOGNAME.lock"' errors
81236e
+17. I sometimes get these `Lock failure on "/var/mail/$LOGNAME.lock"' errors
81236e
     from procmail.  What do I do about it?
81236e
 
81236e
 	The problem here is that as long as procmail has not read a
81236e
 	$HOME/.procmailrc file, it can hang on to the sgid mail permission
81236e
-	(which it needs in order to create a lockfile in /usr/mail).
81236e
+	(which it needs in order to create a lockfile in /var/mail).
81236e
 	I.e. if procmail delivers mail to a user without a $HOME/.procmailrc
81236e
-	file, procmail *can* (and does) use the /usr/mail/$LOGNAME.lock file.
81236e
+	file, procmail *can* (and does) use the /var/mail/$LOGNAME.lock file.
81236e
 
81236e
 	If, however, it finds a $HOME/.procmailrc file, procmail has to let go
81236e
 	of the sgid mail permission because otherwise any ordinary user could
81236e
@@ -226,7 +226,7 @@
81236e
 	There are several solutions to this problem:
81236e
 	- Some systems support the sticky bit on directories (when set only
81236e
 	  allows the owner of a file in that directory to rename or remove
81236e
-	  it).	This enables you to make /usr/spool/mail drwxrwxrwt.  It is
81236e
+	  it).	This enables you to make /var/mail drwxrwxrwt.  It is
81236e
 	  thus effectively world writable, but all the mailboxes in it are
81236e
 	  protected because only the mailbox owner can remove or rename it.
81236e
 	- If your system did not exhibit the !@#$%^&* POSIX semantics for
81236e
@@ -245,9 +245,9 @@
81236e
 			:0
81236e
 			$DEFAULT
81236e
 
81236e
-	- You could, instead of using /usr/mail/$LOGNAME, use a file below
81236e
+	- You could, instead of using /var/mail/$LOGNAME, use a file below
81236e
 	  your home directory as your default mailbox.
81236e
-	- Or, you could still use /usr/mail/$LOGNAME as the mailbox, but
81236e
+	- Or, you could still use /var/mail/$LOGNAME as the mailbox, but
81236e
 	  simply instruct procmail to use a different lockfile.	 This can
81236e
 	  be achieved by putting following recipe at the bottom of
81236e
 	  your .procmailrc file:
81236e
--- procmail-3.22.orig/Makefile
81236e
+++ procmail-3.22/Makefile
81236e
@@ -79,7 +79,7 @@
81236e
 #			-lresolv	# not really needed, is it?
81236e
 
81236e
 # Informal list of directories where we look for the libraries in SEARCHLIBS
81236e
-LIBPATHS=/lib /usr/lib /usr/local/lib
81236e
+LIBPATHS=/lib /usr/lib
81236e
 
81236e
 GCC_WARNINGS = -O2 -pedantic -Wreturn-type -Wunused -Wformat -Wtraditional \
81236e
  -Wpointer-arith -Wconversion -Waggregate-return \
81236e
--- procmail-3.22.orig/debian/changelog
81236e
+++ procmail-3.22/debian/changelog
81236e
@@ -0,0 +1,294 @@
81236e
+procmail (3.22-8) unstable; urgency=low
81236e
+
81236e
+  * Fixed strange formail -l behaviour when there is a Content-Length: header.
81236e
+    Thanks a lot to Henning Makholm for the patch (Closes: #217853).
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Mon,  3 Nov 2003 20:01:24 +0100
81236e
+
81236e
+procmail (3.22-7) unstable; urgency=low
81236e
+
81236e
+  * Fixed bad nroff syntax in procmailrc(5), closes: #147173.
81236e
+  * Added missing newline in procmail(1), closes: #180477.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Mon, 10 Mar 2003 00:09:20 +0100
81236e
+
81236e
+procmail (3.22-6) unstable; urgency=low
81236e
+
81236e
+  * Standards-Version: 3.5.8.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Thu, 26 Dec 2002 18:27:08 +0100
81236e
+
81236e
+procmail (3.22-5) stable; urgency=medium
81236e
+
81236e
+  * Patched pipes.c to fix a memory allocation bug (Closes: #171514).
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Thu, 26 Dec 2002 18:09:38 +0100
81236e
+
81236e
+procmail (3.22-4) unstable; urgency=low
81236e
+
81236e
+  * Fixed a typo in procmail(1). Patch by the author (Closes: #142983).
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Tue, 16 Apr 2002 19:16:20 +0200
81236e
+
81236e
+procmail (3.22-3) unstable; urgency=medium
81236e
+
81236e
+  * Fixed off-by-one bug in procmail.c which made the raw flag not to be
81236e
+    cleared properly. Thanks to Gregory Stark (Closes: #134341).
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Sun, 17 Feb 2002 16:43:02 +0100
81236e
+
81236e
+procmail (3.22-2) unstable; urgency=medium
81236e
+
81236e
+  * Modified mailfold.c to fix a segfault problem. Patch by the author.
81236e
+  * The system-wide mail directory is /var/mail as per policy.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Thu, 29 Nov 2001 09:39:04 +0100
81236e
+
81236e
+procmail (3.22-1) unstable; urgency=low
81236e
+
81236e
+  * New upstream release, which uses the `standard' format for Maildir
81236e
+    filenames and retries on name collision. It also contains some
81236e
+    bug fixes from the 3.23pre snapshot dated 2001-09-13.
81236e
+  * Removed `sendmail' from the Recommends field, since we already
81236e
+    have `exim' (the default Debian MTA) and `mail-transport-agent'.
81236e
+  * Removed suidmanager support. Conflicts: suidmanager (<< 0.50).
81236e
+  * Added support for DEB_BUILD_OPTIONS in the source package.
81236e
+  * README.Maildir: Do not use locking on the example recipe,
81236e
+    since it's wrong to do so in this case.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Wed, 21 Nov 2001 09:40:20 +0100
81236e
+
81236e
+procmail (3.15.2-1) stable; urgency=high
81236e
+
81236e
+  * New upstream release, with improved security and robustness involving
81236e
+    signal handlers. Author recommends upgrading to this version on
81236e
+    any system where it is installed setuid or setgid.
81236e
+  * This release fixes also Bug #108417: procmail -p -m resets PATH.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Thu, 30 Aug 2001 20:05:06 +0200
81236e
+
81236e
+procmail (3.15.1-4) unstable; urgency=low
81236e
+
81236e
+  * Don't add an extra newline when delivering to a Maildir folder.
81236e
+    Please note that the MTA may still add a newline on their own.
81236e
+    Exim users should check the `suffix' variable, for example.
81236e
+    Patch by the author. Closes: #78623.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Sat, 14 Apr 2001 17:18:29 +0200
81236e
+
81236e
+procmail (3.15.1-3) unstable; urgency=low
81236e
+
81236e
+  * Clarified formail -X behaviour, patch by the author (Closes: #77388).
81236e
+  * Updated QuickStart.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Sun, 25 Mar 2001 10:45:56 +0200
81236e
+
81236e
+procmail (3.15.1-2) unstable; urgency=low
81236e
+
81236e
+  * Fixed lockfile -l endless loop (Closes: #82006). Patch by the author.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Sun, 28 Jan 2001 19:44:49 +0100
81236e
+
81236e
+procmail (3.15.1-1) unstable; urgency=low
81236e
+
81236e
+  * New upstream release. A race to create the mailspool would bounce one of
81236e
+    the messages due to an internal error.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Mon,  8 Jan 2001 20:09:34 +0100
81236e
+
81236e
+procmail (3.15-3) unstable; urgency=low
81236e
+
81236e
+  * Fixed formatting error in procmailrc(5). Patch by the author.
81236e
+    (Closes: #80437).
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Sun, 31 Dec 2000 17:20:47 +0100
81236e
+
81236e
+procmail (3.15-2) unstable; urgency=low
81236e
+
81236e
+  * formail -l is now documented. Patch by the author (Closes: #72275).
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Fri,  1 Dec 2000 19:54:22 +0100
81236e
+
81236e
+procmail (3.15-1) unstable; urgency=low
81236e
+
81236e
+  * New upstream release. Maildir support is now built-in.
81236e
+  * Really change default PATH to "$HOME/bin:/usr/local/bin:/usr/bin:/bin".
81236e
+  * Modified the note in QuickStart about refiltering an old mail folder.
81236e
+  * Use SEARCHLIBS="" in debian/rules clean target to speed it up.
81236e
+  * Modified ft_dotlock in src/foldinfo.h to be in compliance with
81236e
+    locking policy, following a hint by the author.
81236e
+  * Removed (versioned) dependency on debianutils, since mailstat
81236e
+    does not use temporary files anymore.
81236e
+  * Made the .forward example in procmail(1) not to depend on the build
81236e
+    environment by modifying src/autoconf so that buggy_SENDMAIL is
81236e
+    never defined.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Mon, 28 Aug 2000 12:51:05 +0200
81236e
+
81236e
+procmail (3.13.1-4) stable; urgency=high
81236e
+
81236e
+  * Fixed weird formail -rk behavior (patch from the author, backported
81236e
+    from procmail-3.15). Thanks to Ben Collins for the report.
81236e
+  * s/smail/exim/ in `Recommends:' field.
81236e
+
81236e
+ -- Santiago Vila <sanvila@debian.org>  Tue, 22 Aug 2000 13:04:50 +0200
81236e
+
81236e
+procmail (3.13.1-3) unstable; urgency=medium
81236e
+
81236e
+  * Standards-Version: 3.1.1
81236e
+  * Updated location of licenses in copyright file.
81236e
+  * LOCKINGTEST=100 again, to use fcntl() and dot-locking, as required by
81236e
+    latest policy.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Wed,  1 Dec 1999 12:37:35 +0100
81236e
+
81236e
+procmail (3.13.1-2) unstable; urgency=low
81236e
+
81236e
+  * Modified procmail(1) and QuickStart to reflect the fact that exim does
81236e
+    not accept the exec keyword in .forward files (Bugs #33460 and #37771).
81236e
+  * Modified formail to recognize exim's Envelope-To: header (Bug#40718).
81236e
+    Patch by Philip Guenther.
81236e
+  * Standards-Version: 3.0.0.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Mon, 19 Jul 1999 20:09:25 +0200
81236e
+
81236e
+procmail (3.13.1-1) stable unstable; urgency=high
81236e
+
81236e
+  * New upstream release, 3.13 missed a couple possible overflows.
81236e
+  * Applied `procmail-locking.patch' from Bruce Guenter, since
81236e
+    no directory delivery mechanism requires locking (Bug #35210).
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Thu,  8 Apr 1999 13:56:33 +0200
81236e
+
81236e
+procmail (3.13-1) stable unstable; urgency=high
81236e
+
81236e
+  * New upstream release. procmail 3.12 breaks smartlist (Bug #35115).
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Fri,  2 Apr 1999 14:24:24 +0200
81236e
+
81236e
+procmail (3.12-1) frozen unstable; urgency=high
81236e
+
81236e
+  * New upstream release. Fixes some security bugs.
81236e
+  * #define GROUP_PER_USER in config.h to allow writeable rcfiles when
81236e
+    the group is the user's default group.
81236e
+  * Added KNOWN_BUGS to the doc directory.
81236e
+  * suid procmail to avoid non-suidness window when upgrading.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Thu,  4 Mar 1999 10:28:28 +0100
81236e
+
81236e
+procmail (3.10.7-7) frozen unstable; urgency=medium
81236e
+
81236e
+  * New Maildir patches from Bruce Guenter.
81236e
+    Should fix Bug #30320: procmail: maildir does not use From_ lines.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Thu, 31 Dec 1998 13:27:20 +0100
81236e
+
81236e
+procmail (3.10.7-6) frozen unstable; urgency=medium
81236e
+
81236e
+  * Patched mailfold.c to avoid the unnecessary one second wait when
81236e
+    delivering to MH folders (patch by the author).
81236e
+  * src/locking.c: Applied a bugfix patch from the author.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Wed, 13 May 1998 21:50:19 +0200
81236e
+
81236e
+procmail (3.10.7-5) frozen unstable; urgency=medium
81236e
+
81236e
+  * Added a patch for Maildir support. The "new" procmail should be
81236e
+    completely backwards compatible with the "previous" one, in the
81236e
+    sense that its behaviour should be just the same for already
81236e
+    existing .procmailrc files which do not use the new syntax for
81236e
+    Maildir folders.
81236e
+  * Added a small README.Maildir explaining how to use this feature.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Mon,  4 May 1998 19:39:55 +0200
81236e
+
81236e
+procmail (3.10.7-4) frozen unstable; urgency=low
81236e
+
81236e
+  * Added a small note in QuickStart about refiltering an old mail folder.
81236e
+  * mailstat(1): The log file is truncated to zero length (Bug #21022).
81236e
+  * PATH=/usr/local/bin:/usr/bin:/bin for the example in procmail(1).
81236e
+  * Standards-Version: 2.4.1.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Fri, 17 Apr 1998 18:00:14 +0200
81236e
+
81236e
+procmail (3.10.7-3) frozen unstable; urgency=medium
81236e
+
81236e
+  * Patched src/recommend.c so that the mail spool directory is not
81236e
+    touched. This will allow the package to be built using fakeroot.
81236e
+  * Patched mailstat so that it uses tempfile.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Tue, 24 Mar 1998 21:43:08 +0100
81236e
+
81236e
+procmail (3.10.7-2) unstable; urgency=low
81236e
+
81236e
+  * Default PATH is now "$HOME/bin:/usr/local/bin:/usr/bin:/bin".
81236e
+  * Added "fetchmail" to the Recommends: line as one more option.
81236e
+  * Added /usr/doc/procmail/QuickStart (experimental).
81236e
+  * Compressed changelog.Debian.
81236e
+  * Removed debstd dependency.
81236e
+  * Pristine source.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 31 Jan 1998 20:30:06 +0100
81236e
+
81236e
+procmail (3.10.7-1) unstable; urgency=low
81236e
+
81236e
+  * Upgraded to 3.11pre7. Sources are now GPLed, hurrah!
81236e
+  * Added explicit SEARCHLIBS, to avoid unneeded dependency on libdl.
81236e
+  * First libc6 release.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Wed, 18 Jun 1997 20:43:28 +0200
81236e
+
81236e
+procmail (3.10.4-2) frozen unstable; urgency=low
81236e
+
81236e
+  * Rebuilt using latest debmake to avoid a problem with suidmanager.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 17 May 1997 20:52:59 +0200
81236e
+
81236e
+procmail (3.10.4-1) frozen unstable; urgency=low
81236e
+
81236e
+  * Upgraded to 3.11pre4. Side effect: It can be built using libc6.
81236e
+  * Removed NFS_ATIME_HACK patch, since it is no longer needed.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 12 Apr 1997 19:06:46 +0200
81236e
+
81236e
+procmail (3.10-8) unstable; urgency=low
81236e
+
81236e
+  * Rewritten copyright file.
81236e
+  * initmake unmodified (source).
81236e
+  * Patched to recognize NFS_ATIME_HACK variable in .procmailrc or
81236e
+    /etc/procmailrc. Default value is "yes" (i.e. wait a second).
81236e
+  * Added a small note about this in /usr/doc/procmail/README.Debian.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Sun, 23 Mar 1997 12:04:34 +0100
81236e
+
81236e
+procmail (3.10-7) unstable; urgency=low
81236e
+
81236e
+  * Put CFLAGS settings &c in ./Makefile, not in debian/rules.
81236e
+  * Removed fix-substvars script, since it's no longer needed with
81236e
+    new libc5-5.4.20.
81236e
+  * Man page for mailstat changed slightly.
81236e
+  * Some minor debian/rules changes.
81236e
+  * Added MD5 sums.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Fri, 21 Feb 1997 20:53:30 +0100
81236e
+
81236e
+procmail (3.10-6) unstable; urgency=low
81236e
+
81236e
+  * Use debmake.
81236e
+  * suidmanager support.
81236e
+  * Removed `mailstat' from examples, it's already in /usr/bin.
81236e
+  * Removed also `dirname' (which was "for the deprived").
81236e
+  * Added `fix-substvars' script to depend on libc5 >= 5.4.0.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Mon, 23 Dec 1996 16:34:02 +0100
81236e
+
81236e
+procmail (3.10-5) unstable; urgency=low
81236e
+
81236e
+  * Updated to Standards-Version 2.1.2.2.
81236e
+  * Changed "Depends: MTA" to "Recommends: MTA".
81236e
+  * Added extended package description in control file.
81236e
+  * Added the symlink changelog.gz -> HISTORY.gz.
81236e
+  * Added an "experimental" man page for mailstat.
81236e
+  * New maintainer.
81236e
+
81236e
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 21 Dec 1996 23:32:11 +0100
81236e
--- procmail-3.22.orig/debian/control
81236e
+++ procmail-3.22/debian/control
81236e
@@ -0,0 +1,18 @@
81236e
+Source: procmail
81236e
+Section: mail
81236e
+Priority: standard
81236e
+Maintainer: Santiago Vila <sanvila@debian.org>
81236e
+Standards-Version: 3.6.1
81236e
+
81236e
+Package: procmail
81236e
+Architecture: any
81236e
+Depends: ${shlibs:Depends}
81236e
+Conflicts: suidmanager (<< 0.50)
81236e
+Recommends: exim | mail-transport-agent | fetchmail
81236e
+Description: Versatile e-mail processor
81236e
+ Can be used to create mail-servers, mailing lists, sort your incoming
81236e
+ mail into separate folders/files (real convenient when subscribing to one
81236e
+ or more mailing lists or for prioritising your mail), preprocess your
81236e
+ mail, start any programs upon mail arrival (e.g. to generate different
81236e
+ chimes on your workstation for different types of mail) or selectively
81236e
+ forward certain incoming mail automatically to someone.
81236e
--- procmail-3.22.orig/debian/copyright
81236e
+++ procmail-3.22/debian/copyright
81236e
@@ -0,0 +1,41 @@
81236e
+This is the Debian prepackaged version of the "procmail" mail-processing
81236e
+program written by Stephen van den Berg.
81236e
+
81236e
+This package is currently maintained by Santiago Vila <sanvila@debian.org>.
81236e
+The source for this release was downloaded from:
81236e
+
81236e
+ftp://ftp.procmail.org/pub/procmail/procmail-3.22.tar.gz
81236e
+
81236e
+This package was first put together by Bruce Perens <bruce@hams.com>,
81236e
+who added Debian package maintenance system files, and edited config.h
81236e
+to configure for Debian.
81236e
+
81236e
+Copyright:
81236e
+
81236e
+Procmail & formail mail processing package.
81236e
+Copyright (c) 1990-1999, S.R. van den Berg, The Netherlands.
81236e
+Copyright (c) 1999-2001, Philip Guenther, The United States of America
81236e
+
81236e
+This package is open source software; you can redistribute it and/or
81236e
+modify it under the terms of either:
81236e
+- the GNU General Public License as published by the Free Software Foundation
81236e
+  and can be found in the included file called "COPYING"; either version 2,
81236e
+  or (at your option) any later version, or
81236e
+- the "Artistic License" which can be found in the included file called
81236e
+  "Artistic".
81236e
+
81236e
+This package is distributed in the hope that it will be useful, but without
81236e
+any warranty; without even the implied warranty of merchantability or fitness
81236e
+for a particular purpose.  See either the GNU General Public License or the
81236e
+Artistic License for more details.
81236e
+
81236e
+For those of you that choose to use the GNU General Public License,
81236e
+my interpretation of the GNU General Public License is that no procmailrc
81236e
+script falls under the terms of the GPL unless you explicitly put
81236e
+said script under the terms of the GPL yourself.
81236e
+
81236e
+
81236e
+On Debian systems, the complete text of the GNU General Public License
81236e
+can be found in `/usr/share/common-licenses/GPL', and the complete
81236e
+text of the "Artistic License" can be found in
81236e
+`/usr/share/common-licenses/Artistic'.
81236e
--- procmail-3.22.orig/debian/mailstat.1
81236e
+++ procmail-3.22/debian/mailstat.1
81236e
@@ -0,0 +1,40 @@
81236e
+.TH MAILSTAT 1
81236e
+.SH NAME
81236e
+mailstat \- shows mail-arrival statistics
81236e
+.SH SYNOPSIS
81236e
+.B mailstat
81236e
+[\-klmots] [logfile]
81236e
+.SH DESCRIPTION
81236e
+.B mailstat
81236e
+parses a procmail-generated $LOGFILE and displays
81236e
+a summary about the messages delivered to all folders
81236e
+(total size, average size, nr of messages).
81236e
+The $LOGFILE is truncated to zero length, unless the
81236e
+.B -k
81236e
+option is used.
81236e
+Exit code 0 if mail arrived, 1 if no mail arrived.
81236e
+.SH OPTIONS
81236e
+.TP
81236e
+.I \-k
81236e
+keep logfile intact
81236e
+.TP
81236e
+.I \-l
81236e
+long display format
81236e
+.TP
81236e
+.I \-m
81236e
+merge any errors into one line
81236e
+.TP
81236e
+.I \-o
81236e
+use the old logfile
81236e
+.TP
81236e
+.I \-t
81236e
+terse display format
81236e
+.TP
81236e
+.I \-s
81236e
+silent in case of no mail
81236e
+.SH NOTES
81236e
+Customise to your heart's content, this program is only provided as a
81236e
+guideline.
81236e
+.SH AUTHOR
81236e
+This manual page was written by Santiago Vila <sanvila@debian.org>
81236e
+for the Debian GNU/Linux distribution (but may be used by others).
81236e
--- procmail-3.22.orig/debian/QuickStart
81236e
+++ procmail-3.22/debian/QuickStart
81236e
@@ -0,0 +1,97 @@
81236e
+procmail QuickStart
81236e
+===================
81236e
+
81236e
+* procmail is not an `interactive' program. It has to run automatically
81236e
+when the mail arrives. Therefore the first thing to do is to tell our MTA
81236e
+that we want procmail to "eat" all our mail messages. The way of doing
81236e
+this depends on the MTA we are using. For example, if we are using
81236e
+sendmail, it will suffice to have a .forward file like this in our home
81236e
+directory:
81236e
+
81236e
+"|exec /usr/bin/procmail"
81236e
+
81236e
+(don't forget the quotes, they are needed in this case).
81236e
+
81236e
+If you are using exim, use this instead as your .forward file:
81236e
+
81236e
+|/usr/bin/procmail
81236e
+
81236e
+The step of creating a .forward file is not needed if the MTA already
81236e
+performs the delivery using procmail. For example, Debian sendmail will
81236e
+automatically use procmail for mail delivering if the sendmail.cf is
81236e
+generated from a sendmail.mc file containing this line:
81236e
+
81236e
+FEATURE(local_procmail)dnl
81236e
+
81236e
+
81236e
+* If we have a stand-alone system with no permanent net connection (like
81236e
+PPP), and we are using fetchmail to get mail from a server, we don't
81236e
+really need a MTA.  Just adding  --mda "formail -s procmail"  to the
81236e
+fetchmail command line (or using the `mda' keyword) will tell it to
81236e
+deliver through procmail.
81236e
+
81236e
+
81236e
+* Next, we have to write a ~/.procmailrc file in our home directory. This
81236e
+file is a set of filtering rules, based on regular expressions. The
81236e
+complete syntax is explained in procmailrc(5). Let's see a real example
81236e
+just to get started. Let's suppose you are subscribed to the following two
81236e
+mailing lists:
81236e
+
81236e
+linux-kernel@vger.kernel.org
81236e
+debian-user@lists.debian.org
81236e
+
81236e
+The first list is managed by Majordomo. Messages coming from a Majordomo
81236e
+list often include a header field "Sender: " which allow easy filtering.
81236e
+
81236e
+The second list is managed my SmartList. Messages coming from a SmartList
81236e
+list may include several headers that can be used to filter it. One of
81236e
+them (in fact, the only that it is not X-whatever) is "Resent-Sender: ".
81236e
+
81236e
+So the following .procmailrc will first filter the mailing lists, and
81236e
+any remaining message will go to the default folder:
81236e
+
81236e
+*--------------------------------->8------------------------------------
81236e
+PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
81236e
+MAILDIR=$HOME/mail             # you'd better make sure it exists
81236e
+DEFAULT=$MAILDIR/mbox          # completely optional
81236e
+LOGFILE=$MAILDIR/procmail.log  # recommended
81236e
+
81236e
+:0:
81236e
+* ^Sender:.*linux-kernel-owner@vger.kernel.org
81236e
+linux-kernel
81236e
+
81236e
+:0:
81236e
+* ^Resent-Sender:.*debian-user-request@lists.debian.org
81236e
+debian-user
81236e
+*--------------------------------->8------------------------------------
81236e
+
81236e
+From this example additional rules for mailing lists may be created
81236e
+easily.
81236e
+
81236e
+
81236e
+* Once you have received lots of messages you will want to know where
81236e
+did they go. That's what the LOGFILE is for. There is a tool named
81236e
+mailstat which parses this file and shows a summary:
81236e
+
81236e
+mailstat procmail.log
81236e
+
81236e
+The mailstat command that this package provides does really come from the
81236e
+examples directory and it is installed by default. You may have your own
81236e
+modified copy in $HOME/bin, if you like.
81236e
+
81236e
+
81236e
+If you have to refilter an old mail folder according to your current
81236e
+~/.procmailrc file, you may do the following:
81236e
+
81236e
+cat mbox | formail -s procmail
81236e
+
81236e
+But of course if your mbox file is the target of a procmail recipe you should
81236e
+do this instead:
81236e
+
81236e
+mv mbox whatever
81236e
+cat whatever | formail -s procmail
81236e
+
81236e
+See formail(1) for details.
81236e
+
81236e
+
81236e
+Santiago Vila <sanvila@debian.org>
81236e
--- procmail-3.22.orig/debian/README.Maildir
81236e
+++ procmail-3.22/debian/README.Maildir
81236e
@@ -0,0 +1,12 @@
81236e
+This version of procmail supports Maildir folders.
81236e
+
81236e
+To make procmail to deliver into a Maildir folder, just append
81236e
+a slash (/) to the name of the maildir folder in your ~/.procmailrc file.
81236e
+For example, the following rule:
81236e
+
81236e
+:0
81236e
+* ^Resent-Sender.*debian-user-request@lists.debian.org
81236e
+debian-user/
81236e
+
81236e
+will deliver all mail from the debian-user mailing list to the Maildir
81236e
+folder "debian-user".
81236e
--- procmail-3.22.orig/debian/rules
81236e
+++ procmail-3.22/debian/rules
81236e
@@ -0,0 +1,76 @@
81236e
+#!/usr/bin/make -f
81236e
+
81236e
+package = procmail
81236e
+docdir = debian/tmp/usr/share/doc/$(package)
81236e
+
81236e
+CC = gcc
81236e
+CFLAGS0 = -g
81236e
+LDFLAGS0 =
81236e
+SEARCHLIBS = -lm
81236e
+STRIP = true
81236e
+
81236e
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
81236e
+  CFLAGS0 += -O2
81236e
+endif
81236e
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
81236e
+  STRIP = strip --remove-section=.comment --remove-section=.note
81236e
+endif
81236e
+
81236e
+build:
81236e
+	$(checkdir)
81236e
+	$(MAKE) CC="$(CC)" CFLAGS0="$(CFLAGS0)" LDFLAGS0="$(LDFLAGS0)" \
81236e
+		SEARCHLIBS="$(SEARCHLIBS)"
81236e
+	touch build
81236e
+
81236e
+clean:
81236e
+	$(checkdir)
81236e
+	rm -f build
81236e
+	-$(MAKE) realclean SEARCHLIBS=""
81236e
+	rm -f `find . -name "*~"`
81236e
+	rm -rf debian/tmp debian/files* core debian/substvars
81236e
+
81236e
+binary-indep: checkroot build
81236e
+	$(checkdir)
81236e
+
81236e
+binary-arch: checkroot build
81236e
+	$(checkdir)
81236e
+	rm -rf debian/tmp
81236e
+	install -d debian/tmp/DEBIAN $(docdir)/examples
81236e
+	cd debian/tmp && install -d usr/bin
81236e
+	$(MAKE) BASENAME=`pwd`/debian/tmp/usr install.man install-suid
81236e
+	$(STRIP) debian/tmp/usr/bin/procmail
81236e
+	$(STRIP) debian/tmp/usr/bin/lockfile
81236e
+	$(STRIP) debian/tmp/usr/bin/formail
81236e
+	cp -p debian/copyright $(docdir)
81236e
+	cp -p debian/changelog $(docdir)/changelog.Debian
81236e
+	install -m 644 debian/mailstat.1 debian/tmp/usr/man/man1
81236e
+	cp -p FEATURES HISTORY README FAQ KNOWN_BUGS \
81236e
+		debian/QuickStart debian/README.Maildir $(docdir)
81236e
+	cp -p examples/* $(docdir)/examples
81236e
+	cd $(docdir)/examples && rm -f dirname mailstat procmail-rpm.spec
81236e
+	cd $(docdir) && gzip -9 HISTORY changelog.Debian
81236e
+	ln -s HISTORY.gz $(docdir)/changelog.gz
81236e
+	mv debian/tmp/usr/man debian/tmp/usr/share
81236e
+	gzip -r9 debian/tmp/usr/share/man
81236e
+	dpkg-shlibdeps debian/tmp/usr/bin/*
81236e
+	dpkg-gencontrol -isp
81236e
+	cd debian/tmp && \
81236e
+		md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums
81236e
+	chown -R root:root debian/tmp
81236e
+	chmod -R go=rX debian/tmp
81236e
+	chgrp mail debian/tmp/usr/bin/procmail debian/tmp/usr/bin/lockfile
81236e
+	chmod 6755 debian/tmp/usr/bin/procmail
81236e
+	chmod 2755 debian/tmp/usr/bin/lockfile
81236e
+	dpkg --build debian/tmp ..
81236e
+
81236e
+define checkdir
81236e
+        test -f src/$(package).c -a -f debian/rules
81236e
+endef
81236e
+
81236e
+binary: binary-indep binary-arch
81236e
+
81236e
+checkroot:
81236e
+	$(checkdir)
81236e
+	test root = "`whoami`"
81236e
+
81236e
+.PHONY: binary binary-arch binary-indep clean checkroot