Subject: CVS commit: pkgsrc/mail/spamdyke
To: None <pkgsrc-changes@NetBSD.org>
From: Amitai Schlair <schmonz@netbsd.org>
List: pkgsrc-changes
Date: 04/11/2007 14:50:38
Module Name:	pkgsrc
Committed By:	schmonz
Date:		Wed Apr 11 14:50:38 UTC 2007

Modified Files:
	pkgsrc/mail/spamdyke: Makefile PLIST distinfo
	pkgsrc/mail/spamdyke/patches: patch-aa
Added Files:
	pkgsrc/mail/spamdyke: hacks.mk
	pkgsrc/mail/spamdyke/patches: patch-ab patch-ac

Log Message:
Update to 2.4.0. From the changelog:

  Added search_ip_file() to search files for IP addresses and allow wildcards,
    network sizes (numbers of bits, e.g. 11.22.33.44/16) and netmasks (e.g.
    11.22.33.0/255.255.255.0).
  Added new options to allow graylisting exclusions by IP address and rDNS
    name.
  Added new options to activate graylisting for only certain IP addresses and
    rDNS names.
  Updated the documentation.

  Added some explicit casting to printf("%.*s") arguments to make them ints
    instead of longs.  gcc 3.3 on OpenBSD was complaining.
  Changed a datatype in log_write() from long to time_t.  gcc 3.3 on OpenBSD
    was complaining.
  Changed all uses of sprintf() to snprintf(), even though they were already
    safe from buffer overruns.  gcc 3.3 on OpenBSD was complaining.
  Added a new target to the Makefile in the spamdyke and utils folders named
    "openbsd" that compiles without the "-lresolv" flag.  gcc 3.3 on OpenBSD
    includes the resolver library automatically and throws an error when it
    is explicitly specified.
  Added some additional #include directives in dnsmx.c, dnsptr.c and dnstxt.c
    because they're not included by resolv.h on OpenBSD.

  Gained a broader understanding of the resolver library and DNS packet
    structure, then rewrote most of dns_txt() and dns_ptr_lookup() to (more)
    correctly process DNS data.
  Added dns_mx() to perform MX record lookups.
  Changed process_command_line() to use getopt_long() and added long option
    equivalents to the existing command line flags.
  Added the option "reject-missing-sender-mx" to reject email from senders
    whose domains aren't local and don't have MX records and/or A records.
    AOL does this.
  Updated the usage statement to show the new (long) command line options.
  Updated the README.txt to show the new (long) command line options.
  Moved domain2path and domainsplit into a new folder named "utils".
  Created dnsmx, dnsptr and dnstxt in the utils folder by copying the dns_mx(),
    dns_ptr() and dns_txt() functions from spamdyke.  They are simple command
    line utilities that no one will ever use except as examples of how to make
    MX, PTR and TXT DNS queries using libc.  As far as Google knows, there are
    no such examples anywhere else on the internet.
  Changed the DNS RBL code to check for A records in addition to TXT records.
    Some RBLs are using A records, I don't know why.
  Fixed the DNS RBL code not to check 127.0.0.1 for RBL entries.


To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/mail/spamdyke/Makefile \
    pkgsrc/mail/spamdyke/PLIST pkgsrc/mail/spamdyke/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/mail/spamdyke/hacks.mk
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/mail/spamdyke/patches/patch-aa
cvs rdiff -r0 -r1.1 pkgsrc/mail/spamdyke/patches/patch-ab \
    pkgsrc/mail/spamdyke/patches/patch-ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.