r20294 - in /trunk/libmail-sendmail-perl/debian: changelog control patches/ patches/helo-hostname-long.patch patches/series rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Thu May 22 20:13:07 UTC 2008


Author: gregoa
Date: Thu May 22 20:13:06 2008
New Revision: 20294

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=20294
Log:
* Add patch helo-hostname-long.patch: try to get long hostname for use in
  HELO. Add quilt framework and add libsys-hostname-long-perl to Depends:.
  Slightly change long description. Thanks to Nicolas François for the
  analysis. Closes: #482339
* Convert debian/changelog to UTF-8.

Added:
    trunk/libmail-sendmail-perl/debian/patches/
    trunk/libmail-sendmail-perl/debian/patches/helo-hostname-long.patch
    trunk/libmail-sendmail-perl/debian/patches/series
Modified:
    trunk/libmail-sendmail-perl/debian/changelog
    trunk/libmail-sendmail-perl/debian/control
    trunk/libmail-sendmail-perl/debian/rules

Modified: trunk/libmail-sendmail-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/changelog?rev=20294&op=diff
==============================================================================
--- trunk/libmail-sendmail-perl/debian/changelog (original)
+++ trunk/libmail-sendmail-perl/debian/changelog Thu May 22 20:13:06 2008
@@ -11,6 +11,12 @@
     - install upstream changelog
   * Convert debian/copyright to UTF-8.
   * debian/rules: delete /usr/lib/perl5 only if it exists.
+
+  * Add patch helo-hostname-long.patch: try to get long hostname for use in
+    HELO. Add quilt framework and add libsys-hostname-long-perl to Depends:.
+    Slightly change long description. Thanks to Nicolas François for the
+    analysis. Closes: #482339
+  * Convert debian/changelog to UTF-8.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:30:16 +0200
 

Modified: trunk/libmail-sendmail-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/control?rev=20294&op=diff
==============================================================================
--- trunk/libmail-sendmail-perl/debian/control (original)
+++ trunk/libmail-sendmail-perl/debian/control Thu May 22 20:13:06 2008
@@ -7,11 +7,11 @@
 Homepage: http://search.cpan.org/dist/Mail-Sendmail/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libmail-sendmail-perl/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 5), quilt (>= 0.40)
 
 Package: libmail-sendmail-perl
 Architecture: all
-Depends: ${perl:Depends}
+Depends: ${perl:Depends}, libsys-hostname-long-perl
 Description: Send email from a perl script
  Simple platform independent e-mail from your perl script. Only requires 
- Perl 5 and a network connection.
+ Perl 5, Sys::Hostname::Long, and a network connection.

Added: trunk/libmail-sendmail-perl/debian/patches/helo-hostname-long.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/patches/helo-hostname-long.patch?rev=20294&op=file
==============================================================================
--- trunk/libmail-sendmail-perl/debian/patches/helo-hostname-long.patch (added)
+++ trunk/libmail-sendmail-perl/debian/patches/helo-hostname-long.patch Thu May 22 20:13:06 2008
@@ -1,0 +1,32 @@
+Author: gregor herrmann <gregoa at debian.org>
+Bug: #482339
+Description: use Sys::Hostname::Long in order to get FQDN for HELO
+--- libmail-sendmail-perl.orig/Sendmail.pm
++++ libmail-sendmail-perl/Sendmail.pm
+@@ -53,6 +53,7 @@
+ use Socket;
+ use Time::Local; # for automatic time zone detection
+ use Sys::Hostname; # for use of hostname in HELO
++use Sys::Hostname::Long; # for use of hostname in HELO
+ 
+ # use MIME::QuotedPrint if available and configured in %mailcfg
+ eval("use MIME::QuotedPrint");
+@@ -267,7 +268,7 @@
+     }
+ 
+     # get local hostname for polite HELO
+-    $localhost = hostname() || 'localhost';
++    $localhost = hostname_long() || hostname() || 'localhost';
+ 
+     foreach $server ( @{$mailcfg{'smtp'}} ) {
+         # open socket needs to be inside this foreach loop on Linux,
+@@ -766,6 +767,9 @@
+ Now uses Sys::Hostname to get the hostname for HELO. (This may break the
+ module on some very old Win32 Perls where Sys::Hostname was broken)
+ 
++(On Debian systems Sys::Hostname::Long is tried before Sys::Hostname in order
++get a fully qualified domain name.)
++
+ Enable full session output for debugging
+ 
+ See the F<Changes> file for the full history. If you don't have it

Added: trunk/libmail-sendmail-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/patches/series?rev=20294&op=file
==============================================================================
--- trunk/libmail-sendmail-perl/debian/patches/series (added)
+++ trunk/libmail-sendmail-perl/debian/patches/series Thu May 22 20:13:06 2008
@@ -1,0 +1,1 @@
+helo-hostname-long.patch

Modified: trunk/libmail-sendmail-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/rules?rev=20294&op=diff
==============================================================================
--- trunk/libmail-sendmail-perl/debian/rules (original)
+++ trunk/libmail-sendmail-perl/debian/rules Thu May 22 20:13:06 2008
@@ -4,15 +4,17 @@
 tempdir=$(shell pwd)/debian/libmail-sendmail-perl
 arch=$(shell dpkg --print-architecture)
 
+include /usr/share/quilt/quilt.make
+
 build: build-stamp
-build-stamp:
+build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
 	perl Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 #	-$(MAKE) test
 	touch build-stamp
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 	-rm -f build-stamp install-stamp




More information about the Pkg-perl-cvs-commits mailing list