ports/148169: ipupdate script doesn't work

freebsd at nagilum.org freebsd at nagilum.org
Sat Jun 26 18:50:05 UTC 2010


>Number:         148169
>Category:       ports
>Synopsis:       ipupdate script doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 26 18:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     freebsd at nagilum.org
>Release:        FreeBSD 8.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD cakebox.tis 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Wed May 19 23:31:37 CEST 2010 root at cakebox.tis:/usr/obj/export/src/sys/net5501 i386


	machine, os, target, libraries irrelevant
>Description:
	The URL used to determine the external IP (http://stuff.xergio.net/ip.php) is no longer working.
>How-To-Repeat:
	start irssi then "/run /usr/local/share/irssi/scripts/ipupdate.pl"
>Fix:

	Apply attached patch to the port which introduced a patch that replaces the old URL with http://checkip.dyndns.com/ and adjusts the regexp to match properly.

--- irssi-scripts.patch begins here ---
diff -Naur irssi-scripts.orig/files/patch-scripts__ipupdate.pl irssi-scripts/files/patch-scripts__ipupdate.pl
--- irssi-scripts.orig/files/patch-scripts__ipupdate.pl	1970-01-01 01:00:00.000000000 +0100
+++ irssi-scripts/files/patch-scripts__ipupdate.pl	2010-06-26 20:28:57.000000000 +0200
@@ -0,0 +1,15 @@
+--- scripts/ipupdate.pl	2010-05-12 09:09:48.000000000 +0200
++++ scripts/ipupdate.pl	2009-08-24 15:33:20.000000000 +0200
+@@ -24,10 +24,10 @@
+ 
+ sub ipset {
+ 	my $user = LWP::UserAgent->new(timeout => 30);
+-	my $get = GET "http://stuff.xergio.net/ip.php";
++	my $get = GET "http://checkip.dyndns.com/";
+ 	my $req = $user->request($get);
+ 	my $out = $req->content();
+-	$out =~ s/.*IP real: ([0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?).*/$1/s;
++	$out =~ s/.*IP Address: ([0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?).*/$1/s;
+ 
+ 	Irssi::print("%9IP update%_:", MSGLEVEL_CRAP);
+ 	Irssi::command("set dcc_own_ip $out");
--- irssi-scripts.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list