pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/fidogate Update to 4.4.10, finally....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/62a7cbee4381
branches:  trunk
changeset: 498237:62a7cbee4381
user:      tv <tv%pkgsrc.org@localhost>
date:      Wed Aug 17 11:43:27 2005 +0000

description:
Update to 4.4.10, finally....
Changes of note (security fixes were already integrated in an earlier
4.4.9nbX release):

        * src/gate/ftn2rfc.c (unpack): if * Origin is empty, don't use it
          for the Organization header, use default from config.

        * src/common/log.c (logit): renamed old log() to avoid conflict
          with Standard-C math function.

        * src/common/log.c (log_program): removed insecure code entirely,
          thanks to Niels Heinen for pointing this out.

        * src/gate/send-fidogate.sh: added optimized version using rfc2ftn
          -f for INN 2.4, thanks to Viktor Kafke.
          Optimized versions for INN 2.2 und INN 2.4 enabled by
          OPTIMIZED=yes at the start of this script, default = commented =
          off.

        * scripts/maintenance/logsendmail2.pl: new version of logsendmail
          utility.

        * src/gate/rfc2ftn.c (receiver): "sysop" is always a valid name.

        * src/gate/rfc2ftn.c (main): new option "SilentBounces" causes
          EX_NOHOST, EX_NOUSER errors to return OK without any message.
          Useful in the never ending fight against spam, when your gateway
          is flooded with messages to unknown adresses, such as Fido.DE :-(
          (snd_mail): check silent_bounces, if set return OK and log only.

diffstat:

 comms/fidogate/Makefile         |   5 ++---
 comms/fidogate/PLIST            |  23 ++++++++++++-----------
 comms/fidogate/distinfo         |  22 ++++++++++------------
 comms/fidogate/patches/patch-ad |  12 ++++++------
 comms/fidogate/patches/patch-ak |  12 +-----------
 comms/fidogate/patches/patch-al |  19 +++----------------
 comms/fidogate/patches/patch-ao |  16 ++++++++--------
 comms/fidogate/patches/patch-ap |  16 ++++++++--------
 comms/fidogate/patches/patch-aq |  28 +++++++++++++++++++++++-----
 comms/fidogate/patches/patch-at |  13 -------------
 comms/fidogate/patches/patch-au |  13 -------------
 11 files changed, 73 insertions(+), 106 deletions(-)

diffs (truncated from 368 to 300 lines):

diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/Makefile
--- a/comms/fidogate/Makefile   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/Makefile   Wed Aug 17 11:43:27 2005 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.40 2005/08/14 18:47:47 tv Exp $
+# $NetBSD: Makefile,v 1.41 2005/08/17 11:43:27 tv Exp $
 #
 
-DISTNAME=      fidogate-4.4.9
-PKGREVISION=   3
+DISTNAME=      fidogate-4.4.10
 CATEGORIES=    comms
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=fidogate/}
 
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/PLIST
--- a/comms/fidogate/PLIST      Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/PLIST      Wed Aug 17 11:43:27 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2005/08/14 18:47:47 tv Exp $
+@comment $NetBSD: PLIST,v 1.9 2005/08/17 11:43:27 tv Exp $
 lib/fidogate/areafix.help
 lib/fidogate/bin/areasbbssync
 lib/fidogate/bin/ftnafutil
@@ -10,6 +10,7 @@
 lib/fidogate/bin/logdaily
 lib/fidogate/bin/logreport
 lib/fidogate/bin/logsendmail
+lib/fidogate/bin/logsendmail2
 lib/fidogate/bin/logstat
 lib/fidogate/bin/nl-autoupd
 lib/fidogate/bin/nl-check
@@ -69,10 +70,8 @@
 lib/fidogate/ftntick
 lib/fidogate/ftntoss
 lib/fidogate/rfc2ftn
-share/examples/rc.d/fidogate
-@dirrm lib/fidogate/bin
-@dirrm lib/fidogate
 share/doc/fidogate/ANNOUNCE
+share/doc/fidogate/fidogate.txt
 share/doc/fidogate/fidogate_1.html
 share/doc/fidogate/fidogate_2.html
 share/doc/fidogate/fidogate_3.html
@@ -84,7 +83,6 @@
 share/doc/fidogate/fidogate_abt.html
 share/doc/fidogate/fidogate_ovr.html
 share/doc/fidogate/fidogate_toc.html
-share/doc/fidogate/fidogate.txt
 share/doc/fidogate/msgid-1.html
 share/doc/fidogate/msgid-2.html
 share/doc/fidogate/msgid-3.html
@@ -93,7 +91,7 @@
 share/doc/fidogate/msgid-6.html
 share/doc/fidogate/msgid-7.html
 share/doc/fidogate/msgid.html
-@dirrm share/doc/fidogate
+share/examples/fidogate/README
 share/examples/fidogate/fidogate.conf
 share/examples/fidogate/morannon/aliases
 share/examples/fidogate/morannon/areas
@@ -122,13 +120,16 @@
 share/examples/fidogate/point/newsfeeds
 share/examples/fidogate/point/packing
 share/examples/fidogate/point/routing
-share/examples/fidogate/README
-@dirrm share/examples/fidogate/morannon
-@dirrm share/examples/fidogate/orodruin
-@dirrm share/examples/fidogate/point
-@dirrm share/examples/fidogate
+share/examples/rc.d/fidogate
 share/fidogate/sendmail/mailer/ffx.m4
 share/fidogate/sendmail/mailer/ftn.m4
 @dirrm share/fidogate/sendmail/mailer
 @dirrm share/fidogate/sendmail
 @dirrm share/fidogate
+@dirrm share/examples/fidogate/point
+@dirrm share/examples/fidogate/orodruin
+@dirrm share/examples/fidogate/morannon
+@dirrm share/examples/fidogate
+@dirrm share/doc/fidogate
+@dirrm lib/fidogate/bin
+@dirrm lib/fidogate
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/distinfo
--- a/comms/fidogate/distinfo   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/distinfo   Wed Aug 17 11:43:27 2005 +0000
@@ -1,27 +1,25 @@
-$NetBSD: distinfo,v 1.9 2005/02/23 16:05:29 agc Exp $
+$NetBSD: distinfo,v 1.10 2005/08/17 11:43:27 tv Exp $
 
-SHA1 (fidogate-4.4.9.tar.gz) = 7d23802931a67b5b3cc256f5dd85d8b2c47ab4fe
-RMD160 (fidogate-4.4.9.tar.gz) = c073aa157cc5bfe6b005076e0c94c1aa427dbf01
-Size (fidogate-4.4.9.tar.gz) = 1186562 bytes
+SHA1 (fidogate-4.4.10.tar.gz) = 531305ac82963d5bd6398d2e8e350676bbc9c5eb
+RMD160 (fidogate-4.4.10.tar.gz) = 09b8dfa7304089ff27c7c39c1b6004aef00edadf
+Size (fidogate-4.4.10.tar.gz) = 1191524 bytes
 SHA1 (patch-aa) = a12ffe978a32b342a48927b2887b4c5340816c5c
 SHA1 (patch-ab) = 27457fff799208f3daf72eabb6a7b0b056faf945
 SHA1 (patch-ac) = 89e81b49da503eaaf6b641231d30cf75e58b376b
-SHA1 (patch-ad) = 2562aca505a403e9cd5e493fcf84f9c7b15e764f
+SHA1 (patch-ad) = bc08f722e53b23181d797e1f504023cf4b1ae5fa
 SHA1 (patch-ae) = e2cf8add74b051111626230257c01793c1c20ca9
 SHA1 (patch-af) = 7fbc604c555f210aa49de2ecc1ec13d9835287f0
 SHA1 (patch-ag) = 0d7babf2526a4b235bdd20ae1aead7ee4d734dd6
 SHA1 (patch-ah) = d75936b400f87c87033b07a5481a004ea21d6ddd
 SHA1 (patch-ai) = 7d3c184bc1071a6e70be67707181650468557cc5
 SHA1 (patch-aj) = 0f68f94aa285a4d1ae38cfd2d62b10f96ad325a6
-SHA1 (patch-ak) = c24f82c5440095cb4e55ac665f2b5936116b4e32
-SHA1 (patch-al) = df1c2da097eead9444c4cf6a43ea515582258ad9
+SHA1 (patch-ak) = 818f81491dcf39e272b6c4107255d738d9f91196
+SHA1 (patch-al) = 229523f59d427a1b60996db9f968fe2c6b119386
 SHA1 (patch-am) = d005bf2020b0b88026e53a08d6a35a7b451ef777
 SHA1 (patch-an) = 7d454b745e4a7a303c25e040936c72db92554ad4
-SHA1 (patch-ao) = e19a532f79dd4ad203b9fe19bbde49da7f92a753
-SHA1 (patch-ap) = 860c3989306e5d431520ddf5f676938da8806c87
-SHA1 (patch-aq) = 29db774435c55ccadb7ed492c93eb233df502ca0
+SHA1 (patch-ao) = 047993df8fa7de8f4f81ba1b1456e2c0e11c54d8
+SHA1 (patch-ap) = 9f8aae03b2b2e758785c9196583221c92d398371
+SHA1 (patch-aq) = cdf5aa7edc6cf6c5b33d95a6b7e9266608f38bca
 SHA1 (patch-ar) = 0883b75e210d635f7e9f49c9b2b5d3978645953b
 SHA1 (patch-as) = daf5a80d044933c17f8ab556bebc0765af1439e3
-SHA1 (patch-at) = f6b3fe0bac12489d314e3a1b39bfe67d67b14374
-SHA1 (patch-au) = 90b0a4630b3029b34752972a7e7892b63462a703
 SHA1 (patch-av) = dec5e163dcba702d929f4242083ac942abbf2160
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/patches/patch-ad
--- a/comms/fidogate/patches/patch-ad   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/patches/patch-ad   Wed Aug 17 11:43:27 2005 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-ad,v 1.4 2001/02/22 03:00:15 tv Exp $
+$NetBSD: patch-ad,v 1.5 2005/08/17 11:43:27 tv Exp $
 
---- src/tick/ftntick.c.orig    Wed Feb 21 17:37:28 2001
-+++ src/tick/ftntick.c Wed Feb 21 17:38:48 2001
-@@ -528,7 +528,7 @@
+--- src/tick/ftntick.c.orig    2004-08-22 16:19:13.000000000 -0400
++++ src/tick/ftntick.c
+@@ -528,7 +528,7 @@ int check_file(Tick *tic)
        if(tic->size != st.st_size)
        {
-           log("ERROR: wrong size for file %s: got %lu, expected %lu",
+           logit("ERROR: wrong size for file %s: got %lu, expected %lu",
 -              name, st.st_size, tic->size                           );
-+              name, (unsigned long)st.st_size, tic->size);
++              name, (unsigned long)st.st_size, tic->size                           );
            return ERROR;
        }
      }
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/patches/patch-ak
--- a/comms/fidogate/patches/patch-ak   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/patches/patch-ak   Wed Aug 17 11:43:27 2005 +0000
@@ -1,16 +1,6 @@
-$NetBSD: patch-ak,v 1.6 2003/10/18 12:04:54 cjep Exp $
+$NetBSD: patch-ak,v 1.7 2005/08/17 11:43:27 tv Exp $
 --- src/areafix/areafix.c.orig 2001-05-29 04:00:27.000000000 +1000
 +++ src/areafix/areafix.c      2003-10-10 18:43:07.000000000 +1000
-@@ -273,8 +273,7 @@
- 
- void areafix_auth_cmd(void)
- {
--    authorized = authorized_cmdline = authorized_new    =
--               authorized_new     = authorized_delete = TRUE;
-+    authorized = authorized_cmdline = authorized_new = authorized_delete = TRUE;
- }
- 
- 
 @@ -770,7 +769,7 @@
        mark = (lon_search(l, node) ? "*" : " ");
  
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/patches/patch-al
--- a/comms/fidogate/patches/patch-al   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/patches/patch-al   Wed Aug 17 11:43:27 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-al,v 1.5 2004/08/23 15:18:02 tv Exp $
+$NetBSD: patch-al,v 1.6 2005/08/17 11:43:27 tv Exp $
 
---- src/common/log.c.orig      2003-02-16 10:38:56.000000000 -0500
+--- src/common/log.c.orig      2004-08-26 16:56:20.000000000 -0400
 +++ src/common/log.c
-@@ -137,7 +137,7 @@ void log(const char *fmt, ...)
+@@ -137,7 +137,7 @@ void logit(const char *fmt, ...)
        if(fp)
        {
            fprintf(fp, "%s %s ",
@@ -11,16 +11,3 @@
            vfprintf(fp, *fmt == '$' ? fmt + 1 : fmt, args);
            if (*fmt == '$')
                fprintf(fp, " (errno=%d: %s)", errno, strerror(errno));
-@@ -276,12 +276,5 @@ void log_file(char *name)
-  */
- void log_program(char *name)
- {
--    char *p;
--    
-     BUF_COPY(logprog, name);
--
--    if( (p = getenv("LOGFILE")) )
--       log_file(p);
--    if( (p = getenv("FIDOGATE_LOGFILE")) )
--       log_file(p);
- }
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/patches/patch-ao
--- a/comms/fidogate/patches/patch-ao   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/patches/patch-ao   Wed Aug 17 11:43:27 2005 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-ao,v 1.2 2004/08/23 15:18:02 tv Exp $
+$NetBSD: patch-ao,v 1.3 2005/08/17 11:43:27 tv Exp $
 
---- src/toss/ftnexpire.c.orig  2003-02-16 10:39:02.000000000 -0500
+--- src/toss/ftnexpire.c.orig  2004-08-22 16:19:14.000000000 -0400
 +++ src/toss/ftnexpire.c
 @@ -112,7 +112,7 @@ int do_expire(void)
      if(exp_sec < 0)
        exp_sec = 0;
      debug(4, "expire: now=%ld max=%ld, expire < %ld",
 -        now_sec, max_sec, exp_sec                   );
-+        (long) now_sec, (long) max_sec, (long) exp_sec                   );
++        (long)now_sec, (long)max_sec, (long)exp_sec                   );
  
      /* Open old history for reading */
      if( (hi_o = fopen(history, R_MODE)) == NULL ) 
@@ -16,7 +16,7 @@
      expired = t < exp_sec;
      debug(7, "msgid=%s  time=%ld  expired=%s",
 -        msgid, t, expired ? "YES" : "NO"     );
-+        msgid,(long) t, expired ? "YES" : "NO"     );
++        msgid, (long)t, expired ? "YES" : "NO"     );
  
      /* Write if not expired */
      if(!expired) 
@@ -25,16 +25,16 @@
        
        /* Write MSGID line to history text file */
 -      ret = fprintf(hi_n, "%s\t%ld\n", msgid, t);
-+      ret = fprintf(hi_n, "%s\t%ld\n", msgid, (long) t);
++      ret = fprintf(hi_n, "%s\t%ld\n", msgid, (long)t);
        if (ret == ERROR || fflush(hi_n) == ERROR)
        {
-           log("$ERROR: write to MSGID history failed");
+           logit("$ERROR: write to MSGID history failed");
 @@ -390,7 +390,7 @@ int main(int argc, char **argv)
      /* Statistics */
-     log("ids processed: %ld total, %ld expired in %ld s, %.2f ids/s",
+     logit("ids processed: %ld total, %ld expired in %ld s, %.2f ids/s",
        n_processed, n_expired,
 -      expire_delta, (double)n_processed/expire_delta);
-+      (long) expire_delta, (double)n_processed/expire_delta);
++      (long)expire_delta, (double)n_processed/expire_delta);
      
      unlock_program(DEFAULT_LOCK_HISTORY);
  
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/patches/patch-ap
--- a/comms/fidogate/patches/patch-ap   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/patches/patch-ap   Wed Aug 17 11:43:27 2005 +0000
@@ -1,31 +1,31 @@
-$NetBSD: patch-ap,v 1.2 2004/08/23 15:18:02 tv Exp $
+$NetBSD: patch-ap,v 1.3 2005/08/17 11:43:27 tv Exp $
 
---- src/toss/ftntoss.c.orig    2003-02-16 10:39:02.000000000 -0500
+--- src/toss/ftntoss.c.orig    2004-08-22 16:19:14.000000000 -0400
 +++ src/toss/ftntoss.c
 @@ -1442,7 +1442,7 @@ int unpack_file(char *pkt_name)
      exp_sec = now_sec - max_sec;
      if(exp_sec < 0)
        exp_sec = 0;
 -    debug(4, "now=%ld max=%ld, old < %ld", now_sec, max_sec, exp_sec);
-+    debug(4, "now=%ld max=%ld, old < %ld", (long) now_sec, (long) max_sec, (long) exp_sec);
++    debug(4, "now=%ld max=%ld, old < %ld", (long)now_sec, (long)max_sec, (long)exp_sec);
      
      /* Open packet and read header */
      pkt_file = fopen(pkt_name, R_MODE);
 @@ -1946,7 +1946,7 @@ int main(int argc, char **argv)
      
      if(pkts_in)
-       log("pkts processed: %ld, %ld Kbyte in %ld s, %.2f Kbyte/s",
+       logit("pkts processed: %ld, %ld Kbyte in %ld s, %.2f Kbyte/s",
 -          pkts_in, pkts_bytes/1024, toss_delta,
-+          pkts_in, pkts_bytes/1024, (long) toss_delta,
++          pkts_in, pkts_bytes/1024, (long)toss_delta,
            (double)pkts_bytes/1024./toss_delta                      );
      
      if(msgs_in)
 @@ -1954,7 +1954,7 @@ int main(int argc, char **argv)
-       log("msgs processed: %ld in, %ld out (%ld mail, %ld echo)",
+       logit("msgs processed: %ld in, %ld out (%ld mail, %ld echo)",
            msgs_in, msgs_netmail+msgs_echomail, msgs_netmail, msgs_echomail);
-       log("msgs processed: %ld in %ld s, %.2f msgs/s",
+       logit("msgs processed: %ld in %ld s, %.2f msgs/s",
 -          msgs_in, toss_delta, (double)msgs_in/toss_delta);
-+          msgs_in, (long) toss_delta, (double)msgs_in/toss_delta);
++          msgs_in, (long)toss_delta, (double)msgs_in/toss_delta);
      }
      
      if(msgs_unknown || msgs_routed || msgs_insecure || msgs_empty)
diff -r 6574c16bd3de -r 62a7cbee4381 comms/fidogate/patches/patch-aq
--- a/comms/fidogate/patches/patch-aq   Wed Aug 17 11:28:12 2005 +0000
+++ b/comms/fidogate/patches/patch-aq   Wed Aug 17 11:43:27 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aq,v 1.2 2004/08/23 15:18:02 tv Exp $
+$NetBSD: patch-aq,v 1.3 2005/08/17 11:43:27 tv Exp $
 
---- src/toss/history.c.orig    2003-02-16 10:39:02.000000000 -0500



Home | Main Index | Thread Index | Old Index