Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Feb 2012 07:01:21 -0600
From:      Larry Rosenman <ler@lerctr.org>
To:        Alex Samorukov <samm@os2.kiev.ua>, FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164823: Re: [PATCH] mail/exilog: Add IPv6 support
Message-ID:  <9fd38a63-0e24-41b4-b8fa-718140631263@email.android.com>
Resent-Message-ID: <201202061310.q16DAGHV024410@freefall.freebsd.org>
In-Reply-To: <E1RuNzE-000CIC-FN@s1.sdv.com.ua>
References:  <E1RuNzE-000CIC-FN@s1.sdv.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

>Number:         164823
>Category:       ports
>Synopsis:       [PATCH] mail/exilog: Add IPv6 support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 06 13:10:15 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Alex Samorukov
>Release:        FreeBSD 7.=
>Organization:
Net-Art
>Environment:
System: FreeBSD s1.sdv.com.ua 7.3-RELEASE-p=
8 FreeBSD 7.3-RELEASE-p8 #9: Fri Nov 4 14:30:35 EET
>Description:
This patc=
h fixing IPv6 addresses support in the database and web interface.
Based on=
 developer git with some changes.


Added file(s):
- files/patch-ipv6

Port=
 maintainer (ler@lerctr.org) is cc'd.

Generated with FreeBSD Port Tools 0.=
99
>How-To-Repeat:
>Fix:

--- exilog-0.5_6.patch begins here ---
diff -ruN =
--exclude=3DCVS /usr/ports/mail/exilog/Makefile /root/tmp/exilog/Makefile
-=
-- /usr/ports/mail/exilog/Makefile	2009-10-21 08:34:27.000000000 +0300
+++ =
/root/tmp/exilog/Makefile	2012-02-06 14:45:53.000000000 +0200
@@ -7,13 +7,1=
5 @@

PORTNAME=3D	exilog
PORTVERSION=3D	0.5
-PORTREVISION=3D	5
+PORTREVISIO=
N=3D	6
CATEGORIES=3D	mail
MASTER_SITES=3D	http://duncanthrax.net/exilog/

M=
AINTAINER=3D	ler@lerctr.org
COMMENT=3D	Tool to centralize and visualize Exi=
m logs with a web front end

+LICENSE=3D	GPLv2
+
RUN_DEPENDS=3D	${SITE_PERL=
}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask

USE_PERL5=3D	yes
diff=
 -ruN --exclude=3DCVS /usr/ports/mail/exilog/files/patch-ipv6 /root/tmp/exi=
log/files/patch-ipv6
--- /usr/ports/mail/exilog/files/patch-ipv6	1970-01-01=
 03:00:00.000000000 +0300
+++ /root/tmp/exilog/files/patch-ipv6	2012-02-06 =
14:41:12.000000000 +0200
@@ -0,0 +1,60 @@
+--- doc/mysql-db-script.sql.orig=
	2012-02-06 14:35:52.000000000 +0200
++++ doc/mysql-db-script.sql	2012-02-0=
6 14:36:11.000000000 +0200
+@@ -20,7 +20,7 @@
+ `rcpt` varchar(200) NOT NUL=
L default '',
+ `rcpt_intermediate` varchar(200) default NULL,
+ `rcpt_fina=
l` varchar(200) NOT NULL default '',
+- `host_addr` varchar(15) default NUL=
L,
++ `host_addr` varchar(45) default NULL,
+ `host_dns` varchar(255) defau=
lt NULL,
+ `tls_cipher` varchar(128) default NULL,
+ `router` varchar(128) =
default NULL,
+@@ -48,7 +48,7 @@
+ `rcpt` varchar(200) NOT NULL default '',=

+ `rcpt_intermediate` varchar(200) default NULL,
+ `rcpt_final` varchar(20=
0) NOT NULL default '',
+- `host_addr` varchar(15) default NULL,
++ `host_a=
ddr` varchar(45) default NULL,
+ `host_dns` varchar(255) default NULL,
+ `t=
ls_cipher` varchar(128) default NULL,
+ `router` varchar(128) default NULL,=

+@@ -76,7 +76,7 @@
+ `rcpt` varchar(200) NOT NULL default '',
+ `rcpt_inte=
rmediate` varchar(200) default NULL,
+ `rcpt_final` varchar(200) NOT NULL d=
efault '',
+- `host_addr` varchar(15) default NULL,
++ `host_addr` varchar(=
45) default NULL,
+ `host_dns` varchar(255) default NULL,
+ `tls_cipher` va=
rchar(128) default NULL,
+ `router` varchar(128) default NULL,
+@@ -104,7 +=
104,7 @@
+ `msgid` varchar(255) default NULL,
+ `completed` bigint(20) defa=
ult NULL,
+ `mailfrom` varchar(255) default NULL,
+- `host_addr` varchar(15=
) default NULL,
++ `host_addr` varchar(45) default NULL,
+ `host_rdns` varc=
har(255) default NULL,
+ `host_ident` varchar(255) default NULL,
+ `host_he=
lo` varchar(255) default NULL,
+@@ -164,7 +164,7 @@
+ `server` varchar(32) =
NOT NULL default '',
+ `message_id` varchar(16) binary default NULL,
+ `tim=
estamp` bigint(20) NOT NULL default '0',
+- `host_addr` varchar(15) NOT NUL=
L default '',
++ `host_addr` varchar(45) NOT NULL default '',
+ `host_rdns`=
 varchar(255) NOT NULL default '',
+ `host_ident` varchar(255) default NULL=
,
+ `host_helo` varchar(255) default NULL,
+--- exilog_cgi_messages.pm.orig=
	2012-02-06 14:39:16.000000000 +0200
++++ exilog_cgi_messages.pm	2012-02-06=
 14:40:02.000000000 +0200
+@@ -145,8 +145,8 @@
+ }
+ 
+ my @queries;
+- if =
($param->{'qs'} =3D~ /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/) {
=
+- # IPv4 address
++ if ($param->{'qs'} =3D~ /^[0-9A-Fa-f.:]+$/) {
++ # IPv=
4 or IPv6 address
+ push @queries, { 'table' =3D> 'messages',
+ 'criteria' =
=3D> { 'host_addr' =3D> $param->{'qs'} } },
+ { 'table' =3D> 'rejects',
---=
 exilog-0.5_6.patch ends here ---


------EXSY19S8UPWTJKT64KODKXPG7W6SDU
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body>Approved <br>
-- <br>
Sent from my Android phone w=
ith K-9 Mail. Please excuse my brevity.<br><br><div class=3D"gmail_quote">A=
lex Samorukov &lt;samm@os2.kiev.ua&gt; wrote:<blockquote class=3D"gmail_quo=
te" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204=
, 204); padding-left: 1ex;">
<pre style=3D"white-space: pre-wrap; word-wrap=
:break-word; font-family: sans-serif"><br />&gt;Submitter-Id:	current-users=
<br />&gt;Originator:	Alex Samorukov<br />&gt;Organization:	Net-Art<br />&g=
t;Confidential:	no <br />&gt;Synopsis:	[PATCH] mail/exilog: Add IPv6 suppor=
t<br />&gt;Severity:	non-critical<br />&gt;Priority:	low<br />&gt;Category:=
	ports <br />&gt;Class:		change-request<br />&gt;Release:	FreeBSD 7.3-RELEA=
SE-p8 i386<br />&gt;Environment:<br />System: FreeBSD <a href=3D"http://s1.=
sdv.com.ua">s1.sdv.com.ua</a> 7.3-RELEASE-p8 FreeBSD 7.3-RELEASE-p8 #9: Fri=
 Nov  4 14:30:35 EET<br />&gt;Description:<br />This patch fixing IPv6 addr=
esses support in the database and web interface.<br />Based on developer gi=
t with some changes.<br /><br /><br />Added file(s):<br />- files/patch-ipv=
6<br /><br />Port maintainer (ler@lerctr.org) is cc'd.<br /><br />Generated=
 with FreeBSD Port Tools 0.99<br />&gt;How-To-Repeat:<br />&gt;Fix:<br /><b=
r />--- exilog-0.5_6.patch begins here ---<br />diff -ruN --exclude=3DCVS /=
usr/ports/mail/exilog/Makefile /root/tmp/exilog/Makefile<br />--- /usr/port=
s/mail/exilog/Makefile	2009-10-21 08:34:27.000000000 +0300<br />+++ /root/t=
mp/exilog/Makefile	2012-02-06 14:45:53.000000000 +0200<br />@@ -7,13 +7,15 =
@@<br /> <br /> PORTNAME=3D	exilog<br /> PORTVERSION=3D	0.5<br />-PORTREVIS=
ION=3D	5<br />+PORTREVISION=3D	6<br /> CATEGORIES=3D	mail<br /> MASTER_SITE=
S=3D	<a href=3D"http://duncanthrax.net/exilog">http://duncanthrax.net/exilo=
g</a>/<br /> <br /> MAINTAINER=3D	ler@lerctr.org<br /> COMMENT=3D	Tool to c=
entralize and visualize Exim logs with a web front end<br /> <br />+LICENSE=
=3D	GPLv2<br />+<br /> RUN_DEPENDS=3D	${SITE_PERL}/Net/<a href=3D"http://Ne=
tmask.pm">Netmask.pm</a>:${PORTSDIR}/net-mgmt/p5-Net-Netmask<br /> <br /> U=
SE_PERL5=3D	yes<br />diff -ruN --exclude=3DCVS /usr/ports/mail/exilog/files=
/patch-ipv6 /root/tmp/exilog/files/patch-ipv6<br />--- /usr/ports/mail/exil=
og/files/patch-ipv6	1970-01-01 03:00:00.000000000 +0300<br />+++ /root/tmp/=
exilog/files/patch-ipv6	2012-02-06 14:41:12.000000000 +0200<br />@@ -0,0 +1=
,60 @@<br />+--- doc/mysql-db-script.sql.orig	2012-02-06 14:35:52.000000000=
 +0200<br />++++ doc/mysql-db-script.sql	2012-02-06 14:36:11.000000000 +020=
0<br />+@@ -20,7 +20,7 @@<br />+   `rcpt` varchar(200) NOT NULL default '',=
<br />+   `rcpt_intermediate` varchar(200) default NULL,<br />+   `rcpt_fin=
al` varchar(200) NOT NULL default '',<br />+-  `host_addr` varchar(15) defa=
ult NULL,<br />++  `host_addr` varchar(45) default NULL,<br />+   `host_dns=
` varchar(255) default NULL,<br />+   `tls_cipher` varchar(128) default NUL=
L,<br />+   `router` varchar(128) default NULL,<br />+@@ -48,7 +48,7 @@<br =
/>+   `rcpt` varchar(200) NOT NULL default '',<br />+   `rcpt_intermediate`=
 varchar(200) default NULL,<br />+   `rcpt_final` varchar(200) NOT NULL def=
ault '',<br />+-  `host_addr` varchar(15) default NULL,<br />++  `host_addr=
` varchar(45) default NULL,<br />+   `host_dns` varchar(255) default NULL,<=
br />+   `tls_cipher` varchar(128) default NULL,<br />+   `router` varchar(=
128) default NULL,<br />+@@ -76,7 +76,7 @@<br />+   `rcpt` varchar(200) NOT=
 NULL default '',<br />+   `rcpt_intermediate` varchar(200) default NULL,<b=
r />+   `rcpt_final` varchar(200) NOT NULL default '',<br />+-  `host_addr`=
 varchar(15) default NULL,<br />++  `host_addr` varchar(45) default NULL,<b=
r />+   `host_dns` varchar(255) default NULL,<br />+   `tls_cipher` varchar=
(128) default NULL,<br />+   `router` varchar(128) default NULL,<br />+@@ -=
104,7 +104,7 @@<br />+   `msgid` varchar(255) default NULL,<br />+   `compl=
eted` bigint(20) default NULL,<br />+   `mailfrom` varchar(255) default NUL=
L,<br />+-  `host_addr` varchar(15) default NULL,<br />++  `host_addr` varc=
har(45) default NULL,<br />+   `host_rdns` varchar(255) default NULL,<br />=
+   `host_ident` varchar(255) default NULL,<br />+   `host_helo` varchar(25=
5) default NULL,<br />+@@ -164,7 +164,7 @@<br />+   `server` varchar(32) NO=
T NULL default '',<br />+   `message_id` varchar(16) binary default NULL,<b=
r />+   `timestamp` bigint(20) NOT NULL default '0',<br />+-  `host_addr` v=
archar(15) NOT NULL default '',<br />++  `host_addr` varchar(45) NOT NULL d=
efault '',<br />+   `host_rdns` varchar(255) NOT NULL default '',<br />+   =
`host_ident` varchar(255) default NULL,<br />+   `host_helo` varchar(255) d=
efault NULL,<br />+--- exilog_cgi_<a href=3D"http://messages.pm">messages.p=
m</a>.orig	2012-02-06 14:39:16.000000000 +0200<br />++++ exilog_cgi_<a href=
=3D"http://messages.pm">messages.pm</a>;	2012-02-06 14:40:02.000000000 +0200=
<br />+@@ -145,8 +145,8 @@<br />+   }<br />+ <br />+   my @queries;<br />+-=
  if ($param-&gt;{'qs'} =3D~ /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,=
3}$/) {<br />+-    # IPv4 address<br />++  if ($param-&gt;{'qs'} =3D~ /^[0-=
9A-Fa-f.:]+$/) {<br />++    # IPv4 or IPv6 address<br />+     push @queries=
, { 'table' =3D&gt; 'messages',<br />+                      'criteria' =3D&=
gt; { 'host_addr' =3D&gt; $param-&gt;{'qs'} } },<br />+                    =
{ 'table' =3D&gt; 'rejects',<br />--- exilog-0.5_6.patch ends here ---<br /=
>Release-Note:
>Audit-Trail:
>Unformatted:
 ------EXSY19S8UPWTJKT64KODKXPG7W6SDU
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
  charset=UTF-8
 
 Approved 
 -- 
 Sent from my Android phone with K-9 Mail. Please excuse my br=
 evity.
 
 Alex Samorukov <samm@os2.kiev.ua> wrote:
 
 
 sers
 =
 >P=
 riority:	low
 3-RELEASE-p8 i386
 ><br /></pre></blockquote></div></body></html>
 ------EXSY19S8UPWTJKT64KODKXPG7W6SDU--
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9fd38a63-0e24-41b4-b8fa-718140631263>