Bug#634815: pu: package amispammer/3.1-1
Hi Adam,
> The patch looks okay, but I'd like to see a full debdiff against the current stable package before giving final confirmation for upload.
Ok, debdiff attached.
Kind regards,
--
Julián Moreno Patiño
.''`. Debian GNU/{Linux,KfreeBSD}
: :' : Free Operating Systems
`. `' http://debian.org/
`- PGP KEY ID 6168BF60
Registered GNU Linux User ID 488513
diff -Nru amispammer-3.1/debian/changelog amispammer-3.1/debian/changelog
--- amispammer-3.1/debian/changelog 2010-04-30 14:55:16.000000000 -0500
+++ amispammer-3.1/debian/changelog 2011-07-20 21:12:14.000000000 -0500
@@ -1,3 +1,9 @@
+amispammer (3.1-1+squeeze1) stable; urgency=low
+
+ * Patch to fix detection of the IP address
+
+ -- Julián Moreno Patiño <darkjunix@gmail.com> Wed, 20 Jul 2011 21:12:09 -0500
+
amispammer (3.1-1) unstable; urgency=low
* Initial release (Closes: #579499)
diff -Nru amispammer-3.1/debian/patches/00_detect_right_ip.diff amispammer-3.1/debian/patches/00_detect_right_ip.diff
--- amispammer-3.1/debian/patches/00_detect_right_ip.diff 1969-12-31 19:00:00.000000000 -0500
+++ amispammer-3.1/debian/patches/00_detect_right_ip.diff 2011-07-19 21:40:12.000000000 -0500
@@ -0,0 +1,22 @@
+Description: Fix detection of the IP address
+Forwarded: no
+Author: Julián Moreno Patiño <darkjunix@gmail.com
+Last-Update: 2011-07-19
+--- a/amispammer 2010-04-30 11:42:33.000000000 -0500
++++ b/amispammer 2011-05-16 16:39:47.000000000 -0500
+@@ -16,12 +16,12 @@
+ {
+ my $detected_ip="NULL";
+ my $browser = LWP::UserAgent->new;
+- my $response = $browser->get("http://www.cualesmiip.es/");
++ my $response = $browser->get("http://checkip.dyndns.org/");
+ $respuesta=$response->content;
+ if ($response->is_success)
+ {
+- my @trozos_init=split (/Tu IP es\<\/h1\>\<h1 align\=\"center\"\>/,$respuesta);
+- my @trozos_end=split (/\<\/h1\>\<h2/,$trozos_init[1]);
++ my @trozos_init=split (/Current IP Address: /,$respuesta);
++ my @trozos_end=split (/\<\/body\>\<\/html\>/,$trozos_init[1]);
+ $detected_ip=$trozos_end[0];
+ }
+ return ($detected_ip);
diff -Nru amispammer-3.1/debian/patches/series amispammer-3.1/debian/patches/series
--- amispammer-3.1/debian/patches/series 1969-12-31 19:00:00.000000000 -0500
+++ amispammer-3.1/debian/patches/series 2011-07-20 20:23:18.000000000 -0500
@@ -0,0 +1 @@
+00_detect_right_ip.diff
Reply to: