OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   30-Dec-2006 13:43:45
  Branch: HEAD                             Handle: 2006123012434500

  Added files:
    openpkg-src/milter-dk   milter-dk.patch
  Modified files:
    openpkg-src/milter-dk   milter-dk.spec

  Log:
    apply the MILTER workaround for Postfix as mentioned on the Postfix
    website

  Summary:
    Revision    Changes     Path
    1.1         +17 -0      openpkg-src/milter-dk/milter-dk.patch
    1.3         +2  -0      openpkg-src/milter-dk/milter-dk.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/milter-dk/milter-dk.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 milter-dk.patch
  --- /dev/null 2006-12-30 13:43:35 +0100
  +++ milter-dk.patch   2006-12-30 13:43:45 +0100
  @@ -0,0 +1,17 @@
  +Index: dk-filter/dk-filter.c
  +--- dk-filter/dk-filter.c.orig       2006-05-19 23:42:05 +0200
  ++++ dk-filter/dk-filter.c    2006-12-30 13:41:07 +0100
  +@@ -2076,6 +2076,13 @@
  +     dfc = cc->cctx_msg;
  +     assert(dfc != NULL);
  + 
  ++    /* Determine the job ID for logging. */
  ++    if (dfc->mctx_jobid == 0 || strcmp(dfc->mctx_jobid, JOBIDUNKNOWN) == 0) 
{
  ++            char *jobid = smfi_getsymval(ctx, "i");
  ++            if (jobid != 0)
  ++                    dfc->mctx_jobid = jobid;
  ++    }
  ++
  +     /* get hostname; used in the X header and in new MIME boundaries */
  +     hostname = smfi_getsymval(ctx, "j");
  +     if (hostname == NULL)
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/milter-dk/milter-dk.spec
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 milter-dk.spec
  --- openpkg-src/milter-dk/milter-dk.spec      30 Dec 2006 12:38:53 -0000      
1.2
  +++ openpkg-src/milter-dk/milter-dk.spec      30 Dec 2006 12:43:45 -0000      
1.3
  @@ -42,6 +42,7 @@
   Source0:      
http://switch.dl.sourceforge.net/dk-milter/dk-milter-%{version}.tar.gz
   Source1:      rc.milter-dk
   Source2:      fsl.milter-dk
  +Patch0:       milter-dk.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -70,6 +71,7 @@
   
   %prep
       %setup -q -n dk-milter-%{version}
  +    %patch -p0
   
   %build
       extlibs="%{l_fsl_libs}"
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to