diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2004-03-16 21:21:39 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2004-03-16 21:21:39 +0000 |
commit | d41034d194954551df5422be498163b15dd0a96d (patch) | |
tree | 1691556ff3155fec0a4128088d846ed22c69f78e /mail | |
parent | Upgrading to 1.6.1. (diff) |
Our iso3166.tab differs a bit from the linux one and it's also located in a
different directory.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sqwebmail/files/patch-sqwebmail::sv-make_timezonelist.pl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/mail/sqwebmail/files/patch-sqwebmail::sv-make_timezonelist.pl b/mail/sqwebmail/files/patch-sqwebmail::sv-make_timezonelist.pl new file mode 100644 index 000000000000..a8ed46163540 --- /dev/null +++ b/mail/sqwebmail/files/patch-sqwebmail::sv-make_timezonelist.pl @@ -0,0 +1,44 @@ +--- sqwebmail/sv-make_timezonelist.pl.orig Sat Oct 11 15:55:15 2003 ++++ sqwebmail/sv-make_timezonelist.pl Tue Mar 16 21:39:00 2004 +@@ -50,8 +50,14 @@ + } + } + die "Could not find a zoneinfo directory\n" unless ($zoneinfo_dir); +- +-$iso3166tab = "$zoneinfo_dir/iso3166.tab"; ++if ( $^O eq "freebsd" ) ++{ ++ $iso3166tab = "/usr/share/misc/iso3166"; ++} ++else ++{ ++ $iso3166tab = "$zoneinfo_dir/iso3166.tab"; ++} + $zonetab = "$zoneinfo_dir/zone.tab"; + $etc_dir = "$zoneinfo_dir/Etc"; + +@@ -59,6 +65,7 @@ + + open(ISO3166, $iso3166tab) || + die "Could not open '$iso3166tab' for reading ($!)\n"; ++ + @lines = <ISO3166>; + close(ISO3166); + +@@ -68,8 +75,15 @@ + next unless ($line =~ /\S/); + + chomp($line); ++if ( $^O eq "freebsd" ) ++{ ++ ($code, undef, undef, $country) = split(/\t/, $line, 4); ++} ++else ++{ + ($code, $country) = split(/\t/, $line, 2); +- ++} ++ + $countries{$code} = $country; + } + |